Skip to content

Commit

Permalink
(misc) update for latest rubocop
Browse files Browse the repository at this point in the history
Signed-off-by: R.I.Pienaar <[email protected]>
  • Loading branch information
ripienaar committed Dec 20, 2020
1 parent 9f7abda commit 37b9b4d
Show file tree
Hide file tree
Showing 89 changed files with 1,229 additions and 1,352 deletions.
26 changes: 10 additions & 16 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
SuggestExtensions: false
TargetRubyVersion: 2.4
Exclude:
- "module/**/*"
- "vendor/**/*"
Expand All @@ -25,9 +27,6 @@ Style/TrailingUnderscoreVariable:
Lint/NonLocalExitFromIterator:
Enabled: false

Style/TrailingUnderscoreVariable:
Enabled: false

Naming/ClassAndModuleCamelCase:
Enabled: false

Expand All @@ -46,6 +45,9 @@ Style/StringLiterals:
Style/FormatString:
EnforcedStyle: percent

Style/FormatStringToken:
EnforcedStyle: unannotated

Style/SpecialGlobalVars:
Enabled: false

Expand All @@ -70,9 +72,6 @@ Layout/SpaceInsideBlockBraces:
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Style/Documentation:
Severity: warning

Style/EachWithObject:
Enabled: false

Expand All @@ -87,6 +86,7 @@ Style/DoubleNegation:

Style/Documentation:
Enabled: false
Severity: warning

Style/PerlBackrefs:
Enabled: false
Expand All @@ -106,7 +106,7 @@ Lint/UnusedMethodArgument:
Lint/AssignmentInCondition:
Enabled: false

Metrics/LineLength:
Layout/LineLength:
Max: 180

Metrics/PerceivedComplexity:
Expand All @@ -133,9 +133,6 @@ Metrics/ModuleLength:
Metrics/BlockLength:
Enabled: false

Performance/Casecmp:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Expand All @@ -145,21 +142,18 @@ Style/SymbolArray:
Security/MarshalLoad:
Enabled: false

Layout/IndentHeredoc:
Layout/HeredocIndentation:
Enabled: false

# @todo use safe_load but its a big change
Security/YAMLLoad:
Enabled: false

Performance/RegexpMatch:
Enabled: false

Style/SafeNavigation:
Enabled: false

Lint/RescueWithoutErrorClass:
Style/RescueStandardError:
Enabled: false

Performance/StringReplacement:
Style/OptionalBooleanParameter:
Enabled: false
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
source ENV["GEM_SOURCE"] || "https://rubygems.org"

gem "json", "~> 2.1.0"
gem "systemu", "~> 2.6.4"
gem "rdoc"
gem "yarjuf", "~> 1.0"
gem "rspec", "~> 2.11.0"
gem "mocha", "~> 0.10.0"
gem "mcollective-test"
gem "rake", "< 11.0"
gem "rubocop", "0.51.0"
gem "rubocop", "1.6.1"
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ end

desc "Run spec tests"
task :test do
sh "cd spec && rake"
sh "bundle exec rubocop --config .rubocop.yml lib"
sh "bundle exec rspec --colour --backtrace"
end
Loading

0 comments on commit 37b9b4d

Please sign in to comment.