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
iv
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
Show 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:
...
@@ -37,6 +37,10 @@ AllCops:
Style/AccessModifierIndentation
:
Style/AccessModifierIndentation
:
Enabled
:
true
Enabled
:
true
# Check the naming of accessor methods for get_/set_.
Style/AccessorMethodName
:
Enabled
:
false
# Use alias_method instead of alias.
# Use alias_method instead of alias.
Style/Alias
:
Style/Alias
:
EnforcedStyle
:
prefer_alias_method
EnforcedStyle
:
prefer_alias_method
...
@@ -239,6 +243,10 @@ Style/MethodDefParentheses:
...
@@ -239,6 +243,10 @@ Style/MethodDefParentheses:
Style/MethodName
:
Style/MethodName
:
Enabled
:
true
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
# Checks that the closing brace in an array literal is either on the same line
# as the last array element, or a new line.
# as the last array element, or a new line.
Style/MultilineArrayBraceLayout
:
Style/MultilineArrayBraceLayout
:
...
...
.rubocop_todo.yml
View file @
c4cbf3ef
# This configuration was generated by
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 8`
# `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
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# versions of RuboCop, may require this file to be generated again.
# Offense count: 15
2
# Offense count: 15
4
Lint/AmbiguousRegexpLiteral
:
Lint/AmbiguousRegexpLiteral
:
Enabled
:
false
Enabled
:
false
...
@@ -52,7 +52,7 @@ Lint/StringConversionInInterpolation:
...
@@ -52,7 +52,7 @@ Lint/StringConversionInInterpolation:
Lint/UnusedBlockArgument
:
Lint/UnusedBlockArgument
:
Enabled
:
false
Enabled
:
false
# Offense count: 12
5
# Offense count: 12
9
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument
:
Lint/UnusedMethodArgument
:
...
@@ -114,11 +114,7 @@ Rails/TimeZone:
...
@@ -114,11 +114,7 @@ Rails/TimeZone:
Rails/Validation
:
Rails/Validation
:
Enabled
:
false
Enabled
:
false
# Offense count: 18
# Offense count: 218
Style/AccessorMethodName
:
Enabled
:
false
# Offense count: 208
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: with_first_parameter, with_fixed_indentation
# SupportedStyles: with_first_parameter, with_fixed_indentation
...
@@ -139,7 +135,7 @@ Style/AndOr:
...
@@ -139,7 +135,7 @@ Style/AndOr:
Style/BarePercentLiterals
:
Style/BarePercentLiterals
:
Enabled
:
false
Enabled
:
false
# Offense count: 25
5
# Offense count: 25
6
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: braces, no_braces, context_dependent
# SupportedStyles: braces, no_braces, context_dependent
...
@@ -176,7 +172,7 @@ Style/CommentAnnotation:
...
@@ -176,7 +172,7 @@ Style/CommentAnnotation:
Style/ConditionalAssignment
:
Style/ConditionalAssignment
:
Enabled
:
false
Enabled
:
false
# Offense count: 7
62
# Offense count: 7
73
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing
# SupportedStyles: leading, trailing
...
@@ -194,7 +190,7 @@ Style/EachWithObject:
...
@@ -194,7 +190,7 @@ Style/EachWithObject:
-
'
lib/ci/ansi2html.rb'
-
'
lib/ci/ansi2html.rb'
-
'
lib/gitlab/import_export/members_mapper.rb'
-
'
lib/gitlab/import_export/members_mapper.rb'
# Offense count:
29
# Offense count:
30
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty, nil, both
# SupportedStyles: empty, nil, both
...
@@ -244,7 +240,7 @@ Style/IdenticalConditionalBranches:
...
@@ -244,7 +240,7 @@ Style/IdenticalConditionalBranches:
Style/IfInsideElse
:
Style/IfInsideElse
:
Enabled
:
false
Enabled
:
false
# Offense count: 17
8
# Offense count: 17
9
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier
:
Style/IfUnlessModifier
:
...
@@ -297,19 +293,13 @@ Style/MethodCallParentheses:
...
@@ -297,19 +293,13 @@ Style/MethodCallParentheses:
-
'
spec/helpers/submodule_helper_spec.rb'
-
'
spec/helpers/submodule_helper_spec.rb'
-
'
spec/workers/post_receive_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
# Offense count: 3
Style/MultilineTernaryOperator
:
Style/MultilineTernaryOperator
:
Exclude
:
Exclude
:
-
'
lib/banzai/filter/relative_link_filter.rb'
-
'
lib/banzai/filter/relative_link_filter.rb'
-
'
spec/support/api_helpers.rb'
-
'
spec/support/api_helpers.rb'
# Offense count: 6
2
# Offense count: 6
1
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/MutableConstant
:
Style/MutableConstant
:
Enabled
:
false
Enabled
:
false
...
@@ -348,7 +338,7 @@ Style/NumericLiteralPrefix:
...
@@ -348,7 +338,7 @@ Style/NumericLiteralPrefix:
Style/ParallelAssignment
:
Style/ParallelAssignment
:
Enabled
:
false
Enabled
:
false
# Offense count: 20
1
# Offense count: 20
6
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters
:
Style/PercentLiteralDelimiters
:
...
@@ -379,7 +369,7 @@ Style/PerlBackrefs:
...
@@ -379,7 +369,7 @@ Style/PerlBackrefs:
Style/PredicateName
:
Style/PredicateName
:
Enabled
:
false
Enabled
:
false
# Offense count: 2
8
# Offense count: 2
7
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/PreferredHashMethods
:
Style/PreferredHashMethods
:
Enabled
:
false
Enabled
:
false
...
@@ -394,7 +384,7 @@ Style/Proc:
...
@@ -394,7 +384,7 @@ Style/Proc:
-
'
lib/api/api_guard.rb'
-
'
lib/api/api_guard.rb'
-
'
spec/initializers/trusted_proxies_spec.rb'
-
'
spec/initializers/trusted_proxies_spec.rb'
# Offense count: 2
1
# Offense count: 2
0
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded
# SupportedStyles: compact, exploded
...
@@ -420,7 +410,7 @@ Style/RedundantException:
...
@@ -420,7 +410,7 @@ Style/RedundantException:
Style/RedundantFreeze
:
Style/RedundantFreeze
:
Enabled
:
false
Enabled
:
false
# Offense count: 3
12
# Offense count: 3
21
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/RedundantSelf
:
Style/RedundantSelf
:
Enabled
:
false
Enabled
:
false
...
@@ -466,7 +456,7 @@ Style/SingleLineMethods:
...
@@ -466,7 +456,7 @@ Style/SingleLineMethods:
Style/SpaceAroundEqualsInParameterDefault
:
Style/SpaceAroundEqualsInParameterDefault
:
Enabled
:
false
Enabled
:
false
# Offense count: 11
8
# Offense count: 11
9
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
# SupportedStyles: space, no_space
...
@@ -494,7 +484,7 @@ Style/SpaceBeforeFirstArg:
...
@@ -494,7 +484,7 @@ Style/SpaceBeforeFirstArg:
Style/SpaceInsideBlockBraces
:
Style/SpaceInsideBlockBraces
:
Enabled
:
false
Enabled
:
false
# Offense count: 9
2
# Offense count: 9
8
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/SpaceInsideBrackets
:
Style/SpaceInsideBrackets
:
Enabled
:
false
Enabled
:
false
...
@@ -558,7 +548,7 @@ Style/TrailingUnderscoreVariable:
...
@@ -558,7 +548,7 @@ Style/TrailingUnderscoreVariable:
-
'
lib/gitlab/force_push_check.rb'
-
'
lib/gitlab/force_push_check.rb'
-
'
lib/gitlab/logger.rb'
-
'
lib/gitlab/logger.rb'
# Offense count: 8
9
# Offense count: 8
8
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/TrailingWhitespace
:
Style/TrailingWhitespace
:
Enabled
:
false
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