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
Boxiang Sun
gitlab-ce
Commits
6576a6ce
Commit
6576a6ce
authored
Apr 07, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable RSpec/DescribeSymbol; update .rubocop_todo.yml
parent
86a2fb2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
50 deletions
+80
-50
.rubocop.yml
.rubocop.yml
+4
-0
.rubocop_todo.yml
.rubocop_todo.yml
+76
-50
No files found.
.rubocop.yml
View file @
6576a6ce
...
...
@@ -954,6 +954,10 @@ RSpec/DescribeClass:
RSpec/DescribeMethod
:
Enabled
:
false
# Avoid describing symbols.
RSpec/DescribeSymbol
:
Enabled
:
true
# Checks that the second argument to top level describe is the tested method
# name.
RSpec/DescribedClass
:
...
...
.rubocop_todo.yml
View file @
6576a6ce
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 0`
# on 2017-0
2-22 13:02:35 -06
00 using RuboCop version 0.47.1.
# on 2017-0
4-07 20:17:35 -04
00 using RuboCop version 0.47.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: 5
1
# Offense count: 5
4
RSpec/BeforeAfterAll
:
Enabled
:
false
...
...
@@ -15,11 +15,19 @@ RSpec/BeforeAfterAll:
RSpec/EmptyExampleGroup
:
Enabled
:
false
# Offense count: 1
# Offense count: 233
RSpec/EmptyLineAfterFinalLet
:
Enabled
:
false
# Offense count: 167
RSpec/EmptyLineAfterSubject
:
Enabled
:
false
# Offense count: 3
RSpec/ExpectOutput
:
Enabled
:
false
# Offense count:
63
# Offense count:
72
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: implicit, each, example
RSpec/HookArgument
:
...
...
@@ -31,19 +39,37 @@ RSpec/HookArgument:
RSpec/ImplicitExpect
:
Enabled
:
false
# Offense count: 36
RSpec/RepeatedExample
:
# Offense count: 11
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: it_behaves_like, it_should_behave_like
RSpec/ItBehavesLike
:
Enabled
:
false
# Offense count: 4
RSpec/IteratedExpectation
:
Enabled
:
false
# Offense count: 3
RSpec/OverwritingSetup
:
Enabled
:
false
# Offense count: 34
RSpec/RepeatedExample
:
Enabled
:
false
# Offense count: 43
RSpec/ScatteredLet
:
Enabled
:
false
# Offense count: 32
RSpec/ScatteredSetup
:
Enabled
:
false
# Offense count: 1
RSpec/S
ingleArgumentMessageChain
:
RSpec/S
haredContext
:
Enabled
:
false
# Offense count: 1
63
# Offense count: 1
50
Rails/FilePath
:
Enabled
:
false
...
...
@@ -53,7 +79,7 @@ Rails/FilePath:
Rails/ReversibleMigration
:
Enabled
:
false
# Offense count:
278
# Offense count:
302
# Configuration parameters: Blacklist.
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
Rails/SkipsModelValidations
:
...
...
@@ -64,26 +90,26 @@ Rails/SkipsModelValidations:
Security/YAMLLoad
:
Enabled
:
false
# Offense count: 5
5
# Offense count: 5
9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals
:
Enabled
:
false
# Offense count: 1
304
# Offense count: 1
403
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing
Style/DotPosition
:
Enabled
:
false
# Offense count:
6
# Offense count:
5
# Cop supports --auto-correct.
Style/EachWithObject
:
Enabled
:
false
# Offense count: 2
5
# Offense count: 2
8
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty, nil, both
...
...
@@ -95,72 +121,72 @@ Style/EmptyElse:
Style/EmptyLiteral
:
Enabled
:
false
# Offense count: 5
6
# Offense count: 5
9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, expanded
Style/EmptyMethod
:
Enabled
:
false
# Offense count:
18
4
# Offense count:
21
4
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Style/ExtraSpacing
:
Enabled
:
false
# Offense count:
8
# Offense count:
9
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: format, sprintf, percent
Style/FormatString
:
Enabled
:
false
# Offense count: 2
68
# Offense count: 2
85
# Configuration parameters: MinBodyLength.
Style/GuardClause
:
Enabled
:
false
# Offense count: 1
4
# Offense count: 1
6
Style/IfInsideElse
:
Enabled
:
false
# Offense count: 1
79
# Offense count: 1
86
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier
:
Enabled
:
false
# Offense count:
57
# Offense count:
99
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Style/IndentArray
:
Enabled
:
false
# Offense count: 1
2
0
# Offense count: 1
6
0
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Style/IndentHash
:
Enabled
:
false
# Offense count:
45
# Offense count:
50
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: line_count_dependent, lambda, literal
Style/Lambda
:
Enabled
:
false
# Offense count:
7
# Offense count:
6
# Cop supports --auto-correct.
Style/LineEndConcatenation
:
Enabled
:
false
# Offense count:
22
# Offense count:
34
# Cop supports --auto-correct.
Style/MethodCallWithoutArgsParentheses
:
Enabled
:
false
# Offense count:
9
# Offense count:
10
Style/MethodMissing
:
Enabled
:
false
...
...
@@ -169,26 +195,26 @@ Style/MethodMissing:
Style/MultilineIfModifier
:
Enabled
:
false
# Offense count: 2
2
# Offense count: 2
4
# Cop supports --auto-correct.
Style/NestedParenthesizedCalls
:
Enabled
:
false
# Offense count: 1
7
# Offense count: 1
8
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
# SupportedStyles: skip_modifier_ifs, always
Style/Next
:
Enabled
:
false
# Offense count: 3
1
# Offense count: 3
7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix
:
Enabled
:
false
# Offense count:
77
# Offense count:
88
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
# SupportedStyles: predicate, comparison
...
...
@@ -200,7 +226,7 @@ Style/NumericPredicate:
Style/ParallelAssignment
:
Enabled
:
false
# Offense count:
477
# Offense count:
570
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters
:
...
...
@@ -211,7 +237,7 @@ Style/PercentLiteralDelimiters:
Style/PerlBackrefs
:
Enabled
:
false
# Offense count:
72
# Offense count:
83
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
...
...
@@ -219,21 +245,21 @@ Style/PerlBackrefs:
Style/PredicateName
:
Enabled
:
false
# Offense count:
39
# Offense count:
45
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: short, verbose
Style/PreferredHashMethods
:
Enabled
:
false
# Offense count: 6
2
# Offense count: 6
5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded
Style/RaiseArgs
:
Enabled
:
false
# Offense count:
4
# Offense count:
5
# Cop supports --auto-correct.
Style/RedundantBegin
:
Enabled
:
false
...
...
@@ -249,19 +275,19 @@ Style/RedundantFreeze:
Style/RedundantReturn
:
Enabled
:
false
# Offense count: 3
65
# Offense count: 3
82
# Cop supports --auto-correct.
Style/RedundantSelf
:
Enabled
:
false
# Offense count: 1
08
# Offense count: 1
11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral
:
Enabled
:
false
# Offense count: 2
2
# Offense count: 2
4
# Cop supports --auto-correct.
Style/RescueModifier
:
Enabled
:
false
...
...
@@ -277,7 +303,7 @@ Style/SelfAssignment:
Style/SingleLineMethods
:
Enabled
:
false
# Offense count: 1
55
# Offense count: 1
68
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
...
...
@@ -290,14 +316,14 @@ Style/SpaceBeforeBlockBraces:
Style/SpaceBeforeFirstArg
:
Enabled
:
false
# Offense count:
38
# Offense count:
46
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: require_no_space, require_space
Style/SpaceInLambdaLiteral
:
Enabled
:
false
# Offense count: 2
03
# Offense count: 2
29
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
...
...
@@ -305,58 +331,58 @@ Style/SpaceInLambdaLiteral:
Style/SpaceInsideBlockBraces
:
Enabled
:
false
# Offense count:
91
# Offense count:
116
# Cop supports --auto-correct.
Style/SpaceInsideParens
:
Enabled
:
false
# Offense count:
4
# Offense count:
12
# Cop supports --auto-correct.
Style/SpaceInsidePercentLiteralDelimiters
:
Enabled
:
false
# Offense count: 5
5
# Offense count: 5
7
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars
:
EnforcedStyle
:
use_perl_names
# Offense count: 4
0
# Offense count: 4
2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation
:
Enabled
:
false
# Offense count:
57
# Offense count:
64
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
# IgnoredMethods: respond_to, define_method
Style/SymbolProc
:
Enabled
:
false
# Offense count:
5
# Offense count:
6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses
:
Enabled
:
false
# Offense count:
4
3
# Offense count:
5
3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments
:
Enabled
:
false
# Offense count: 1
3
# Offense count: 1
8
# Cop supports --auto-correct.
# Configuration parameters: AllowNamedUnderscoreVariables.
Style/TrailingUnderscoreVariable
:
Enabled
:
false
# Offense count: 7
0
# Offense count: 7
8
# Cop supports --auto-correct.
Style/TrailingWhitespace
:
Enabled
:
false
...
...
@@ -373,7 +399,7 @@ Style/TrivialAccessors:
Style/UnlessElse
:
Enabled
:
false
# Offense count: 2
2
# Offense count: 2
4
# Cop supports --auto-correct.
Style/UnneededInterpolation
:
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