Skip to content

Instantly share code, notes, and snippets.

@cmdr-rohit-bang
Created February 4, 2021 09:56
Show Gist options
  • Save cmdr-rohit-bang/1cfb7e751411e19453165f2d578bf608 to your computer and use it in GitHub Desktop.
Save cmdr-rohit-bang/1cfb7e751411e19453165f2d578bf608 to your computer and use it in GitHub Desktop.
Rubocop Configuration
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
# AllCops:
# Rails:
# Enabled: true
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Lint/UnreachableCode:
Enabled: false
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/SlicingWithRange:
Enabled: true
Style/FormatStringToken:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: false
Metrics/BlockLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/InstanceVariable:
Enabled: false
Metrics/AbcSize:
Max: 30
Metrics/ClassLength:
Max: 230
Metrics/ModuleLength:
Max: 150
Layout/LineLength:
Enabled: false
RSpec/EmptyExampleGroup:
Enabled: false
Rails/FilePath:
Enabled: false
Style/AsciiComments:
Enabled: false
Rails/ReversibleMigration:
Enabled: false
Rails/CreateTableWithTimestamps:
Enabled: false
Security/Open:
Enabled: false
Metrics/MethodLength:
Max: 15
Exclude:
- "db/migrate/*"
RSpec/ExampleLength:
Max: 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment