Project

General

Profile

« Previous | Next » 

Revision 66d9e79a

Added by Michael Moll about 5 years ago

Fixes #26546 - Update Rubocop to 0.64.0

View differences:

.hound.yml
rubocop:
config_file: .rubocop.yml
version: 0.59.2
version: 0.64.0
jshint:
enabled: false
.rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 0`
# on 2018-12-19 17:29:24 +0100 using RuboCop version 0.59.2.
# on 2019-04-05 18:35:33 +0200 using RuboCop version 0.64.0.
# 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: 172
# Offense count: 167
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
......
Layout/ClosingHeredocIndentation:
Enabled: false
# Offense count: 589
# Offense count: 601
# Cop supports --auto-correct.
Layout/EmptyLineAfterGuardClause:
Enabled: false
......
Layout/IndentHeredoc:
Enabled: false
# Offense count: 177
# Offense count: 188
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineHashBraceLayout:
Enabled: false
# Offense count: 73
# Offense count: 84
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineMethodCallBraceLayout:
Enabled: false
# Offense count: 97
# Offense count: 104
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
Enabled: false
# Offense count: 83
# Offense count: 82
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
Enabled: false
# Offense count: 439
# Offense count: 452
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
......
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: false
# Offense count: 540
# Offense count: 596
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
......
Layout/SpaceInsideBlockBraces:
Enabled: false
# Offense count: 3470
# Offense count: 3597
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
......
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
# Offense count: 47
# Offense count: 52
Lint/AmbiguousBlockAssociation:
Enabled: false
# Offense count: 116
# Offense count: 122
Lint/AmbiguousRegexpLiteral:
Enabled: false
......
Lint/HandleExceptions:
Enabled: false
# Offense count: 8
# Offense count: 9
Lint/NonLocalExitFromIterator:
Enabled: false
......
Lint/ParenthesesAsGroupedExpression:
Enabled: false
# Offense count: 2
# Offense count: 3
Lint/ShadowingOuterLocalVariable:
Enabled: false
# Offense count: 108
# Offense count: 110
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Enabled: false
# Offense count: 112
# Offense count: 121
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument:
......
Lint/UriEscapeUnescape:
Enabled: false
# Offense count: 3
# Offense count: 4
# Configuration parameters: CheckForMethodsWithNoSideEffects.
Lint/Void:
Enabled: false
# Offense count: 46
# Offense count: 47
Naming/AccessorMethodName:
Enabled: false
......
Naming/BinaryOperatorParameterName:
Enabled: false
# Offense count: 17
# Offense count: 19
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
Enabled: false
# Offense count: 13
# Offense count: 14
# Configuration parameters: Blacklist.
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Enabled: false
# Offense count: 26
# Offense count: 27
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Enabled: false
# Offense count: 47
# Offense count: 48
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
Enabled: false
# Offense count: 33
# Offense count: 35
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
......
Naming/PredicateName:
Enabled: false
# Offense count: 140
# Offense count: 144
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Naming/UncommunicativeMethodParamName:
......
Naming/VariableNumber:
Enabled: false
# Offense count: 187
# Offense count: 198
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: **/test/**/*
......
Rails/CreateTableWithTimestamps:
Enabled: false
# Offense count: 6
# Offense count: 9
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/Date:
Enabled: false
# Offense count: 509
# Offense count: 523
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: find_by_sql
Rails/DynamicFindBy:
Enabled: false
# Offense count: 26
# Offense count: 32
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Enabled: false
# Offense count: 14
# Offense count: 12
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasAndBelongsToMany:
......
Rails/HasManyOrHasOneDependent:
Enabled: false
# Offense count: 51
# Offense count: 53
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
......
Rails/Output:
Enabled: false
# Offense count: 98
# Offense count: 85
Rails/OutputSafety:
Enabled: false
# Offense count: 3
Rails/ReflectionClassName:
Enabled: false
# Offense count: 4
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/ReversibleMigration:
Enabled: false
# Offense count: 361
# Configuration parameters: Blacklist.
# Offense count: 389
# Configuration parameters: Blacklist, Whitelist.
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
Rails/SkipsModelValidations:
Enabled: false
# Offense count: 9
# Offense count: 19
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
Enabled: false
# Offense count: 7
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Security/JSONLoad:
Enabled: false
# Offense count: 20
# Offense count: 21
# Cop supports --auto-correct.
Security/YAMLLoad:
Enabled: false
......
Style/AccessModifierDeclarations:
Enabled: false
# Offense count: 543
# Offense count: 566
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: braces, no_braces, context_dependent
Style/BracesAroundHashParameters:
Enabled: false
# Offense count: 243
# Offense count: 291
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
......
Style/ClassVars:
Enabled: false
# Offense count: 6
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
Style/CommentAnnotation:
Enabled: false
# Offense count: 33
# Offense count: 45
Style/DoubleNegation:
Enabled: false
......
Style/FormatString:
Enabled: false
# Offense count: 394
# Offense count: 397
# Configuration parameters: EnforcedStyle.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
......
Style/GlobalVars:
Enabled: false
# Offense count: 183
# Offense count: 189
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
......
Style/IfInsideElse:
Enabled: false
# Offense count: 59
# Offense count: 62
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
Style/MethodCallWithoutArgsParentheses:
......
Style/MixinUsage:
Enabled: false
# Offense count: 120
# Offense count: 140
# Cop supports --auto-correct.
Style/MutableConstant:
Enabled: false
......
Style/NumericLiteralPrefix:
Enabled: false
# Offense count: 49
# Offense count: 50
# Cop supports --auto-correct.
# Configuration parameters: Strict.
Style/NumericLiterals:
MinDigits: 15
# Offense count: 55
# Offense count: 61
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Enabled: false
# Offense count: 192
# Offense count: 196
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false
# Offense count: 110
# Offense count: 112
# Cop supports --auto-correct.
Style/Proc:
Enabled: false
# Offense count: 57
# Offense count: 60
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Enabled: false
# Offense count: 717
# Offense count: 730
# Cop supports --auto-correct.
Style/RedundantSelf:
Enabled: false
# Offense count: 61
# Offense count: 64
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
......
Style/RescueModifier:
Enabled: false
# Offense count: 175
# Offense count: 176
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
......
Style/SignalException:
Enabled: false
# Offense count: 1
# Offense count: 2
Style/StructInheritance:
Enabled: false
# Offense count: 862
# Offense count: 871
# Cop supports --auto-correct.
# Configuration parameters: MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
EnforcedStyle: brackets
# Offense count: 88
# Offense count: 95
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
# IgnoredMethods: respond_to, define_method
bundler.d/development.rb
group :development do
gem 'maruku', '~> 0.7'
gem 'rubocop', '~> 0.59.2'
gem 'rubocop', '~> 0.64.0'
# for generating i18n files
gem 'gettext', '>= 3.2.1', '< 4.0.0', :require => false
test/factories/bookmark.rb
factory :bookmark do
sequence(:name) { |n| "bookmark_#{n}" }
query { "bar" }
# rubocop:disable Layout/EmptyLinesAroundAccessModifier
public { false }
# rubocop:enable Layout/EmptyLinesAroundAccessModifier
end
end

Also available in: Unified diff