Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit d362e79

Browse files
committed
Rubocop, in preparation for pre-release rake task that sanity checks for release
1 parent 5f0f897 commit d362e79

12 files changed

+191
-187
lines changed

.rubocop.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# I don't care for underscores in numbers.
2+
Style/NumericLiterals:
3+
Enabled: false
4+
5+
Style/ClassAndModuleChildren:
6+
Enabled: false
7+
8+
Metrics/AbcSize:
9+
Enabled: false
10+
11+
Metrics/CyclomaticComplexity:
12+
Max: 9
13+
14+
Metrics/PerceivedComplexity:
15+
Max: 10
16+
17+
Metrics/LineLength:
18+
Enabled: false
19+
20+
Metrics/MethodLength:
21+
Max: 50
22+
23+
Style/FileName:
24+
Exclude:
25+
- 'lib/logstash-output-jdbc_jars.rb'

Rakefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
require "logstash/devutils/rake"
1+
require 'logstash/devutils/rake'
22
require 'jars/installer'
33

4-
desc "Fetch any jars required for this plugin"
4+
desc 'Fetch any jars required for this plugin'
55
task :install_jars do
6-
ENV['JARS_HOME'] = Dir.pwd + "/vendor/jar-dependencies/runtime-jars"
7-
ENV['JARS_VENDOR'] = "false"
6+
ENV['JARS_HOME'] = Dir.pwd + '/vendor/jar-dependencies/runtime-jars'
7+
ENV['JARS_VENDOR'] = 'false'
88
Jars::Installer.new.vendor_jars!(false)
99
end

Vagrantfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# vi: set ft=ruby :
33

44
Vagrant.configure(2) do |config|
5-
config.vm.box = "debian/jessie64"
6-
config.vm.synced_folder ".", "/vagrant", type: :virtualbox
5+
config.vm.box = 'debian/jessie64'
6+
config.vm.synced_folder '.', '/vagrant', type: :virtualbox
77

8-
config.vm.provision "shell", inline: <<-EOP
8+
config.vm.provision 'shell', inline: <<-EOP
99
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
1010
curl -sSL https://get.rvm.io | bash -s stable --ruby=jruby-1.7
1111
usermod -a -G rvm vagrant

lib/logstash-output-jdbc_jars.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# encoding: utf-8
22
require 'logstash/environment'
33

4-
root_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
5-
LogStash::Environment.load_runtime_jars! File.join(root_dir, "vendor")
4+
root_dir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
5+
LogStash::Environment.load_runtime_jars! File.join(root_dir, 'vendor')

0 commit comments

Comments
 (0)