mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
393 lines
7.9 KiB
YAML
393 lines
7.9 KiB
YAML
# This configuration was generated by `rubocop --auto-gen-config`
|
|
# on 2014-07-08 08:57:44 +0000 using RuboCop version 0.24.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
|
|
# versions of RuboCop, may require this file to be generated again.
|
|
|
|
# TODO
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Lint/StringConversionInInterpolation:
|
|
Enabled: false
|
|
|
|
# Tests only
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
Lint/UnusedBlockArgument:
|
|
Enabled: false
|
|
|
|
Security/Eval:
|
|
Exclude:
|
|
- rest-client.windows.gemspec
|
|
|
|
Lint/HandleExceptions:
|
|
Exclude:
|
|
- lib/restclient/utils.rb
|
|
|
|
Lint/UselessAccessModifier:
|
|
Exclude:
|
|
- lib/restclient/windows/root_certs.rb
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Style/Alias:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/AndOr:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/BlockDelimiters:
|
|
Enabled: false
|
|
|
|
# Offense count: 48
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/BracesAroundHashParameters:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
Style/ClassAndModuleCamelCase:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/ClassAndModuleChildren:
|
|
Enabled: false
|
|
|
|
# TODO?
|
|
# Offense count: 14
|
|
Metrics/AbcSize:
|
|
Max: 75
|
|
|
|
# TODO?
|
|
Metrics/MethodLength:
|
|
Max: 66
|
|
|
|
# TODO?
|
|
# Offense count: 4
|
|
Metrics/PerceivedComplexity:
|
|
Max: 24
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ClassLength:
|
|
Max: 411
|
|
|
|
# TODO
|
|
# Offense count: 5
|
|
Style/ClassVars:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredMethods.
|
|
Style/CollectionMethods:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Style/ColonMethodCall:
|
|
Enabled: false
|
|
|
|
Style/ConditionalAssignment:
|
|
EnforcedStyle: assign_inside_condition
|
|
|
|
# Offense count: 2
|
|
Style/ConstantName:
|
|
Enabled: false
|
|
|
|
# TODO: eh?
|
|
# Offense count: 4
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 22
|
|
|
|
Style/PreferredHashMethods:
|
|
EnforcedStyle: verbose
|
|
|
|
# TODO: docs
|
|
# Offense count: 17
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 9
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Layout/DotPosition:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
Style/DoubleNegation:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 2
|
|
Style/EachWithObject:
|
|
Enabled: false
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLines:
|
|
Enabled: false
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Layout/EmptyLinesAroundClassBody:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLinesAroundMethodBody:
|
|
Enabled: false
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Layout/EmptyLinesAroundModuleBody:
|
|
Enabled: false
|
|
|
|
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
Enabled: false
|
|
|
|
# Offense count: 31
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/Encoding:
|
|
Enabled: false
|
|
|
|
# TODO: exclude
|
|
# Offense count: 1
|
|
# Configuration parameters: Exclude.
|
|
Style/FileName:
|
|
Enabled: false
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/FormatString:
|
|
Enabled: false
|
|
|
|
# TODO: enable
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: SupportedStyles.
|
|
Style/HashSyntax:
|
|
Enabled: false
|
|
|
|
# NOTABUG
|
|
# Offense count: 8
|
|
# Configuration parameters: MaxLineLength.
|
|
Style/IfUnlessModifier:
|
|
Enabled: false
|
|
|
|
# TODO: configure
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Layout/IndentHash:
|
|
Enabled: false
|
|
|
|
# NOTABUG
|
|
# Offense count: 19
|
|
Style/Lambda:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
Layout/LeadingCommentSpace:
|
|
Enabled: false
|
|
|
|
Metrics/LineLength:
|
|
Exclude:
|
|
- 'spec/**/*.rb'
|
|
- 'Rakefile'
|
|
|
|
# TODO
|
|
# Offense count: 28
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/MethodDefParentheses:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 1
|
|
Style/ModuleFunction:
|
|
Enabled: false
|
|
|
|
# Offense count: 4
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/Next:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IncludeSemanticChanges.
|
|
Style/NonNilCheck:
|
|
Enabled: false
|
|
|
|
# TODO: exclude
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/Not:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/NumericLiterals:
|
|
MinDigits: 11
|
|
|
|
# TODO?
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
Style/ParenthesesAroundCondition:
|
|
Enabled: false
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredDelimiters.
|
|
Style/PercentLiteralDelimiters:
|
|
PreferredDelimiters:
|
|
'%w': '{}'
|
|
'%W': '{}'
|
|
'%Q': '{}'
|
|
Exclude:
|
|
- 'bin/restclient'
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: NamePrefixBlacklist.
|
|
Style/PredicateName:
|
|
Enabled: false
|
|
|
|
# TODO: configure
|
|
# Offense count: 3
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/RaiseArgs:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantBegin:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantSelf:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
Style/RescueModifier:
|
|
Enabled: false
|
|
Exclude:
|
|
- 'bin/restclient'
|
|
|
|
# TODO: configure
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/SignalException:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAfterNot:
|
|
Enabled: false
|
|
|
|
# Offense count: 19
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
Enabled: false
|
|
|
|
# Offense count: 20
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAroundOperators:
|
|
Enabled: false
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Layout/SpaceBeforeBlockBraces:
|
|
Enabled: false
|
|
|
|
Layout/EmptyLinesAroundBlockBody:
|
|
Enabled: false
|
|
|
|
# Offense count: 37
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
Layout/SpaceInsideBlockBraces:
|
|
Enabled: false
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsideBrackets:
|
|
Enabled: false
|
|
|
|
# Offense count: 181
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
Enabled: false
|
|
|
|
# TODO
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsideParens:
|
|
Enabled: false
|
|
|
|
# Offense count: 414
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/StringLiterals:
|
|
Enabled: false
|
|
|
|
Style/TrailingCommaInLiteral:
|
|
EnforcedStyleForMultiline: comma
|
|
Style/TrailingCommaInArguments:
|
|
Enabled: false
|
|
|
|
# TODO: configure
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
|
|
Style/TrivialAccessors:
|
|
Enabled: false
|
|
Exclude: ['lib/restclient/payload.rb']
|
|
|
|
# TODO?
|
|
# Offense count: 3
|
|
Style/UnlessElse:
|
|
Enabled: false
|
|
|
|
# TODO?
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
Style/UnneededPercentQ:
|
|
Enabled: false
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Style/WordArray:
|
|
MinSize: 4
|
|
|
|
# TODO?
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/BarePercentLiterals:
|
|
Enabled: false
|
|
|
|
|
|
Lint/RescueWithoutErrorClass:
|
|
Exclude:
|
|
- 'bin/restclient'
|
|
- 'lib/restclient/windows/root_certs.rb'
|