Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rubocop to 0.52 #176

Merged
merged 6 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
215 changes: 8 additions & 207 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
# Inherit style from another configuration
inherit_from: .rubocop_todo.yml

ClassLength:
# require:
# - rubocop-rails
# - rubocop-rspec

Metrics/ClassLength:
Exclude:
- app/models/ability.rb

ModuleLength:
Metrics/ModuleLength:
Exclude:
- app/helpers/application_helper.rb

# Apply rule to all cops
AllCops:
TargetRubyVersion: 1.9
NewCops: enable
TargetRubyVersion: 2.4
Include:
- '**/Rakefile'
- '**/config.ru'
Expand All @@ -21,207 +26,3 @@ AllCops:
- 'bundle/**/*'
- 'config/**/*'
- 'bin/*'

Bundler/OrderedGems:
Enabled: true

Layout/AlignArray:
Enabled: true

Layout/AlignHash:
Enabled: true

Layout/AlignParameters:
Enabled: true

Layout/BlockEndNewline:
Enabled: true

Layout/CommentIndentation:
Enabled: true

Layout/ElseAlignment:
Enabled: true

Layout/EmptyLineAfterMagicComment:
Enabled: true

Layout/EmptyLineBetweenDefs:
Enabled: true

Layout/EmptyLinesAroundClassBody:
Enabled: true

Layout/LeadingCommentSpace:
Enabled: true

Layout/SpaceInsideBlockBraces:
Enabled: true

Layout/SpaceInsideHashLiteralBraces:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: true

Style/StringLiterals:
Enabled: true

Layout/EmptyLinesAroundBlockBody:
Enabled: true

Layout/EmptyLinesAroundModuleBody:
Enabled: true

Layout/ExtraSpacing:
Enabled: true

Layout/FirstParameterIndentation:
Enabled: true

Layout/IndentArray:
Enabled: true

Layout/IndentHash:
Enabled: true

Layout/IndentationWidth:
Enabled: true

Layout/MultilineArrayBraceLayout:
Enabled: true

Layout/MultilineBlockLayout:
Enabled: true

Layout/MultilineHashBraceLayout:
Enabled: true

Layout/MultilineMethodCallBraceLayout:
Enabled: true

Layout/MultilineOperationIndentation:
Enabled: true

Layout/SpaceAfterComma:
Enabled: true

Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true

Layout/SpaceAroundOperators:
Enabled: true

Layout/SpaceBeforeBlockBraces:
Enabled: true

Layout/SpaceInsideBrackets:
Enabled: true

Layout/SpaceInsideParens:
Enabled: true

Layout/Tab:
Enabled: true

Layout/TrailingBlankLines:
Enabled: true

Layout/TrailingWhitespace:
Enabled: true

Lint/DeprecatedClassMethods:
Enabled: true

Lint/EndAlignment:
Enabled: true

Lint/UnusedBlockArgument:
Enabled: true

Lint/UnusedMethodArgument:
Enabled: true

Style/AndOr:
Enabled: true

Style/BarePercentLiterals:
Enabled: true

Style/BlockDelimiters:
Enabled: true

Style/ClassCheck:
Enabled: true

Style/ColonMethodCall:
Enabled: true

Style/ConditionalAssignment:
Enabled: true

Style/EmptyElse:
Enabled: true

Style/HashSyntax:
Enabled: true

Style/IfUnlessModifier:
Enabled: true

Style/InverseMethods:
Enabled: true

Style/MutableConstant:
Enabled: true

Style/NegatedIf:
Enabled: true

Style/Not:
Enabled: true

Style/NumericPredicate:
Enabled: true

Style/PercentLiteralDelimiters:
Enabled: true

Style/PreferredHashMethods:
Enabled: true

Style/Proc:
Enabled: true

Style/RedundantBegin:
Enabled: true

Style/RedundantSelf:
Enabled: true

Style/RescueModifier:
Enabled: true

Style/SafeNavigation:
Enabled: true

Style/SingleLineMethods:
Enabled: true

Style/SymbolProc:
Enabled: true

Style/TrailingCommaInLiteral:
Enabled: true

Lint/EndAlignment:
Enabled: true

Style/NumericPredicate:
Enabled: true

Style/SpecialGlobalVars:
Enabled: true

Style/SymbolArray:
Enabled: true