.rubocop.yml
require:
- rubocop-factory_bot
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
inherit_from:
- .rubocop_todo.yml
AllCops:
NewCops: enable
TargetRubyVersion: 3.1
Exclude:
- "spec/internal/db/schema.rb"
- 'node_modules/**/*'
- 'vendor/**/*'
Metrics/AbcSize:
Exclude:
- "db/migrate/*"
- "lib/rails/generators/**/*_generator.rb"
Metrics/BlockLength:
Exclude:
- "*.gemspec"
- "**/*_spec.rb"
- "**/*.builder"
- "config/routes.rb"
- "spec/factories/**/*.rb"
- "spec/rails_helper.rb"
Metrics/ClassLength:
Exclude:
- "db/migrate/*"
Metrics/MethodLength:
Exclude:
- "db/migrate/*"
- "lib/rails/generators/**/*_generator.rb"
Style/AsciiComments:
Enabled: false
Style/Documentation:
Enabled: false
Style/FormatStringToken:
Exclude:
- "config/routes.rb"
Style/OptionalBooleanParameter:
Exclude:
- "lib/localizable_model/instance_methods.rb"
Style/StringLiterals:
EnforcedStyle: double_quotes
Layout/LineLength:
AutoCorrect: true
Max: 80
Layout/MultilineOperationIndentation:
EnforcedStyle: aligned
Rails:
Enabled: true
Rails/ApplicationRecord:
Enabled: false