Project

General

Profile

« Previous | Next » 

Revision ccc72b3b

Added by Brandon Weeks over 8 years ago

Fixes #13637 - Upgrade rubocop to 0.37.1

View differences:

.rubocop.yml
Style/SymbolProc:
Enabled: false
# Workaround for bbatsov/rubocop#2451 (found in v0.35.1)
Style/StabbyLambdaParentheses:
Enabled: false
# Some logging methods need more params than usual
Metrics/ParameterLists:
Max: 8
.rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 0`
# on 2015-11-23 21:03:49 -0800 using RuboCop version 0.35.1.
# on 2016-02-09 16:07:08 -0800 using RuboCop version 0.37.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
......
Lint/AmbiguousOperator:
Enabled: false
# Offense count: 142
# Offense count: 152
Metrics/AbcSize:
Max: 107
# Offense count: 13
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 410
Max: 409
# Offense count: 29
# Offense count: 30
Metrics/CyclomaticComplexity:
Max: 25
# Offense count: 941
# Configuration parameters: AllowURI, URISchemes.
# Offense count: 1020
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 206
Max: 203
# Offense count: 107
# Offense count: 108
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 59
......
Metrics/ModuleLength:
Max: 160
# Offense count: 25
# Offense count: 26
Metrics/PerceivedComplexity:
Max: 22
# Offense count: 2
# Cop supports --auto-correct.
Performance/Casecmp:
Enabled: false
# Offense count: 3
# Cop supports --auto-correct.
Performance/RedundantMatch:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: MaxKeyValuePairs.
Performance/RedundantMerge:
Enabled: false
# Offense count: 9
# Cop supports --auto-correct.
Performance/StringReplacement:
Enabled: false
# Offense count: 4
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
Style/AlignHash:
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/AlignParameters:
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Style/AlignHash:
Enabled: false
# Offense count: 92
# Offense count: 104
# Cop supports --auto-correct.
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
Style/CaseIndentation:
Enabled: false
# Offense count: 102
# Offense count: 122
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Enabled: false
# Offense count: 8
# Offense count: 9
Style/ClassVars:
Enabled: false
......
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerBackticks.
# SupportedStyles: backticks, percent_x, mixed
Style/CommandLiteral:
Enabled: false
# Offense count: 4
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
Style/CommentAnnotation:
Enabled: false
......
Style/CommentIndentation:
Enabled: false
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: SingleLineConditionsOnly.
Style/ConditionalAssignment:
Enabled: false
# Offense count: 1
Style/ConstantName:
Enabled: false
# Offense count: 4
# Offense count: 6
# Cop supports --auto-correct.
Style/DeprecatedHashMethods:
Enabled: false
# Offense count: 130
# Configuration parameters: Exclude.
# Offense count: 148
Style/Documentation:
Enabled: false
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing
Style/DotPosition:
Enabled: false
......
Style/DoubleNegation:
Enabled: false
# Offense count: 3
# Offense count: 5
Style/EachWithObject:
Enabled: false
# Offense count: 11
# Offense count: 14
# Cop supports --auto-correct.
# Configuration parameters: AllowAdjacentOneLineDefs.
Style/EmptyLineBetweenDefs:
......
Style/EmptyLinesAroundAccessModifier:
Enabled: false
# Offense count: 28
# Offense count: 25
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, no_empty_lines
Style/EmptyLinesAroundClassBody:
Enabled: false
......
Style/EmptyLinesAroundMethodBody:
Enabled: false
# Offense count: 5
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, no_empty_lines
Style/EmptyLinesAroundModuleBody:
Enabled: false
# Offense count: 3
# Offense count: 4
# Cop supports --auto-correct.
Style/EmptyLiteral:
Enabled: false
# Offense count: 29
# Offense count: 35
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Style/ExtraSpacing:
Enabled: false
# Offense count: 6
# Configuration parameters: Exclude.
# Offense count: 4
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
Style/FileName:
Enabled: false
# Offense count: 19
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
Style/FirstParameterIndentation:
Enabled: false
# Offense count: 3
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: for, each
Style/For:
Enabled: false
# Offense count: 4
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Enabled: false
# Offense count: 7
# Offense count: 13
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# Offense count: 706
# Offense count: 726
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles, UseHashRocketsWithSymbolValues.
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
Style/HashSyntax:
EnforcedStyle: hash_rockets
# Offense count: 1
Style/IfInsideElse:
Enabled: false
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
Enabled: false
# Offense count: 28
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: IndentationWidth.
Style/IndentAssignment:
Enabled: false
# Offense count: 24
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Style/IndentHash:
Enabled: false
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: normal, rails
Style/IndentationConsistency:
Enabled: false
# Offense count: 11
# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: Width.
Style/IndentationWidth:
Enabled: false
# Offense count: 17
# Offense count: 15
# Cop supports --auto-correct.
Style/LeadingCommentSpace:
Enabled: false
......
Style/MethodCallParentheses:
Enabled: false
# Offense count: 111
# Offense count: 104
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
Style/MethodDefParentheses:
Enabled: false
# Offense count: 27
# Offense count: 9
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: snake_case, camelCase
Style/MethodName:
Enabled: false
......
Style/MultilineIfThen:
Enabled: false
# Offense count: 15
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: aligned, indented
Style/MultilineMethodCallIndentation:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: aligned, indented
Style/MultilineOperationIndentation:
Enabled: false
# Offense count: 4
# Offense count: 9
# Cop supports --auto-correct.
Style/MutableConstant:
Enabled: false
# Offense count: 5
# Cop supports --auto-correct.
Style/NegatedIf:
Enabled: false
......
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
# SupportedStyles: skip_modifier_ifs, always
Style/Next:
Enabled: false
......
Style/Not:
Enabled: false
# Offense count: 14
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
......
# Offense count: 1
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Style/PredicateName:
Enabled: false
# Offense count: 47
# Offense count: 46
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Enabled: false
# Offense count: 12
# Offense count: 4
# Cop supports --auto-correct.
Style/RedundantParentheses:
Enabled: false
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Enabled: false
# Offense count: 7
# Offense count: 9
# Cop supports --auto-correct.
Style/RedundantSelf:
Enabled: false
......
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
Enabled: false
......
Style/RescueEnsureAlignment:
Enabled: false
# Offense count: 15
# Offense count: 16
# Cop supports --auto-correct.
Style/RescueModifier:
Enabled: false
......
Style/SelfAssignment:
Enabled: false
# Offense count: 13
# Offense count: 20
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Enabled: false
# Offense count: 125
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException:
Enabled: false
# Offense count: 4
# Offense count: 6
# Configuration parameters: Methods.
# Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]}
Style/SingleLineBlockParams:
Enabled: false
......
Style/SingleLineMethods:
Enabled: false
# Offense count: 111
# Offense count: 116
# Cop supports --auto-correct.
Style/SpaceAfterComma:
Enabled: false
......
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleInsidePipes, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceAroundBlockParameters:
Enabled: false
# Offense count: 38
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceAroundEqualsInParameterDefault:
Enabled: false
# Offense count: 121
# Offense count: 1
# Cop supports --auto-correct.
Style/SpaceAroundKeyword:
Enabled: false
# Offense count: 134
# Cop supports --auto-correct.
# Configuration parameters: MultiSpaceAllowedForOperators.
# Configuration parameters: AllowForAlignment.
Style/SpaceAroundOperators:
Enabled: false
# Offense count: 22
# Offense count: 21
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceBeforeBlockBraces:
Enabled: false
# Offense count: 86
# Offense count: 90
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
Style/SpaceInsideBlockBraces:
Enabled: false
......
Style/SpaceInsideBrackets:
Enabled: false
# Offense count: 141
# Offense count: 145
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceInsideHashLiteralBraces:
Enabled: false
......
# Offense count: 14
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
Enabled: false
# Offense count: 1815
# Offense count: 1878
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation:
Enabled: false
# Offense count: 18
# Offense count: 20
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: final_newline, final_blank_line
Style/TrailingBlankLines:
Enabled: false
# Offense count: 7
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Style/TrailingComma:
# SupportedStyles: comma, consistent_comma, no_comma
Style/TrailingCommaInLiteral:
Enabled: false
# Offense count: 3
......
# Offense count: 1
# 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
Style/TrivialAccessors:
Enabled: false
......
Style/UnlessElse:
Enabled: false
# Offense count: 3
# Offense count: 11
# Cop supports --auto-correct.
Style/UnneededPercentQ:
Style/UnneededInterpolation:
Enabled: false
# Offense count: 2
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/VariableName:
# Offense count: 9
# Cop supports --auto-correct.
Style/UnneededPercentQ:
Enabled: false
# Offense count: 27
# Offense count: 28
# Cop supports --auto-correct.
# Configuration parameters: WordRegex.
# Configuration parameters: EnforcedStyle, SupportedStyles, MinSize, WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
MinSize: 4
Enabled: false
# Offense count: 12
Style/ZeroLengthPredicate:
Enabled: false
bundler.d/development.rb
gem 'rdoc'
gem 'single_test'
gem 'pry'
gem 'rubocop', '0.35.1' if RUBY_VERSION > "1.9.2"
gem 'rubocop', '0.37.1' if RUBY_VERSION > "1.9.2"
end

Also available in: Unified diff