Skip to content

Commit 8a5d3ba

Browse files
authored
Merge pull request #160 from sue445/feature/remove_ClassLength
Remove Metrics/ClassLength in .rubocop_todo.yml
2 parents ccb14c6 + f2c0097 commit 8a5d3ba

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.rubocop.yml

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

42+
Metrics/ClassLength:
43+
Exclude:
44+
- "**/*_test.rb"
45+
4246
Style/Documentation:
4347
Exclude:
4448
- "**/*_test.rb"

.rubocop_todo.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ Metrics/AbcSize:
1717
Metrics/BlockLength:
1818
Max: 48
1919

20-
# Offense count: 2
21-
# Configuration parameters: CountComments, CountAsOne.
22-
Metrics/ClassLength:
23-
Max: 131
24-
2520
# Offense count: 7
2621
# Configuration parameters: AllowedMethods, AllowedPatterns.
2722
Metrics/CyclomaticComplexity:

_tools/patch_for_go_gem/patch_for_go_gem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
raise "#{gemspec_file} isn't found" unless File.exist?(gemspec_file)
1717

1818
# Patch to make a gem into a Go gem right after `bundle gem`
19-
class GemPatcher
19+
class GemPatcher # rubocop:disable Metrics/ClassLength
2020
attr_reader :gemspec_file
2121

2222
# @param gemspec_file [String]

0 commit comments

Comments
 (0)