Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
c4cbf3ef
Commit
c4cbf3ef
authored
Jul 05, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable two cops as recommended.
parent
fb4f3a47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
26 deletions
+24
-26
.rubocop.yml
.rubocop.yml
+8
-0
.rubocop_todo.yml
.rubocop_todo.yml
+16
-26
No files found.
.rubocop.yml
View file @
c4cbf3ef
...
...
@@ -37,6 +37,10 @@ AllCops:
Style/AccessModifierIndentation
:
Enabled
:
true
# Check the naming of accessor methods for get_/set_.
Style/AccessorMethodName
:
Enabled
:
false
# Use alias_method instead of alias.
Style/Alias
:
EnforcedStyle
:
prefer_alias_method
...
...
@@ -239,6 +243,10 @@ Style/MethodDefParentheses:
Style/MethodName
:
Enabled
:
true
# Checks for usage of `extend self` in modules.
Style/ModuleFunction
:
Enabled
:
false
# Checks that the closing brace in an array literal is either on the same line
# as the last array element, or a new line.
Style/MultilineArrayBraceLayout
:
...
...
.rubocop_todo.yml
View file @
c4cbf3ef
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 8`
# on 2016-07-0
3 15:32:25
-0600 using RuboCop version 0.41.1.
# on 2016-07-0
5 10:30:07
-0600 using RuboCop version 0.41.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 15
2
# Offense count: 15
4
Lint/AmbiguousRegexpLiteral
:
Enabled
:
false
...
...
@@ -52,7 +52,7 @@ Lint/StringConversionInInterpolation:
Lint/UnusedBlockArgument
:
Enabled
:
false
# Offense count: 12
5
# Offense count: 12
9
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument
:
...
...
@@ -114,11 +114,7 @@ Rails/TimeZone:
Rails/Validation
:
Enabled
:
false
# Offense count: 18
Style/AccessorMethodName
:
Enabled
:
false
# Offense count: 208
# Offense count: 218
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: with_first_parameter, with_fixed_indentation
...
...
@@ -139,7 +135,7 @@ Style/AndOr:
Style/BarePercentLiterals
:
Enabled
:
false
# Offense count: 25
5
# Offense count: 25
6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: braces, no_braces, context_dependent
...
...
@@ -176,7 +172,7 @@ Style/CommentAnnotation:
Style/ConditionalAssignment
:
Enabled
:
false
# Offense count: 7
62
# Offense count: 7
73
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing
...
...
@@ -194,7 +190,7 @@ Style/EachWithObject:
-
'
lib/ci/ansi2html.rb'
-
'
lib/gitlab/import_export/members_mapper.rb'
# Offense count:
29
# Offense count:
30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty, nil, both
...
...
@@ -244,7 +240,7 @@ Style/IdenticalConditionalBranches:
Style/IfInsideElse
:
Enabled
:
false
# Offense count: 17
8
# Offense count: 17
9
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier
:
...
...
@@ -297,19 +293,13 @@ Style/MethodCallParentheses:
-
'
spec/helpers/submodule_helper_spec.rb'
-
'
spec/workers/post_receive_spec.rb'
# Offense count: 9
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: module_function, extend_self
Style/ModuleFunction
:
Enabled
:
false
# Offense count: 3
Style/MultilineTernaryOperator
:
Exclude
:
-
'
lib/banzai/filter/relative_link_filter.rb'
-
'
spec/support/api_helpers.rb'
# Offense count: 6
2
# Offense count: 6
1
# Cop supports --auto-correct.
Style/MutableConstant
:
Enabled
:
false
...
...
@@ -348,7 +338,7 @@ Style/NumericLiteralPrefix:
Style/ParallelAssignment
:
Enabled
:
false
# Offense count: 20
1
# Offense count: 20
6
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters
:
...
...
@@ -379,7 +369,7 @@ Style/PerlBackrefs:
Style/PredicateName
:
Enabled
:
false
# Offense count: 2
8
# Offense count: 2
7
# Cop supports --auto-correct.
Style/PreferredHashMethods
:
Enabled
:
false
...
...
@@ -394,7 +384,7 @@ Style/Proc:
-
'
lib/api/api_guard.rb'
-
'
spec/initializers/trusted_proxies_spec.rb'
# Offense count: 2
1
# Offense count: 2
0
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded
...
...
@@ -420,7 +410,7 @@ Style/RedundantException:
Style/RedundantFreeze
:
Enabled
:
false
# Offense count: 3
12
# Offense count: 3
21
# Cop supports --auto-correct.
Style/RedundantSelf
:
Enabled
:
false
...
...
@@ -466,7 +456,7 @@ Style/SingleLineMethods:
Style/SpaceAroundEqualsInParameterDefault
:
Enabled
:
false
# Offense count: 11
8
# Offense count: 11
9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
...
...
@@ -494,7 +484,7 @@ Style/SpaceBeforeFirstArg:
Style/SpaceInsideBlockBraces
:
Enabled
:
false
# Offense count: 9
2
# Offense count: 9
8
# Cop supports --auto-correct.
Style/SpaceInsideBrackets
:
Enabled
:
false
...
...
@@ -558,7 +548,7 @@ Style/TrailingUnderscoreVariable:
-
'
lib/gitlab/force_push_check.rb'
-
'
lib/gitlab/logger.rb'
# Offense count: 8
9
# Offense count: 8
8
# Cop supports --auto-correct.
Style/TrailingWhitespace
:
Enabled
:
false
...
...
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