Skip to content

Commit 0d71d2a

Browse files
authored
Merge pull request #164 from sue445/tweak_PerceivedComplexity
Move to .rubocop.yml
2 parents 33bae30 + 89928cc commit 0d71d2a

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ Metrics/BlockLength:
3939
- "*.gemspec"
4040
- "**/*_spec.rb"
4141

42+
Metrics/CyclomaticComplexity:
43+
Max: 13
44+
45+
Metrics/PerceivedComplexity:
46+
Max: 11
47+
4248
Metrics/ClassLength:
4349
Exclude:
4450
- "**/*_test.rb"

.rubocop_todo.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,7 @@
1111
Metrics/AbcSize:
1212
Max: 46
1313

14-
# Offense count: 5
15-
# Configuration parameters: AllowedMethods, AllowedPatterns.
16-
Metrics/CyclomaticComplexity:
17-
Max: 13
18-
1914
# Offense count: 17
2015
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
2116
Metrics/MethodLength:
2217
Max: 45
23-
24-
# Offense count: 3
25-
# Configuration parameters: AllowedMethods, AllowedPatterns.
26-
Metrics/PerceivedComplexity:
27-
Max: 11

0 commit comments

Comments
 (0)