File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,25 @@ MethodLength:
3434Style/SafeNavigation :
3535 Enabled : false
3636
37+ # disable this cop, dont agree with it
38+ Style/FetchEnvVar :
39+ Enabled : false
40+
3741# buggus check in Rubocop.
3842# SerpApiClient constructor is rated to 9
3943# def initialize(params = {})
4044Metrics/CyclomaticComplexity :
4145 Max : 12
4246
4347AllCops :
48+ # hide message
49+ SuggestExtensions : false
50+ # show new cops
4451 NewCops : enable
52+ # exclude rspec files from linting
4553 Exclude :
4654 - ' serpapi.gemspec'
4755 - ' spec/**/*_spec.rb'
4856 - ' spec/spec_helper.rb'
49- - ' script/*'
50- - ' oobt/*'
5157 - ' Gemfile'
5258 - ' Rakefile'
Original file line number Diff line number Diff line change 1818 q : 'coffee'
1919}
2020results = client . search ( params )
21- if ! results [ :organic_results ]
21+ unless results [ :organic_results ]
2222 puts 'organic results found'
2323 exit 1
2424end
You can’t perform that action at this time.
0 commit comments