Skip to content

Commit

Permalink
Merge pull request #24 from ahorek/rubocop
Browse files Browse the repository at this point in the history
update rubocop
  • Loading branch information
ahorek authored Jun 29, 2021
2 parents d2eac0a + a4e2733 commit 9e0f332
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
52 changes: 52 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,52 @@ Lint/EmptyClass:
Enabled: true
Style/NilLambda:
Enabled: true
Gemspec/DateAssignment: # (new in 1.10)
Enabled: true
Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
Enabled: true
Layout/SpaceBeforeBrackets: # (new in 1.7)
Enabled: true
Lint/AmbiguousAssignment: # (new in 1.7)
Enabled: true
Lint/DeprecatedConstants: # (new in 1.8)
Enabled: true
Lint/EmptyInPattern: # (new in 1.16)
Enabled: true
Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
Enabled: true
Lint/NumberedParameterAssignment: # (new in 1.9)
Enabled: true
Lint/OrAssignmentToConstant: # (new in 1.9)
Enabled: true
Lint/RedundantDirGlobSort: # (new in 1.8)
Enabled: true
Lint/SymbolConversion: # (new in 1.9)
Enabled: true
Lint/TripleQuotes: # (new in 1.9)
Enabled: true
Lint/UnexpectedBlockArity: # (new in 1.5)
Enabled: true
Naming/InclusiveLanguage: # (new in 1.18)
Enabled: true
Style/EndlessMethod: # (new in 1.8)
Enabled: true
Style/HashConversion: # (new in 1.10)
Enabled: true
Style/HashExcept: # (new in 1.7)
Enabled: true
Style/IfWithBooleanLiteralBranches: # (new in 1.9)
Enabled: true
Style/InPatternThen: # (new in 1.16)
Enabled: true
Style/MultilineInPatternThen: # (new in 1.16)
Enabled: true
Style/QuotedSymbols: # (new in 1.16)
Enabled: true
Style/RedundantArgument: # (new in 1.4)
Enabled: true
Style/StringChars: # (new in 1.12)
Enabled: true

Performance/AncestorsInclude:
Enabled: true
Expand Down Expand Up @@ -203,3 +249,9 @@ Performance/StringInclude:
Enabled: true
Performance/Sum:
Enabled: true
Performance/MapCompact: # (new in 1.11)
Enabled: true
Performance/RedundantEqualityComparisonBlock: # (new in 1.10)
Enabled: true
Performance/RedundantSplitRegexpArgument: # (new in 1.10)
Enabled: true
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gemspec

unless RUBY_VERSION < '2.5'
group :development do
gem 'rubocop', '~> 1.3.1'
gem 'rubocop-performance', '~> 1.9.0', :require => false
gem 'rubocop', '~> 1.18.0'
gem 'rubocop-performance', '~> 1.11.3', :require => false
end
end

0 comments on commit 9e0f332

Please sign in to comment.