BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
79fb993a
Commit
79fb993a
authored
Nov 14, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable rubocop metrics
This enables rubocop metrics like CyclomaticComplexity and ABCSize. Initial threshold values are high, should be probably decreased.
parent
e02940e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
.rubocop.yml
.rubocop.yml
+24
-19
No files found.
.rubocop.yml
View file @
79fb993a
...
...
@@ -735,23 +735,39 @@ Metrics/AbcSize:
Description
:
>-
A calculated magnitude based on number of assignments,
branches, and conditions.
Enabled: false
Enabled: true
Max: 70
Metrics/CyclomaticComplexity
:
Description
:
>-
A complexity metric that is strongly correlated to the number
of test cases needed to validate a method.
Enabled: true
Max: 16
Metrics/PerceivedComplexity
:
Description
:
>-
A complexity metric geared towards measuring complexity for a
human reader.
Enabled: true
Max: 16
Metrics/ParameterLists
:
Description
:
'
Avoid
parameter
lists
longer
than
three
or
four
parameters.'
StyleGuide
:
'
https://github.com/bbatsov/ruby-style-guide#too-many-params'
Enabled
:
true
Max
:
8
Metrics/BlockNesting
:
Description
:
'
Avoid
excessive
block
nesting'
StyleGuide
:
'
https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
Enabled
:
false
Enabled
:
true
Max
:
4
Metrics/ClassLength
:
Description
:
'
Avoid
classes
longer
than
100
lines
of
code.'
Enabled
:
false
Metrics/CyclomaticComplexity
:
Description
:
>-
A complexity metric that is strongly correlated to the number
of test cases needed to validate a method.
Enabled: false
Metrics/LineLength
:
Description
:
'
Limit
lines
to
80
characters.'
StyleGuide
:
'
https://github.com/bbatsov/ruby-style-guide#80-character-limits'
...
...
@@ -762,17 +778,6 @@ Metrics/MethodLength:
StyleGuide
:
'
https://github.com/bbatsov/ruby-style-guide#short-methods'
Enabled
:
false
Metrics/ParameterLists
:
Description
:
'
Avoid
parameter
lists
longer
than
three
or
four
parameters.'
StyleGuide
:
'
https://github.com/bbatsov/ruby-style-guide#too-many-params'
Enabled
:
false
Metrics/PerceivedComplexity
:
Description
:
>-
A complexity metric geared towards measuring complexity for a
human reader.
Enabled: false
#################### Lint ################################
### Warnings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment