Revision 060a93cf
Added by David Davis over 9 years ago
.rubocop_todo.yml | ||
---|---|---|
# This configuration was generated by `rubocop --auto-gen-config`
|
||
# on 2014-10-09 06:30:26 -0400 using RuboCop version 0.26.1.
|
||
# on 2015-01-24 09:06:14 -0500 using RuboCop version 0.28.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: 47
|
||
# Offense count: 48
|
||
Lint/AmbiguousRegexpLiteral:
|
||
Enabled: false
|
||
|
||
# Offense count: 10
|
||
# Offense count: 11
|
||
# Configuration parameters: AllowSafeAssignment.
|
||
Lint/AssignmentInCondition:
|
||
Enabled: false
|
||
... | ... | |
Lint/HandleExceptions:
|
||
Enabled: false
|
||
|
||
# Offense count: 11
|
||
# Offense count: 10
|
||
Lint/ParenthesesAsGroupedExpression:
|
||
Enabled: false
|
||
|
||
# Offense count: 20
|
||
# Offense count: 23
|
||
# Cop supports --auto-correct.
|
||
Lint/StringConversionInInterpolation:
|
||
Enabled: false
|
||
|
||
# Offense count: 52
|
||
# Offense count: 54
|
||
# Cop supports --auto-correct.
|
||
Lint/UnusedBlockArgument:
|
||
Enabled: false
|
||
|
||
# Offense count: 84
|
||
# Offense count: 82
|
||
# Cop supports --auto-correct.
|
||
Lint/UnusedMethodArgument:
|
||
Enabled: false
|
||
|
||
# Offense count: 459
|
||
Metrics/AbcSize:
|
||
Max: 194
|
||
|
||
# Offense count: 13
|
||
Metrics/BlockNesting:
|
||
Max: 6
|
||
|
||
# Offense count: 89
|
||
# Offense count: 42
|
||
# Configuration parameters: CountComments.
|
||
Metrics/ClassLength:
|
||
Max: 1425
|
||
Max: 1483
|
||
|
||
# Offense count: 119
|
||
# Offense count: 122
|
||
Metrics/CyclomaticComplexity:
|
||
Max: 24
|
||
|
||
# Offense count: 5536
|
||
# Offense count: 6278
|
||
# Configuration parameters: AllowURI, URISchemes.
|
||
Metrics/LineLength:
|
||
Max: 385
|
||
|
||
# Offense count: 297
|
||
# Offense count: 312
|
||
# Configuration parameters: CountComments.
|
||
Metrics/MethodLength:
|
||
Max: 124
|
||
... | ... | |
Metrics/ParameterLists:
|
||
Max: 7
|
||
|
||
# Offense count: 83
|
||
# Offense count: 88
|
||
Metrics/PerceivedComplexity:
|
||
Max: 24
|
||
|
||
# Offense count: 209
|
||
# Offense count: 227
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles, Include.
|
||
Rails/ActionFilter:
|
||
Enabled: false
|
||
|
||
# Offense count: 26
|
||
# Offense count: 27
|
||
# Configuration parameters: Include.
|
||
Rails/DefaultScope:
|
||
Enabled: false
|
||
|
||
# Offense count: 18
|
||
# Offense count: 19
|
||
# Cop supports --auto-correct.
|
||
Rails/Delegate:
|
||
Enabled: false
|
||
... | ... | |
Rails/Output:
|
||
Enabled: false
|
||
|
||
# Offense count: 35
|
||
# Offense count: 37
|
||
# Configuration parameters: Include.
|
||
Rails/ReadWriteAttribute:
|
||
Enabled: false
|
||
... | ... | |
Style/AccessModifierIndentation:
|
||
Enabled: false
|
||
|
||
# Offense count: 25
|
||
# Offense count: 26
|
||
Style/AccessorMethodName:
|
||
Enabled: false
|
||
|
||
# Offense count: 20
|
||
# Offense count: 28
|
||
# Cop supports --auto-correct.
|
||
Style/AlignArray:
|
||
Enabled: false
|
||
|
||
# Offense count: 140
|
||
# Offense count: 317
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
|
||
Style/AlignHash:
|
||
Enabled: false
|
||
|
||
# Offense count: 37
|
||
# Offense count: 57
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/AlignParameters:
|
||
Enabled: false
|
||
|
||
# Offense count: 326
|
||
# Offense count: 316
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/AndOr:
|
||
... | ... | |
Style/BlockComments:
|
||
Enabled: false
|
||
|
||
# Offense count: 12
|
||
# Offense count: 22
|
||
# Cop supports --auto-correct.
|
||
Style/Blocks:
|
||
Enabled: false
|
||
|
||
# Offense count: 845
|
||
# Offense count: 870
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/BracesAroundHashParameters:
|
||
Enabled: false
|
||
|
||
# Offense count: 131
|
||
# Offense count: 136
|
||
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
|
||
Style/CaseIndentation:
|
||
Enabled: false
|
||
|
||
# Offense count: 140
|
||
# Offense count: 141
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/ClassAndModuleChildren:
|
||
Enabled: false
|
||
|
||
# Offense count: 34
|
||
# Offense count: 36
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/ClassCheck:
|
||
... | ... | |
Style/ClassVars:
|
||
Enabled: false
|
||
|
||
# Offense count: 34
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: PreferredMethods.
|
||
Style/CollectionMethods:
|
||
Enabled: false
|
||
|
||
# Offense count: 17
|
||
# Cop supports --auto-correct.
|
||
Style/ColonMethodCall:
|
||
Enabled: false
|
||
|
||
# Offense count: 12
|
||
# Offense count: 10
|
||
# Configuration parameters: Keywords.
|
||
Style/CommentAnnotation:
|
||
Enabled: false
|
||
|
||
# Offense count: 15
|
||
# Offense count: 13
|
||
# Cop supports --auto-correct.
|
||
Style/CommentIndentation:
|
||
Enabled: false
|
||
... | ... | |
Style/DeprecatedHashMethods:
|
||
Enabled: false
|
||
|
||
# Offense count: 117
|
||
# Offense count: 81
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/DotPosition:
|
||
... | ... | |
Style/EmptyLineBetweenDefs:
|
||
Enabled: false
|
||
|
||
# Offense count: 66
|
||
# Offense count: 63
|
||
# Cop supports --auto-correct.
|
||
Style/EmptyLines:
|
||
Enabled: false
|
||
... | ... | |
Style/EmptyLinesAroundAccessModifier:
|
||
Enabled: false
|
||
|
||
# Offense count: 796
|
||
# Offense count: 86
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/EmptyLinesAroundBlockBody:
|
||
Enabled: false
|
||
|
||
# Offense count: 643
|
||
# Cop supports --auto-correct.
|
||
Style/EmptyLinesAroundBody:
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/EmptyLinesAroundClassBody:
|
||
Enabled: false
|
||
|
||
# Offense count: 48
|
||
# Cop supports --auto-correct.
|
||
Style/EmptyLinesAroundMethodBody:
|
||
Enabled: false
|
||
|
||
# Offense count: 129
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/EmptyLinesAroundModuleBody:
|
||
Enabled: false
|
||
|
||
# Offense count: 6
|
||
... | ... | |
Style/EmptyLiteral:
|
||
Enabled: false
|
||
|
||
# Offense count: 13
|
||
# Offense count: 14
|
||
# Configuration parameters: Exclude.
|
||
Style/FileName:
|
||
Enabled: false
|
||
... | ... | |
Style/GlobalVars:
|
||
Enabled: false
|
||
|
||
# Offense count: 86
|
||
# Offense count: 88
|
||
# Configuration parameters: MinBodyLength.
|
||
Style/GuardClause:
|
||
Enabled: false
|
||
... | ... | |
Style/IfUnlessModifier:
|
||
Enabled: false
|
||
|
||
# Offense count: 30
|
||
# Offense count: 38
|
||
# Cop supports --auto-correct.
|
||
Style/IndentationConsistency:
|
||
Enabled: false
|
||
|
||
# Offense count: 49
|
||
# Offense count: 52
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: Width.
|
||
Style/IndentationWidth:
|
||
Enabled: false
|
||
|
||
# Offense count: 82
|
||
# Offense count: 91
|
||
Style/Lambda:
|
||
Enabled: false
|
||
|
||
# Offense count: 184
|
||
# Offense count: 183
|
||
# Cop supports --auto-correct.
|
||
Style/LeadingCommentSpace:
|
||
Enabled: false
|
||
|
||
# Offense count: 23
|
||
# Offense count: 26
|
||
# Cop supports --auto-correct.
|
||
Style/LineEndConcatenation:
|
||
Enabled: false
|
||
|
||
# Offense count: 20
|
||
# Offense count: 21
|
||
# Cop supports --auto-correct.
|
||
Style/MethodCallParentheses:
|
||
Enabled: false
|
||
|
||
# Offense count: 2
|
||
# Offense count: 5
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/MethodDefParentheses:
|
||
... | ... | |
Style/MultilineBlockChain:
|
||
Enabled: false
|
||
|
||
# Offense count: 5
|
||
# Offense count: 11
|
||
# Cop supports --auto-correct.
|
||
Style/MultilineBlockLayout:
|
||
Enabled: false
|
||
... | ... | |
Style/MultilineIfThen:
|
||
Enabled: false
|
||
|
||
# Offense count: 7
|
||
# Offense count: 121
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/MultilineOperationIndentation:
|
||
Enabled: false
|
||
|
||
# Offense count: 6
|
||
Style/MultilineTernaryOperator:
|
||
Enabled: false
|
||
|
||
... | ... | |
Style/NilComparison:
|
||
Enabled: false
|
||
|
||
# Offense count: 24
|
||
# Offense count: 23
|
||
# Cop supports --auto-correct.
|
||
Style/Not:
|
||
Enabled: false
|
||
|
||
# Offense count: 9
|
||
# Offense count: 10
|
||
# Cop supports --auto-correct.
|
||
Style/NumericLiterals:
|
||
MinDigits: 15
|
||
... | ... | |
Style/OpMethod:
|
||
Enabled: false
|
||
|
||
# Offense count: 37
|
||
# Offense count: 41
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: AllowSafeAssignment.
|
||
Style/ParenthesesAroundCondition:
|
||
Enabled: false
|
||
|
||
# Offense count: 98
|
||
# Offense count: 96
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: PreferredDelimiters.
|
||
Style/PercentLiteralDelimiters:
|
||
... | ... | |
Style/Proc:
|
||
Enabled: false
|
||
|
||
# Offense count: 38
|
||
# Offense count: 37
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/RaiseArgs:
|
||
Enabled: false
|
||
... | ... | |
Style/RedundantBegin:
|
||
Enabled: false
|
||
|
||
# Offense count: 330
|
||
# Offense count: 348
|
||
# Cop supports --auto-correct.
|
||
Style/RedundantSelf:
|
||
Enabled: false
|
||
|
||
# Offense count: 21
|
||
# Offense count: 22
|
||
# Configuration parameters: MaxSlashes.
|
||
Style/RegexpLiteral:
|
||
Enabled: false
|
||
|
||
# Offense count: 47
|
||
# Offense count: 46
|
||
Style/RescueModifier:
|
||
Enabled: false
|
||
|
||
# Offense count: 16
|
||
# Offense count: 15
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: AllowAsExpressionSeparator.
|
||
Style/Semicolon:
|
||
Enabled: false
|
||
|
||
# Offense count: 170
|
||
# Offense count: 168
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/SignalException:
|
||
... | ... | |
Style/SingleLineBlockParams:
|
||
Enabled: false
|
||
|
||
# Offense count: 6
|
||
# Offense count: 5
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: AllowIfMethodIsEmpty.
|
||
Style/SingleLineMethods:
|
||
Enabled: false
|
||
|
||
# Offense count: 81
|
||
# Offense count: 688
|
||
# Cop supports --auto-correct.
|
||
Style/SingleSpaceBeforeFirstArg:
|
||
Enabled: false
|
||
|
||
# Offense count: 408
|
||
# Offense count: 418
|
||
# Cop supports --auto-correct.
|
||
Style/SpaceAfterComma:
|
||
Enabled: false
|
||
|
||
# Offense count: 720
|
||
# Offense count: 751
|
||
# Cop supports --auto-correct.
|
||
Style/SpaceAroundOperators:
|
||
Enabled: false
|
||
|
||
# Offense count: 62
|
||
# Offense count: 64
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/SpaceBeforeBlockBraces:
|
||
Enabled: false
|
||
|
||
# Offense count: 328
|
||
# Offense count: 340
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
||
Style/SpaceInsideBlockBraces:
|
||
Enabled: false
|
||
|
||
# Offense count: 121
|
||
# Offense count: 127
|
||
# Cop supports --auto-correct.
|
||
Style/SpaceInsideBrackets:
|
||
Enabled: false
|
||
|
||
# Offense count: 2451
|
||
# Offense count: 2716
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
||
Style/SpaceInsideHashLiteralBraces:
|
||
Enabled: false
|
||
|
||
# Offense count: 71
|
||
# Offense count: 76
|
||
# Cop supports --auto-correct.
|
||
Style/SpaceInsideParens:
|
||
Enabled: false
|
||
... | ... | |
Style/SpecialGlobalVars:
|
||
Enabled: false
|
||
|
||
# Offense count: 9456
|
||
# Offense count: 12044
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/StringLiterals:
|
||
Enabled: false
|
||
|
||
# Offense count: 45
|
||
# Offense count: 42
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/StringLiteralsInInterpolation:
|
||
Enabled: false
|
||
|
||
# Offense count: 31
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: IgnoredMethods.
|
||
Style/SymbolProc:
|
||
Enabled: false
|
||
|
||
# Offense count: 66
|
||
# Offense count: 63
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Style/TrailingBlankLines:
|
||
Enabled: false
|
||
|
||
# Offense count: 26
|
||
# Offense count: 27
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
||
Style/TrailingComma:
|
||
... | ... | |
Style/UnneededPercentX:
|
||
Enabled: false
|
||
|
||
# Offense count: 241
|
||
# Offense count: 298
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: WordRegex.
|
||
Style/WordArray:
|
||
MinSize: 21
|
app/controllers/application_controller.rb | ||
---|---|---|
orgs.first
|
||
elsif session[:organization_id]
|
||
orgs.find_by_id(session[:organization_id])
|
||
else
|
||
nil
|
||
end
|
||
warning _("Organization you had selected as your context has been deleted.") if (session[:organization_id] && Organization.current == nil)
|
||
end
|
||
... | ... | |
locations.first
|
||
elsif session[:location_id]
|
||
locations.find_by_id(session[:location_id])
|
||
else
|
||
nil
|
||
end
|
||
warning _("Location you had selected as your context has been deleted.") if (session[:location_id] && Location.current == nil)
|
||
end
|
app/models/concerns/host_template_helpers.rb | ||
---|---|---|
temp_url = proxy.url
|
||
end
|
||
temp_url
|
||
else
|
||
nil
|
||
end
|
||
|
||
if url.present?
|
bundler.d/development.rb | ||
---|---|---|
group :development do
|
||
gem 'maruku', '~> 0.7'
|
||
gem 'term-ansicolor'
|
||
gem 'rubocop', '0.26.1'
|
||
gem 'rubocop', '0.28.0'
|
||
|
||
# for generating i18n files
|
||
gem 'gettext', '~> 3.1', :require => false
|
lib/foreman/renderer.rb | ||
---|---|---|
temp_url = proxy.url
|
||
end
|
||
temp_url
|
||
else
|
||
nil
|
||
end
|
||
|
||
if url.present?
|
Also available in: Unified diff
Fixes #9099 - Upgrade rubocop to 0.28.0