Skip to content

Commit

Permalink
Merge pull request #174 from rails/flavorjones-202401-rubocop-update
Browse files Browse the repository at this point in the history
style: update rubocop config to match latest rails config
  • Loading branch information
flavorjones committed Jan 12, 2024
2 parents 705df17 + 16f856a commit 0b24ac2
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .rubocop.yml
Expand Up @@ -223,13 +223,25 @@ Lint/ErbNewArguments:
Lint/EnsureReturn:
Enabled: true

Lint/MissingCopEnableDirective:
Enabled: true

# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses:
Enabled: true

Lint/RedundantCopDisableDirective:
Enabled: true

Lint/RedundantCopEnableDirective:
Enabled: true

Lint/RedundantStringCoercion:
Enabled: true

Lint/RedundantSafeNavigation:
Enabled: true

Lint/UriEscapeUnescape:
Enabled: true

Expand All @@ -239,6 +251,14 @@ Lint/UselessAssignment:
Lint/DeprecatedClassMethods:
Enabled: true

Lint/InterpolationCheck:
Enabled: true
Exclude:
- '**/test/**/*'

Lint/SafeNavigationChain:
Enabled: true

Style/EvalWithLocation:
Enabled: true
Exclude:
Expand Down Expand Up @@ -278,6 +298,12 @@ Style/TrivialAccessors:
Style/RedundantCondition:
Enabled: true

Style/RedundantDoubleSplatHashBraces:
Enabled: true

Style/ArrayIntersect:
Enabled: true

Performance/BindCall:
Enabled: true

Expand Down Expand Up @@ -308,9 +334,6 @@ Performance/ReverseEach:
Performance/StringReplacement:
Enabled: true

Performance/UnfreezeString:
Enabled: true

Performance/DeletePrefix:
Enabled: true

Expand All @@ -332,12 +355,21 @@ Performance/RedundantStringChars:
Performance/StringInclude:
Enabled: true

Minitest/AssertPredicate:
Enabled: true

Minitest/AssertRaisesWithRegexpArgument:
Enabled: true

Minitest/AssertWithExpectedArgument:
Enabled: true

Minitest/LiteralAsActualArgument:
Enabled: true

Minitest/NonExecutableTestMethod:
Enabled: true

Minitest/SkipEnsure:
Enabled: true

Expand Down

0 comments on commit 0b24ac2

Please sign in to comment.