Skip to content

Instantly share code, notes, and snippets.

@beglov
Last active December 13, 2022 08:34
Show Gist options
  • Save beglov/9da03971bae1ac549e2c570d052451f2 to your computer and use it in GitHub Desktop.
Save beglov/9da03971bae1ac549e2c570d052451f2 to your computer and use it in GitHub Desktop.
RuboCop configuration file
AllCops:
NewCops: enable
Layout/LineLength:
Enabled: false
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/BlockDelimiters:
BracesRequiredMethods: ['expect']
Metrics/AbcSize:
CountRepeatedAttributes: false
Metrics/MethodLength:
CountAsOne: ['array', 'hash', 'heredoc']
Exclude:
- 'db/migrate/**/*'
Rails/I18nLocaleTexts:
Enabled: false
Rails/SkipsModelValidations:
Exclude:
- 'db/migrate/**/*'
RSpec/ExampleLength:
Enabled: false
RSpec/ContextWording:
Exclude:
- 'spec/system/**/*'
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/MultipleExpectations:
Exclude:
- 'spec/system/**/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment