File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Metrics/AbcSize:
1212
1313# short clear method name
1414Metrics/MethodLength :
15- Max : 25
15+ Max : 30
1616
1717# no performance implication
1818Style/OptionalBooleanParameter :
@@ -30,10 +30,6 @@ Style/FrozenStringLiteralComment:
3030Metrics/PerceivedComplexity :
3131 Max : 12
3232
33- # method length is not a problem
34- MethodLength :
35- Max : 30
36-
3733# if works as well as safe navigation (&.)
3834Style/SafeNavigation :
3935 Enabled : false
Original file line number Diff line number Diff line change 1010
1111require 'rake'
1212require 'rspec/core/rake_task'
13- require 'rubocop/rake_task'
1413require 'yard'
1514require_relative 'lib/serpapi'
1615
@@ -49,9 +48,9 @@ RSpec::Core::RakeTask.new(:benchmark) do |t|
4948 t . rspec_opts = '--format documentation'
5049end
5150
52- RuboCop :: RakeTask . new ( :lint ) do | t |
53- t . plugins << 'rubocop-rake'
54- t . options = [ ' --display-cop-names']
51+ desc 'run rubocop linter'
52+ task :lint do
53+ sh ( 'rubocop --display-cop-names')
5554end
5655
5756desc "format ruby code using rubocop"
You can’t perform that action at this time.
0 commit comments