Skip to content
Snippets Groups Projects

Enable (and disable) more rubocops

Merged Douwe Maan requested to merge dm-meer-blauw-op-straat into master
1 unresolved thread
3 files
+ 74
55
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 65
46
# This configuration was generated by
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 0`
# `rubocop --auto-gen-config --exclude-limit 0`
# on 2017-02-22 10:58:40 -0600 using RuboCop version 0.46.0.
# on 2017-02-22 12:40:11 -0600 using RuboCop version 0.47.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: 1
# Offense count: 51
# Cop supports --auto-correct.
RSpec/BeforeAfterAll:
Performance/RedundantBlockCall:
Enabled: false
Enabled: false
# Offense count: 15
# Offense count: 15
@@ -16,6 +15,10 @@ Performance/RedundantBlockCall:
@@ -16,6 +15,10 @@ Performance/RedundantBlockCall:
RSpec/EmptyExampleGroup:
RSpec/EmptyExampleGroup:
Enabled: false
Enabled: false
 
# Offense count: 1
 
RSpec/ExpectOutput:
 
Enabled: false
 
# Offense count: 63
# Offense count: 63
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: implicit, each, example
# SupportedStyles: implicit, each, example
@@ -28,20 +31,37 @@ RSpec/HookArgument:
@@ -28,20 +31,37 @@ RSpec/HookArgument:
RSpec/ImplicitExpect:
RSpec/ImplicitExpect:
Enabled: false
Enabled: false
 
# Offense count: 36
 
RSpec/RepeatedExample:
 
Enabled: false
 
 
# Offense count: 34
 
RSpec/ScatteredSetup:
 
Enabled: false
 
# Offense count: 1
# Offense count: 1
RSpec/SingleArgumentMessageChain:
RSpec/SingleArgumentMessageChain:
Enabled: false
Enabled: false
# Offense count: 8
# Offense count: 163
# Cop supports --auto-correct.
Rails/FilePath:
Style/AlignArray:
Enabled: false
 
 
# Offense count: 2
 
# Configuration parameters: Include.
 
# Include: db/migrate/*.rb
 
Rails/ReversibleMigration:
 
Enabled: false
 
 
# Offense count: 278
 
# Configuration parameters: Blacklist.
 
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
 
Rails/SkipsModelValidations:
Enabled: false
Enabled: false
# Offense count: 11
# Offense count: 7
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
Security/YAMLLoad:
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Style/AlignHash:
Enabled: false
Enabled: false
# Offense count: 6
# Offense count: 6
@@ -49,7 +69,7 @@ Style/AlignHash:
@@ -49,7 +69,7 @@ Style/AlignHash:
Style/EachWithObject:
Style/EachWithObject:
Enabled: false
Enabled: false
# Offense count: 24
# Offense count: 25
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty, nil, both
# SupportedStyles: empty, nil, both
@@ -61,14 +81,14 @@ Style/EmptyElse:
@@ -61,14 +81,14 @@ Style/EmptyElse:
Style/EmptyLiteral:
Style/EmptyLiteral:
Enabled: false
Enabled: false
# Offense count: 55
# Offense count: 56
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, expanded
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Style/EmptyMethod:
Enabled: false
Enabled: false
# Offense count: 173
# Offense count: 184
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Style/ExtraSpacing:
Style/ExtraSpacing:
@@ -80,29 +100,33 @@ Style/ExtraSpacing:
@@ -80,29 +100,33 @@ Style/ExtraSpacing:
Style/FormatString:
Style/FormatString:
Enabled: false
Enabled: false
# Offense count: 263
# Offense count: 268
# Configuration parameters: MinBodyLength.
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Style/GuardClause:
Enabled: false
Enabled: false
# Offense count: 12
# Offense count: 2
 
Style/IdenticalConditionalBranches:
 
Enabled: false
 
 
# Offense count: 14
Style/IfInsideElse:
Style/IfInsideElse:
Enabled: false
Enabled: false
# Offense count: 177
# Offense count: 179
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
Style/IfUnlessModifier:
Enabled: false
Enabled: false
# Offense count: 61
# Offense count: 57
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Style/IndentArray:
Style/IndentArray:
Enabled: false
Enabled: false
# Offense count: 108
# Offense count: 120
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
# SupportedStyles: special_inside_parentheses, consistent, align_braces
@@ -123,7 +147,7 @@ Style/LineEndConcatenation:
@@ -123,7 +147,7 @@ Style/LineEndConcatenation:
# Offense count: 22
# Offense count: 22
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/MethodCallParentheses:
Style/MethodCallWithoutArgsParentheses:
Enabled: false
Enabled: false
# Offense count: 9
# Offense count: 9
@@ -135,26 +159,26 @@ Style/MethodMissing:
@@ -135,26 +159,26 @@ Style/MethodMissing:
Style/MultilineIfModifier:
Style/MultilineIfModifier:
Enabled: false
Enabled: false
# Offense count: 8
# Offense count: 22
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/NestedParenthesizedCalls:
Style/NestedParenthesizedCalls:
Enabled: false
Enabled: false
# Offense count: 15
# Offense count: 17
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
# SupportedStyles: skip_modifier_ifs, always
# SupportedStyles: skip_modifier_ifs, always
Style/Next:
Style/Next:
Enabled: false
Enabled: false
# Offense count: 19
# Offense count: 31
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
# SupportedOctalStyles: zero_with_o, zero_only
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Style/NumericLiteralPrefix:
Enabled: false
Enabled: false
# Offense count: 68
# Offense count: 77
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
# SupportedStyles: predicate, comparison
# SupportedStyles: predicate, comparison
@@ -166,13 +190,13 @@ Style/NumericPredicate:
@@ -166,13 +190,13 @@ Style/NumericPredicate:
Style/ParallelAssignment:
Style/ParallelAssignment:
Enabled: false
Enabled: false
# Offense count: 463
# Offense count: 477
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Style/PercentLiteralDelimiters:
Enabled: false
Enabled: false
# Offense count: 13
# Offense count: 14
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/PerlBackrefs:
Style/PerlBackrefs:
Enabled: false
Enabled: false
@@ -204,7 +228,7 @@ Style/Proc:
@@ -204,7 +228,7 @@ Style/Proc:
Style/RaiseArgs:
Style/RaiseArgs:
Enabled: false
Enabled: false
# Offense count: 3
# Offense count: 4
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/RedundantBegin:
Style/RedundantBegin:
Enabled: false
Enabled: false
@@ -225,7 +249,7 @@ Style/RedundantReturn:
@@ -225,7 +249,7 @@ Style/RedundantReturn:
Style/RedundantSelf:
Style/RedundantSelf:
Enabled: false
Enabled: false
# Offense count: 107
# Offense count: 108
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
# SupportedStyles: slashes, percent_r, mixed
@@ -242,19 +266,13 @@ Style/RescueModifier:
@@ -242,19 +266,13 @@ Style/RescueModifier:
Style/SelfAssignment:
Style/SelfAssignment:
Enabled: false
Enabled: false
# Offense count: 2
# Configuration parameters: Methods.
# Methods: {"reduce"=>["acc", "elem"]}, {"inject"=>["acc", "elem"]}
Style/SingleLineBlockParams:
Enabled: false
# Offense count: 50
# Offense count: 50
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: AllowIfMethodIsEmpty.
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
Style/SingleLineMethods:
Enabled: false
Enabled: false
# Offense count: 153
# Offense count: 155
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
# SupportedStyles: space, no_space
@@ -274,14 +292,15 @@ Style/SpaceBeforeFirstArg:
@@ -274,14 +292,15 @@ Style/SpaceBeforeFirstArg:
Style/SpaceInLambdaLiteral:
Style/SpaceInLambdaLiteral:
Enabled: false
Enabled: false
# Offense count: 201
# Offense count: 203
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
# SupportedStyles: space, no_space
 
# SupportedStylesForEmptyBraces: space, no_space
Style/SpaceInsideBlockBraces:
Style/SpaceInsideBlockBraces:
Enabled: false
Enabled: false
# Offense count: 90
# Offense count: 91
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/SpaceInsideParens:
Style/SpaceInsideParens:
Enabled: false
Enabled: false
@@ -291,14 +310,14 @@ Style/SpaceInsideParens:
@@ -291,14 +310,14 @@ Style/SpaceInsideParens:
Style/SpaceInsidePercentLiteralDelimiters:
Style/SpaceInsidePercentLiteralDelimiters:
Enabled: false
Enabled: false
# Offense count: 52
# Offense count: 55
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
# Configuration parameters: SupportedStyles.
# SupportedStyles: use_perl_names, use_english_names
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
Style/SpecialGlobalVars:
EnforcedStyle: use_perl_names
EnforcedStyle: use_perl_names
# Offense count: 25
# Offense count: 40
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: single_quotes, double_quotes
# SupportedStyles: single_quotes, double_quotes
@@ -321,18 +340,18 @@ Style/TernaryParentheses:
@@ -321,18 +340,18 @@ Style/TernaryParentheses:
# Offense count: 43
# Offense count: 43
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
# SupportedStyles: comma, consistent_comma, no_comma
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments:
Style/TrailingCommaInArguments:
Enabled: false
Enabled: false
# Offense count: 7
# Offense count: 13
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: AllowNamedUnderscoreVariables.
# Configuration parameters: AllowNamedUnderscoreVariables.
Style/TrailingUnderscoreVariable:
Style/TrailingUnderscoreVariable:
Enabled: false
Enabled: false
# Offense count: 69
# Offense count: 70
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/TrailingWhitespace:
Style/TrailingWhitespace:
Enabled: false
Enabled: false
@@ -344,12 +363,12 @@ Style/TrailingWhitespace:
@@ -344,12 +363,12 @@ Style/TrailingWhitespace:
Style/TrivialAccessors:
Style/TrivialAccessors:
Enabled: false
Enabled: false
# Offense count: 2
# Offense count: 6
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/UnlessElse:
Style/UnlessElse:
Enabled: false
Enabled: false
# Offense count: 19
# Offense count: 22
# Cop supports --auto-correct.
# Cop supports --auto-correct.
Style/UnneededInterpolation:
Style/UnneededInterpolation:
Enabled: false
Enabled: false
Loading