Skip to content

Commit d70c800

Browse files
committed
fix: fix Rubocop Metrics/ClassLength offense (exclude tests)
Exclude tests from the Metrics/ClassLength Rubocop offfense since the plan is to rewrite the test suite in RSpec. At that time many of the Rubocop exclusions will be removed.
1 parent 256d860 commit d70c800

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.rubocop.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ inherit_from: .rubocop_todo.yml
33
inherit_gem:
44
main_branch_shared_rubocop_config: config/rubocop.yml
55

6-
# Don't care about CyclomaticComplexity or AbcSize in TestUnit tests This should go
7-
# away when we switch to RSpec.
6+
# Don't care about complexity offenses in the TestUnit tests This exclusions
7+
# will be removed when we switch to RSpec.
88
Metrics/CyclomaticComplexity:
99
Exclude:
1010
- "tests/test_helper.rb"
1111
- "tests/units/**/*"
1212

13+
Metrics/ClassLength:
14+
Exclude:
15+
- "tests/test_helper.rb"
16+
- "tests/units/**/*"
17+
1318
Metrics/AbcSize:
1419
Exclude:
1520
- "tests/test_helper.rb"

0 commit comments

Comments
 (0)