1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
inherit_from: .rubocop_todo.yml
inherit_gem:
main_branch_shared_rubocop_config: config/rubocop.yml
# Don't care about complexity offenses in the TestUnit tests This exclusions
# will be removed when we switch to RSpec.
Metrics/CyclomaticComplexity:
Exclude:
- "tests/test_helper.rb"
- "tests/units/**/*"
Metrics/ClassLength:
Exclude:
- "tests/test_helper.rb"
- "tests/units/**/*"
Metrics/AbcSize:
Exclude:
- "tests/test_helper.rb"
- "tests/units/**/*"
# Don't care so much about length of methods in tests
Metrics/MethodLength:
Exclude:
- "tests/test_helper.rb"
- "tests/units/**/*"
# Allow test data to have long lines
Layout/LineLength:
Exclude:
- "tests/test_helper.rb"
- "tests/units/**/*"
- "*.gemspec"
# Testing and gemspec DSL results in large blocks
Metrics/BlockLength:
Exclude:
- "tests/test_helper.rb"
- "tests/units/**/*"
- "*.gemspec"
# Don't force every test class to be described
Style/Documentation:
Exclude:
- "tests/units/**/*"
AllCops:
# Pin this project to Ruby 3.1 in case the shared config above is upgraded to 3.2
# or later.
TargetRubyVersion: 3.2
|