Skip to content

Commit

Permalink
rubocop: Enable Metrics cops
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 24, 2023
1 parent e051f59 commit de518a4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,5 @@ RSpec/MultipleExpectations:
RSpec/NestedGroups:
Max: 4

Metrics:
Enabled: false

Style:
Enabled: false
40 changes: 39 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,44 @@ Lint/UselessAssignment:
- 'lib/beaker/dsl/helpers/host_helpers.rb'
- 'lib/beaker/logger_junit.rb'

# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 134

# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 233

# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 4

# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 346

# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 24

# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 236

# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 650

# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
MaxOptionalParameters: 4
Max: 6

# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 27

# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Expand Down Expand Up @@ -236,4 +274,4 @@ Security/Open:
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 226
Max: 225

0 comments on commit de518a4

Please sign in to comment.