.rubocop.yml
require:
- rubocop-performance
- rubocop-rake
# - rubocop-rspec
AllCops:
TargetRubyVersion: 3.2
NewCops: enable
Exclude:
<% `git status --ignored --porcelain`.lines.grep(/^!! /).each do |path| %>
- <%= path.sub(/^!! /, '') %>
<% end %>
inherit_mode:
merge:
- Include
- Exclude
Naming/FileName:
Exclude:
- 'lib/r18n-core/locales/*.rb'
- 'spec/locales/*.rb'
- '**/r18n-core.rb'
Style/AsciiComments:
Enabled: false
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/LineEndStringConcatenationIndentation:
EnforcedStyle: indented
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
Layout/FirstParameterIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/MultilineArrayBraceLayout:
EnforcedStyle: new_line
Layout/MultilineHashBraceLayout:
EnforcedStyle: new_line
Layout/LineLength:
Max: 100
Metrics/BlockLength:
Exclude:
- '**/spec/**/*'
# TODO: fix offenses and enable cops
Metrics/AbcSize:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ParameterLists:
Exclude:
- 'lib/r18n-core/filter_list.rb'
Metrics/PerceivedComplexity:
Enabled: false