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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b2af746c
Commit
b2af746c
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
75b5343a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
59 deletions
+89
-59
.rubocop.yml
.rubocop.yml
+4
-0
.rubocop_todo.yml
.rubocop_todo.yml
+85
-59
No files found.
.rubocop.yml
View file @
b2af746c
...
...
@@ -956,6 +956,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 @
b2af746c
# 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
# Offense count:
26
# Offense count:
15
# Configuration parameters: CustomIncludeMethods.
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:
88
# Offense count:
72
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: implicit, each, example
RSpec/HookArgument
:
Enabled
:
false
# Offense count:
25
# Offense count:
12
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: is_expected, should
RSpec/ImplicitExpect
:
Enabled
:
false
# Offense count: 46
# 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: 36
# 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
72
# Offense count: 1
50
Rails/FilePath
:
Enabled
:
false
# Offense count:
6
# Offense count:
2
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/ReversibleMigration
:
Enabled
:
false
# Offense count: 3
21
# Offense count: 3
02
# 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:
48
# Offense count:
59
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals
:
Enabled
:
false
# Offense count: 1
336
# Offense count: 1
403
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing
Style/DotPosition
:
Enabled
:
false
# Offense count:
9
# Offense count:
5
# Cop supports --auto-correct.
Style/EachWithObject
:
Enabled
:
false
# Offense count: 2
6
# 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:
63
# Offense count:
59
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, expanded
Style/EmptyMethod
:
Enabled
:
false
# Offense count: 2
03
# Offense count: 2
14
# 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:
318
# Offense count:
285
# Configuration parameters: MinBodyLength.
Style/GuardClause
:
Enabled
:
false
# Offense count: 1
7
# Offense count: 1
6
Style/IfInsideElse
:
Enabled
:
false
# Offense count: 1
92
# Offense count: 1
86
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier
:
Enabled
:
false
# Offense count:
63
# 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
37
# Offense count: 1
60
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Style/IndentHash
:
Enabled
:
false
# Offense count: 5
3
# Offense count: 5
0
# 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:
23
# 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
3
# Offense count: 2
4
# Cop supports --auto-correct.
Style/NestedParenthesizedCalls
:
Enabled
:
false
# Offense count:
20
# Offense count:
18
# 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: 8
7
# Offense count: 8
8
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
# SupportedStyles: predicate, comparison
...
...
@@ -200,18 +226,18 @@ Style/NumericPredicate:
Style/ParallelAssignment
:
Enabled
:
false
# Offense count:
488
# Offense count:
570
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters
:
Enabled
:
false
# Offense count: 1
8
# Offense count: 1
4
# Cop supports --auto-correct.
Style/PerlBackrefs
:
Enabled
:
false
# Offense count:
77
# 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: 4
2
# Offense count: 4
5
# 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:
6
# Offense count:
5
# Cop supports --auto-correct.
Style/RedundantBegin
:
Enabled
:
false
...
...
@@ -243,30 +269,30 @@ Style/RedundantBegin:
Style/RedundantFreeze
:
Enabled
:
false
# Offense count: 1
6
# Offense count: 1
5
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn
:
Enabled
:
false
# Offense count:
467
# Offense count:
382
# 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
7
# Offense count: 2
4
# Cop supports --auto-correct.
Style/RescueModifier
:
Enabled
:
false
# Offense count:
8
# Offense count:
7
# Cop supports --auto-correct.
Style/SelfAssignment
:
Enabled
:
false
...
...
@@ -277,27 +303,27 @@ Style/SelfAssignment:
Style/SingleLineMethods
:
Enabled
:
false
# Offense count: 1
83
# Offense count: 1
68
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceBeforeBlockBraces
:
Enabled
:
false
# Offense count:
9
# Offense count:
8
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Style/SpaceBeforeFirstArg
:
Enabled
:
false
# Offense count: 4
5
# Offense count: 4
6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: require_no_space, require_space
Style/SpaceInLambdaLiteral
:
Enabled
:
false
# Offense count: 2
15
# Offense count: 2
29
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
...
...
@@ -305,63 +331,63 @@ Style/SpaceInLambdaLiteral:
Style/SpaceInsideBlockBraces
:
Enabled
:
false
# Offense count: 1
01
# Offense count: 1
16
# Cop supports --auto-correct.
Style/SpaceInsideParens
:
Enabled
:
false
# Offense count:
6
# 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:
51
# Offense count:
42
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation
:
Enabled
:
false
# Offense count: 6
2
# Offense count: 6
4
# 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:
45
# Offense count:
53
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments
:
Enabled
:
false
# Offense count: 1
2
# Offense count: 1
8
# Cop supports --auto-correct.
# Configuration parameters: AllowNamedUnderscoreVariables.
Style/TrailingUnderscoreVariable
:
Enabled
:
false
# Offense count:
83
# Offense count:
78
# Cop supports --auto-correct.
Style/TrailingWhitespace
:
Enabled
:
false
# Offense count:
4
# Offense count:
3
# Cop supports --auto-correct.
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
...
...
@@ -373,12 +399,12 @@ Style/TrivialAccessors:
Style/UnlessElse
:
Enabled
:
false
# Offense count: 2
2
# Offense count: 2
4
# Cop supports --auto-correct.
Style/UnneededInterpolation
:
Enabled
:
false
# Offense count:
9
# Offense count:
8
# Cop supports --auto-correct.
Style/ZeroLengthPredicate
:
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