Skip to content

Commit ad29ef9

Browse files
committed
make rubocop happy
1 parent ed0704d commit ad29ef9

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ desc 'Test for binstubs'
2727
task :check_binstubs do
2828
bin_list = Gem::Specification.load('sensu-plugins-java.gemspec').executables
2929
bin_list.each do |b|
30-
`which #{ b }`
30+
`which #{b}`
3131
unless $CHILD_STATUS.success?
3232
puts "#{b} was not a binstub"
3333
exit

bin/check-java-permgen.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run
6464
exit_code = $CHILD_STATUS.exitstatus
6565
next if exit_code != 0
6666

67-
proc_permgen = (pu.to_f / pgcmx.to_f) * 100
67+
proc_permgen = (pu / pgcmx.to_f) * 100
6868
warn_procs << java_proc if proc_permgen > config[:warn].to_f
6969
crit_procs << java_proc if proc_permgen > config[:crit].to_f
7070
end

sensu-plugins-java.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lib = File.expand_path('../lib', __FILE__)
1+
lib = File.expand_path('lib', __dir__)
22
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
33

44
require 'date'

test/metrics-vertx_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require_relative './spec_helper.rb'
22
require_relative '../bin/metrics-vertx'
33
require_relative './fixtures.rb'
4+
require 'json'
45

56
describe 'MetricsVertX' do
67
before do

test/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require 'codeclimate-test-reporter'
2-
CodeClimate::TestReporter.start
1+
# require 'codeclimate-test-reporter'
2+
# CodeClimate::TestReporter.start

0 commit comments

Comments
 (0)