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

style: update rubocop config to match latest rails config #174

Merged
merged 1 commit into from Jan 12, 2024
Merged
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
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