Enable Rubocop cops that are easy to fix
This is an extension of https://gitlab.com/gitlab-org/gitlab-ce/issues/17406
We can make some efforts to enable Rubocop cops, that are easy to fix.
Below, you can find list of cops, that are easy to fix, sorted using number of offenses detected.
1 offense
Style/EachWithObject:
Description: Prefer `each_with_object` over `inject` or `reduce`.
Enabled: false
------------------
1 offense
Style/RedundantException:
Description: Checks for an obsolete RuntimeException argument in raise/fail.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror
Enabled: false
------------------
2 offenses
Lint/Loop:
Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
for post-loop tests.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
------------------
2 offenses
Style/SelfAssignment:
Description: Checks for places where self-assignment shorthand should have been used.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
Enabled: false
------------------
2 offenses
Style/SingleLineBlockParams:
Description: Enforces the names of some block params.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
Enabled: false
------------------
2 offenses
Style/TrivialAccessors:
Description: Prefer attr_* methods to trivial readers/writers.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
Enabled: false
------------------
3 offenses
Lint/StringConversionInInterpolation:
Description: Checks for Object#to_s usage in string interpolation.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
Enabled: false
------------------
3 offenses
Style/CaseEquality:
Description: Avoid explicit use of the case equality operator(===).
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
Enabled: false
------------------
3 offenses
Style/CommentAnnotation:
Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
Enabled: false
------------------
3 offenses
Style/EmptyLiteral:
Description: Prefer literals to Array.new/Hash.new/String.new.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
Enabled: false
------------------
3 offenses
Style/RedundantBegin:
Description: Don't use begin blocks when they are not needed.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#begin-implicit
Enabled: false
------------------
4 offenses
Performance/RedundantBlockCall:
Description: Use `yield` instead of `block.call`.
Reference: https://github.com/JuanitoFatas/fast-ruby#proccall-vs-yield-code
Enabled: false
------------------
4 offenses
Style/UnlessElse:
Description: Do not use unless with else. Rewrite these with the positive case first.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
Enabled: false
------------------
5 offenses
Performance/RedundantMatch:
Description: Use `=~` instead of `String#match` or `Regexp#match` in a context where
the returned `MatchData` is not needed.
Enabled: false
------------------
Pending https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4991
Style/SpaceAfterColon:
Description: Use spaces after colons.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
Enabled: false
------------------
6 offenses
Rails/ReadWriteAttribute:
Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
Enabled: false
Include:
------------------
6 offenses
Style/AutoResourceCleanup:
Description: Suggests the usage of an auto resource cleanup version of a method (if
available).
Enabled: false
------------------
6 offenses
Style/LineEndConcatenation:
Description: Use \ instead of + or << to concatenate two string literals at line end.
Enabled: false
------------------
6 offenses
Style/Proc:
Description: Use proc instead of Proc.new.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
Enabled: false
------------------
6 offenses
Style/SpaceAroundKeyword:
Description: Use a space around keywords if appropriate.
Enabled: false
------------------
6 offenses
Style/TrailingUnderscoreVariable:
Description: Checks for the usage of unneeded trailing underscores at the end of parallel
variable assignment.
AllowNamedUnderscoreVariables: true
------------------
6 offenses
Style/UnneededCapitalW:
Description: Checks for %W when interpolation is not needed.
Enabled: false
------------------
7 offenses
Style/FormatString:
Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
Enabled: false
------------------
8 offenses
Style/ClassAndModuleChildren:
Description: Checks style of children classes and modules.
Enabled: false
EnforcedStyle: nested
------------------
9 offenses
Style/EmptyLinesAroundModuleBody:
Description: Keeps track of empty lines around module bodies.
Enabled: false
EnforcedStyle: no_empty_lines
------------------
9 offenses
Style/IdenticalConditionalBranches:
Description: Checks that conditional statements do not have an identical line at the
end of each branch, which can validly be moved out of the conditional.
Enabled: false
------------------
9 offenses
Style/NestedParenthesizedCalls:
Description: Parenthesize method calls which are nested inside the argument list of
another parenthesized method call.
Enabled: false
------------------
9 offenses
Style/ZeroLengthPredicate:
Description: 'Use #empty? when testing for objects of length 0.'
Enabled: false
------------------
10 offenses
Style/EmptyLinesAroundMethodBody:
Description: Keeps track of empty lines around method bodies.
Enabled: false
------------------
10 offenses
Style/PercentQLiterals:
Description: Checks if uses of %Q/%q match the configured preference.
Enabled: false
EnforcedStyle: lower_case_q
------------------
11 offenses
Lint/ShadowingOuterLocalVariable:
Description: Do not use the same name as outer local variable for block arguments
or block local variables.
Enabled: false
------------------
11 offenses
Lint/UselessAccessModifier:
Description: Checks for useless access modifiers.
Enabled: false
------------------
11 offenses
Style/ClassCheck:
Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
Enabled: false
EnforcedStyle: is_a?
------------------
11 offenses
Style/SpaceAroundEqualsInParameterDefault:
Description: Checks that the equals signs in parameter default assignments have or
don't have surrounding space depending on configuration.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
------------------
11 offenses
Style/SpaceBeforeFirstArg:
Description: Checks that exactly one space is used between a method name and the first
argument for method calls without parentheses.
Enabled: false
------------------
12 offenses
Rails/Validation:
Description: Use validates :attribute, hash of validations.
Enabled: false
------------------
12 offenses
Style/DoubleNegation:
Description: Checks for uses of double negation (!!).
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
Enabled: false
------------------
12 offenses
Style/IfInsideElse:
Description: Finds if nodes inside else, which can be converted to elsif.
Enabled: false
------------------
12 offenses
Style/UnneededInterpolation:
Description: Checks for strings that are just an interpolated expression.
Enabled: false
------------------
13 offenses
Lint/HandleExceptions:
Description: Don't suppress exception.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
Enabled: false
------------------
13 offenses
Style/MethodCallParentheses:
Description: Do not use parentheses for method calls with no arguments.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
Enabled: false
------------------
14 offenses
Style/Next:
Description: Use `next` to skip iteration instead of a condition at the end.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
Enabled: false
------------------
14 offenses
Style/PerlBackrefs:
Description: Avoid Perl-style regex back references.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
Enabled: false
------------------
15 offenses
Style/ColonMethodCall:
Description: 'Do not use :: for method call.'
StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
Enabled: false
------------------
15 offenses
Style/RaiseArgs:
Description: Checks the arguments passed to raise/fail.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
Enabled: false
------------------
16 offenses
Style/CollectionMethods:
Description: Preferred collection methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
Enabled: false
------------------
19 offenses
Style/AccessorMethodName:
Description: Check the naming of accessor methods for get_/set_.
Enabled: false
------------------
19 offenses
Style/MultilineArrayBraceLayout:
Description: Checks that the closing brace in an array literal is symmetrical with
respect to the opening brace and the array elements.
Enabled: false
------------------
20 offenses
Lint/IneffectiveAccessModifier:
Description: Checks for attempts to use `private` or `protected` to set the visibility
of a class method, which does not work.
Enabled: false
------------------
20 offenses
Metrics/ModuleLength:
Description: Avoid modules longer than 100 lines of code.
Enabled: false
CountComments: false
------------------
20 offenses
Rails/Delegate:
Description: Prefer delegate method for delegations.
Enabled: false
------------------
20 offenses
Style/RedundantFreeze:
Description: Checks usages of Object#freeze on immutable objects.
Enabled: false
------------------
22 offenses
Style/TrailingCommaInArguments:
Description: Checks for trailing comma in argument lists.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
Enabled: false
------------------
24 offenses
Style/RescueModifier:
Description: Avoid using rescue in its modifier form.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers
Enabled: false
------------------
24 offenses
Style/SymbolProc:
Description: Use symbols as procs instead of blocks when possible.
Enabled: false
IgnoredMethods:
------------------
25 offenses
Performance/RedundantMerge:
Description: Use Hash#[]=, rather than Hash#merge! with a single key-value pair.
Reference: https://github.com/JuanitoFatas/fast-ruby#hashmerge-vs-hash-code
Enabled: false
------------------
25 offenses
Style/ParallelAssignment:
Description: Check for simple usages of parallel assignment. It will only warn when
the number of variables matches on both sides of the assignment.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#parallel-assignment
------------------
25 offenses
Style/SpecialGlobalVars:
Description: Avoid Perl-style global variables.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
Enabled: false
------------------
26 offenses
Style/DeprecatedHashMethods:
Description: Checks for use of deprecated Hash methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
Enabled: false
------------------
28 offenses
Style/EmptyElse:
Description: Avoid empty else-clauses.
Enabled: false
EnforcedStyle: both
------------------
29 offenses
Style/EmptyLinesAroundClassBody:
Description: Keeps track of empty lines around class bodies.
Enabled: false
EnforcedStyle: no_empty_lines
------------------
30 offenses
Style/PredicateName:
Description: Check the names of predicate methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
Enabled: false
------------------
32 offenses
Rails/Date:
Description: Checks the correct usage of date aware methods, such as Date.today, Date.current
etc.
Enabled: false
------------------
32 offenses
Style/ConditionalAssignment:
Description: Use the return value of `if` and `case` statements for assignment to
a variable and variable comparison instead of assigning that variable inside of
each branch.
------------------
32 offenses
Style/StringLiteralsInInterpolation:
Description: Checks if uses of quotes inside expressions in interpolated strings match
the configured preference.
Enabled: false
------------------
34 offenses
Style/MultilineHashBraceLayout:
Description: Checks that the closing brace in a hash literal is symmetrical with respect
to the opening brace and the hash elements.
Enabled: false
------------------
36 offenses
Style/AndOr:
Description: Use &&/|| instead of and/or.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
Enabled: false
------------------
39 offenses
Lint/AssignmentInCondition:
Description: Don't use assignment in conditions.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
Enabled: false
------------------
39 offenses
Style/MultilineOperationIndentation:
Description: Checks indentation of binary operations that span more than one line.
Enabled: false
EnforcedStyle: aligned
------------------
39 offenses
Style/NumericLiterals:
Description: Add underscores to large numeric literals to improve their readability.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
Enabled: false
------------------
Pending https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4991
Style/SpaceAfterComma:
Description: Use spaces after commas.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
Enabled: false
------------------
42 offenses
Lint/UnusedBlockArgument:
Description: Checks for unused block arguments.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
Enabled: false
------------------
42 offenses
Style/BarePercentLiterals:
Description: Checks if usage of %() or %Q() matches configuration.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand
Enabled: false
------------------
44 offenses
Style/MutableConstant:
Description: Do not assign mutable objects to constants.
Enabled: false
------------------
46 offenses
Style/EmptyLineBetweenDefs:
Description: Use empty lines between defs.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
Enabled: false
------------------
47 offenses
Style/IndentArray:
Description: Checks the indentation of the first element in an array literal.
Enabled: false
EnforcedStyle: special_inside_parentheses
------------------
48 offenses
Style/FirstArrayElementLineBreak:
Description: Checks for a line break before the first element in a multi-line array.
Enabled: false
------------------
50 offenses
Style/GuardClause:
Description: Check for conditionals that can be replaced with guard clauses
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
Enabled: false
------------------
50 offenses
Style/SingleLineMethods:
Description: Avoid single-line methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
Enabled: false
------------------
54 offenses
Style/UnneededPercentQ:
Description: Checks for %q/%Q when single quotes or double quotes would do.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
Enabled: false
------------------
60 offenses
Style/SpaceInsideParens:
Description: No spaces after ( or before ).
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
Enabled: false
------------------
62 offenses
Style/EmptyLines:
Description: Don't use several empty lines in a row.
Enabled: false
------------------
62 offenses
Style/OptionHash:
Description: Don't use option hashes when you can use keyword arguments.
Enabled: false
SuspiciousParamNames:
------------------
62 offenses
Style/WordArray:
Description: Use %w or %W for arrays of words.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
Enabled: false
------------------
73 offenses
Rails/TimeZone:
Description: Checks the correct usage of time zone aware methods.
StyleGuide: https://github.com/bbatsov/rails-style-guide#time
Reference: http://danilenko.org/2012/7/6/rails_timezones
------------------
76 offenses
Metrics/ClassLength:
Description: Avoid classes longer than 100 lines of code.
Enabled: false
CountComments: false
------------------
77 offenses
Style/FirstHashElementLineBreak:
Description: Checks for a line break before the first element in a multi-line hash.
Enabled: false
------------------
80 offenses
Style/MultilineMethodCallBraceLayout:
Description: Checks that the closing brace in a method call is symmetrical with respect
to the opening brace and the method arguments.
Enabled: false
------------------
81 offenses
Style/IndentHash:
Description: Checks the indentation of the first key in a hash literal.
Enabled: false
EnforcedStyle: special_inside_parentheses
------------------
88 offenses
Style/SpaceAroundOperators:
Description: Use a single space around operators.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
Enabled: false
------------------
88 offenses
Style/SpaceInsideBrackets:
Description: No spaces after [ or before ].
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
Enabled: false
------------------
90 offenses
Style/RegexpLiteral:
Description: Use / or %r around regular expressions.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
Enabled: false
------------------
92 offenses
Style/TrailingWhitespace:
Description: Avoid trailing whitespace.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
Enabled: false
------------------
98 offenses
Style/EmptyLinesAroundBlockBody:
Description: Keeps track of empty lines around block bodies.
Enabled: false
EnforcedStyle: no_empty_lines
------------------
105 offenses
Style/MethodCalledOnDoEndBlock:
Description: Avoid chaining a method call on a do...end block.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
Enabled: false
------------------
105 offenses
Style/SpaceBeforeBlockBraces:
Description: Checks that the left block brace has or doesn't have space before it.
Enabled: false
EnforcedStyle: space
------------------
109 offenses
Style/TrailingCommaInLiteral:
Description: Checks for trailing comma in array and hash literals.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
Enabled: false
------------------
115 offenses
Style/SpaceInsideBlockBraces:
Description: Checks that block braces have or don't have surrounding space. For blocks
taking parameters, checks that the left brace has or doesn't have trailing space.
Enabled: false
------------------
117 offenses
Lint/AmbiguousRegexpLiteral:
Description: Checks for ambiguous regexp literals in the first argument of a method
invocation without parentheses.
Enabled: false
------------------
119 offenses
Lint/UnusedMethodArgument:
Description: Checks for unused method arguments.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
Enabled: false
------------------
128 offenses
Style/MultilineMethodCallIndentation:
Description: Checks indentation of method calls with the dot operator that span more
than one line.
Enabled: false
------------------
128 offenses
Style/Send:
Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
may overlap with existing methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
------------------
140 offenses
Style/ExtraSpacing:
Description: Do not use unnecessary spacing.
Enabled: false
AllowForAlignment: true
------------------
144 offenses
Style/MultilineAssignmentLayout:
Description: Check for a newline after the assignment operator in multi-line assignments.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-conditional-assignment
Enabled: false
------------------
176 offenses
Style/PercentLiteralDelimiters:
Description: Use `%`-literal delimiters consistently
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
Enabled: false
------------------
180 offenses
Style/IfUnlessModifier:
Description: Favor modifier if/unless usage when you have a single-line body.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
Enabled: false
------------------
183 offenses
Style/AlignParameters:
Description: Align the parameters of a method call if they span more than one line.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
Enabled: false
------------------
224 offenses
Style/BracesAroundHashParameters:
Description: Enforce braces style around hash parameters.
Enabled: false
EnforcedStyle: no_braces
------------------
280 offenses
Style/SymbolArray:
Description: Use %i or %I for arrays of symbols.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
Enabled: false
------------------
305 offenses
Style/RedundantSelf:
Description: Don't use self where it's not needed.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-self-unless-required
Enabled: false
------------------
335 offenses
Style/FirstMethodArgumentLineBreak:
Description: Checks for a line break before the first argument in a multi-line method
call.
Enabled: false
------------------
503 offenses
Metrics/MethodLength:
Description: Avoid methods longer than 10 lines of code.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
Enabled: false
------------------
588 offenses
Style/DotPosition:
Description: Checks the position of the dot in multi-line method calls.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
Enabled: false
------------------
788 offenses
Style/Documentation:
Description: Document classes and non-namespace modules.
Enabled: false
Exclude:
------------------
887 offenses
Style/MissingElse:
Description: Require if/case expressions to have an else branches. If enabled, it
is recommended that Style/UnlessElse and Style/EmptyElse be enabled. This will conflict
with Style/EmptyElse if Style/EmptyElse is configured to style "both"
------------------
1496 offenses
Style/Encoding:
Description: Use UTF-8 as the source file encoding.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
Enabled: false
------------------
1508 offenses
Style/Copyright:
Description: Include a copyright notice in each file before any code.
Enabled: false
Notice: "^Copyright (\\(c\\) )?2[0-9]{3} .+"
------------------
5301 offenses
Metrics/LineLength:
Description: Limit lines to 80 characters.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
Enabled: false
------------------
6618 offenses
Style/StringLiterals:
Description: Checks if uses of quotes match the configured preference.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
Enabled: false
Cops that we probably do not want to enable:
------------------
9 offenses
Style/ModuleFunction:
Description: Checks for usage of `extend self` in modules.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
Enabled: false
------------------
9900 offenses
Style/InlineComment:
Description: Avoid inline comments.
Enabled: false
Lists above are being updated each time we enabled cops. Below you can find complete list with all cops that were detected when this issue was created.
1 Lint/BlockAlignment
1 Performance/RangeInclude
1 Performance/StringReplacement
1 Style/DefWithParentheses
1 Style/EachWithObject
1 Style/EndOfLine
1 Style/NegatedWhile
1 Style/RedundantException
1 Style/SpaceAfterMethodName
1 Style/SpaceAfterSemicolon
2 Lint/Loop
2 Performance/StartWith
2 Performance/TimesMap
2 Style/IndentAssignment
2 Style/MultilineBlockChain
2 Style/SelfAssignment
2 Style/SingleLineBlockParams
2 Style/SpaceBeforeComment
2 Style/TrivialAccessors
2 Style/WhileUntilDo
3 Lint/StringConversionInInterpolation
3 Performance/EndWith
3 Style/CaseEquality
3 Style/CommentAnnotation
3 Style/EmptyLiteral
3 Style/For
3 Style/MultilineTernaryOperator
3 Style/RedundantBegin
3 Style/Semicolon
3 Style/SpaceBeforeComma
4 Lint/LiteralInCondition
4 Performance/Casecmp
4 Performance/RedundantBlockCall
4 Style/EmptyLinesAroundAccessModifier
4 Style/MethodDefParentheses
4 Style/UnlessElse
5 Performance/RedundantMatch
5 Style/MultilineIfThen
5 Style/NegatedIf
5 Style/RedundantParentheses
5 Style/SpaceAfterColon
6 Rails/ReadWriteAttribute
6 Style/AutoResourceCleanup
6 Style/LineEndConcatenation
6 Style/Proc
6 Style/SpaceAroundKeyword
6 Style/TrailingUnderscoreVariable
6 Style/UnneededCapitalW
7 Lint/AmbiguousOperator
7 Style/FormatString
8 Style/ClassAndModuleChildren
9 Style/EmptyLinesAroundModuleBody
9 Style/IdenticalConditionalBranches
9 Style/ModuleFunction
9 Style/NestedParenthesizedCalls
9 Style/ZeroLengthPredicate
10 Style/EmptyLinesAroundMethodBody
10 Style/PercentQLiterals
11 Lint/ShadowingOuterLocalVariable
11 Lint/UselessAccessModifier
11 Style/ClassCheck
11 Style/SpaceAroundEqualsInParameterDefault
11 Style/SpaceBeforeFirstArg
12 Rails/Validation
12 Style/DoubleNegation
12 Style/IfInsideElse
12 Style/UnneededInterpolation
13 Lint/DeprecatedClassMethods
13 Lint/HandleExceptions
13 Style/MethodCallParentheses
14 Style/Next
14 Style/PerlBackrefs
15 Style/ColonMethodCall
15 Style/RaiseArgs
16 Style/CollectionMethods
19 Style/AccessorMethodName
19 Style/MultilineArrayBraceLayout
20 Lint/IneffectiveAccessModifier
20 Metrics/ModuleLength
20 Rails/Delegate
20 Style/RedundantFreeze
22 Style/TrailingCommaInArguments
24 Style/RescueModifier
24 Style/SymbolProc
25 Performance/RedundantMerge
25 Style/ParallelAssignment
25 Style/SpecialGlobalVars
26 Style/DeprecatedHashMethods
28 Style/EmptyElse
29 Style/EmptyLinesAroundClassBody
30 Style/PredicateName
32 Rails/Date
32 Style/ConditionalAssignment
32 Style/StringLiteralsInInterpolation
34 Style/MultilineHashBraceLayout
36 Style/AndOr
36 Style/LeadingCommentSpace
39 Lint/AssignmentInCondition
39 Style/MultilineOperationIndentation
39 Style/NumericLiterals
41 Style/SpaceAfterComma
42 Lint/UnusedBlockArgument
42 Style/BarePercentLiterals
44 Style/MutableConstant
46 Style/EmptyLineBetweenDefs
47 Style/IndentArray
48 Style/FirstArrayElementLineBreak
50 Style/GuardClause
50 Style/SingleLineMethods
54 Style/UnneededPercentQ
60 Style/SpaceInsideParens
62 Style/EmptyLines
62 Style/OptionHash
62 Style/WordArray
73 Rails/TimeZone
76 Metrics/ClassLength
77 Style/FirstHashElementLineBreak
80 Style/MultilineMethodCallBraceLayout
81 Style/IndentHash
88 Style/SpaceAroundOperators
88 Style/SpaceInsideBrackets
90 Style/RegexpLiteral
92 Style/TrailingWhitespace
98 Style/EmptyLinesAroundBlockBody
105 Style/MethodCalledOnDoEndBlock
105 Style/SpaceBeforeBlockBraces
109 Style/TrailingCommaInLiteral
115 Style/SpaceInsideBlockBraces
117 Lint/AmbiguousRegexpLiteral
119 Lint/UnusedMethodArgument
128 Style/MultilineMethodCallIndentation
128 Style/Send
140 Style/ExtraSpacing
144 Style/MultilineAssignmentLayout
176 Style/PercentLiteralDelimiters
180 Style/IfUnlessModifier
183 Style/AlignParameters
224 Style/BracesAroundHashParameters
280 Style/SymbolArray
305 Style/RedundantSelf
335 Style/FirstMethodArgumentLineBreak
503 Metrics/MethodLength
588 Style/DotPosition
788 Style/Documentation
887 Style/MissingElse
1496 Style/Encoding
1508 Style/Copyright
5301 Metrics/LineLength
6618 Style/StringLiterals
9900 Style/InlineComment
Command used to extract that (combined with output of command described in issue mentioned at the beginning):
for cop in `rubocop --show-cops | egrep -o "^\w[^:]+" `; do if ! grep -q $cop ok_cops; then echo `rubocop --only $cop | grep $cop | wc -l` $cop >> bad_cops; fi; done
Enabling some of those cops, may be good subject for ~up-for-grabs issues.
Edited by Peter Leitzen