Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noc-netze-gitlab-cicd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NOC-public
noc-netze-gitlab-cicd
Commits
0ecbe85a
Commit
0ecbe85a
authored
7 months ago
by
Darius Schneider
Browse files
Options
Downloads
Patches
Plain Diff
better exclusions for gems for Rubocop Metrics department
parent
d6ea7bdd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
rails/rubocop-for-gem.yml
+6
-6
6 additions, 6 deletions
rails/rubocop-for-gem.yml
with
6 additions
and
6 deletions
rails/rubocop-for-gem.yml
+
6
−
6
View file @
0ecbe85a
...
...
@@ -51,13 +51,13 @@ Metrics/AbcSize:
Metrics/BlockLength
:
AllowedMethods
:
[
'
class_eval'
,
'
module_eval'
,
'
refine'
]
# default: 'refine'
CountAsOne
:
&array_hash_heredoc_method_call
[
'
array'
,
'
hash'
,
'
heredoc'
,
'
method_call'
]
# default: []
Exclude
:
&test_config_db
[
'
*.
gemspec
'
,
'
*/config/**/*'
,
'
test/**/*'
,
'
config/**/*'
,
'
db/**/*'
]
Exclude
:
&test_config_db
_
gemspec
_subconfig
[
'
test/**/*'
,
'
config/**/*'
,
'
db/**/*'
,
'
*.gemspec'
,
'
**/*/config/*'
]
# default is too restrictive, having some restriction incentivizes to split up overly large classes
Metrics/ClassLength
:
CountAsOne
:
*array_hash_heredoc_method_call
# default: []
Max
:
200
# default: 100
Exclude
:
*test_config_db
Exclude
:
*test_config_db
_gemspec_subconfig
# default is too restrictive, allow higher complexity
Metrics/CyclomaticComplexity
:
...
...
@@ -67,13 +67,13 @@ Metrics/CyclomaticComplexity:
Metrics/MethodLength
:
CountAsOne
:
*array_hash_heredoc_method_call
# default: []
Max
:
30
# default: 10
Exclude
:
*test_config_db
Exclude
:
*test_config_db
_gemspec_subconfig
# default is too restrictive, allow longer modules
Metrics/ModuleLength
:
CountAsOne
:
*array_hash_heredoc_method_call
# default: []
Max
:
200
# default: 100
Exclude
:
*test_config_db
Exclude
:
*test_config_db
_gemspec_subconfig
# long parameter lists add too much complexity, keyword args are named and thus more obvious what is expected, ignore them
Metrics/ParameterLists
:
...
...
@@ -141,11 +141,11 @@ Style/ClassAndModuleChildren:
# documentation of classes in migrations and tests is not needed
Style/Documentation
:
Exclude
:
*test_config_db
Exclude
:
*test_config_db
_gemspec_subconfig
# allow in auto-generated files
Style/GlobalStdStream
:
Exclude
:
*test_config_db
Exclude
:
*test_config_db
_gemspec_subconfig
# allow empty parentheses to differentiate method calls vs attributes
Style/MethodCallWithoutArgsParentheses
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment