2014-11-28 00:25:39 -05:00
|
|
|
# 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
|
|
|
|
|
2017-07-05 01:45:37 -04:00
|
|
|
Security/Eval:
|
2014-11-28 00:25:53 -05:00
|
|
|
Exclude:
|
|
|
|
- rest-client.windows.gemspec
|
|
|
|
|
2016-06-05 21:00:28 -04:00
|
|
|
Lint/HandleExceptions:
|
|
|
|
Exclude:
|
|
|
|
- lib/restclient/utils.rb
|
|
|
|
|
|
|
|
Lint/UselessAccessModifier:
|
|
|
|
Exclude:
|
|
|
|
- lib/restclient/windows/root_certs.rb
|
|
|
|
|
2014-11-28 00:25:39 -05:00
|
|
|
# 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.
|
2016-06-05 21:00:28 -04:00
|
|
|
Style/BlockDelimiters:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 48
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
Style/BracesAroundHashParameters:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
2018-03-28 15:11:28 -04:00
|
|
|
Naming/ClassAndModuleCamelCase:
|
|
|
|
Exclude:
|
|
|
|
- lib/restclient/windows/root_certs.rb
|
2014-11-28 00:25:39 -05:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Enabled: false
|
|
|
|
|
2014-11-28 00:25:53 -05:00
|
|
|
# TODO?
|
|
|
|
# Offense count: 14
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 75
|
|
|
|
|
|
|
|
# TODO?
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Max: 66
|
|
|
|
|
|
|
|
# TODO?
|
|
|
|
# Offense count: 4
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
Max: 24
|
|
|
|
|
2014-11-28 00:25:39 -05:00
|
|
|
# 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
|
|
|
|
|
2016-06-05 21:00:28 -04:00
|
|
|
Style/ConditionalAssignment:
|
|
|
|
EnforcedStyle: assign_inside_condition
|
|
|
|
|
2014-11-28 00:25:39 -05:00
|
|
|
# Offense count: 2
|
2018-03-28 15:11:28 -04:00
|
|
|
Naming/ConstantName:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# TODO: eh?
|
|
|
|
# Offense count: 4
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Max: 22
|
|
|
|
|
2017-07-05 01:09:37 -04:00
|
|
|
Style/PreferredHashMethods:
|
|
|
|
EnforcedStyle: verbose
|
2014-11-28 00:25:39 -05:00
|
|
|
|
|
|
|
# TODO: docs
|
|
|
|
# Offense count: 17
|
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 9
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/DotPosition:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
# Offense count: 2
|
|
|
|
Style/EachWithObject:
|
|
|
|
Enabled: false
|
|
|
|
|
2014-11-28 00:25:53 -05:00
|
|
|
# Offense count: 5
|
|
|
|
# Cop supports --auto-correct.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/EmptyLines:
|
2014-11-28 00:25:53 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2014-11-28 00:25:39 -05:00
|
|
|
# Offense count: 11
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/EmptyLinesAroundClassBody:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/EmptyLinesAroundMethodBody:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 9
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/EmptyLinesAroundModuleBody:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2017-07-05 03:25:01 -04:00
|
|
|
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
|
|
Enabled: false
|
|
|
|
|
2014-11-28 00:25:39 -05:00
|
|
|
# Offense count: 31
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
Style/Encoding:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-03-28 15:11:28 -04:00
|
|
|
Naming/FileName:
|
|
|
|
Exclude:
|
|
|
|
- lib/rest-client.rb
|
2014-11-28 00:25:39 -05:00
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
Style/FormatString:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-06-05 21:00:28 -04:00
|
|
|
# TODO: enable
|
2014-11-28 00:25:39 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: SupportedStyles.
|
|
|
|
Style/HashSyntax:
|
2016-06-05 21:00:28 -04:00
|
|
|
Enabled: false
|
2014-11-28 00:25:39 -05:00
|
|
|
|
|
|
|
# NOTABUG
|
|
|
|
# Offense count: 8
|
|
|
|
# Configuration parameters: MaxLineLength.
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-08-21 16:55:12 -04:00
|
|
|
Layout/IndentFirstHashElement:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*.rb'
|
2014-11-28 00:25:39 -05:00
|
|
|
|
|
|
|
# NOTABUG
|
|
|
|
# Offense count: 19
|
|
|
|
Style/Lambda:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
# Offense count: 14
|
|
|
|
# Cop supports --auto-correct.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/LeadingCommentSpace:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/LineLength:
|
2017-07-05 01:46:11 -04:00
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*.rb'
|
|
|
|
- 'Rakefile'
|
2014-11-28 00:25:39 -05:00
|
|
|
|
|
|
|
# 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.
|
2018-03-28 15:11:28 -04:00
|
|
|
Naming/PredicateName:
|
2014-11-28 00:25:39 -05:00
|
|
|
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.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/SpaceAfterNot:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 19
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 20
|
|
|
|
# Cop supports --auto-correct.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/SpaceAroundOperators:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 9
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/SpaceBeforeBlockBraces:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2017-07-05 03:15:00 -04:00
|
|
|
Layout/EmptyLinesAroundBlockBody:
|
|
|
|
Enabled: false
|
|
|
|
|
2014-11-28 00:25:39 -05:00
|
|
|
# Offense count: 37
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/SpaceInsideBlockBraces:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 181
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
# Offense count: 9
|
|
|
|
# Cop supports --auto-correct.
|
2017-07-05 01:45:37 -04:00
|
|
|
Layout/SpaceInsideParens:
|
2014-11-28 00:25:39 -05:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 414
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
Style/StringLiterals:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-03-28 15:11:28 -04:00
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
|
|
EnforcedStyleForMultiline: consistent_comma
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
EnforcedStyleForMultiline: consistent_comma
|
2016-06-05 21:00:28 -04:00
|
|
|
Style/TrailingCommaInArguments:
|
2014-11-28 00:25:39 -05:00
|
|
|
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
|
2017-09-19 21:49:36 -04:00
|
|
|
|
|
|
|
|
2018-03-28 15:11:28 -04:00
|
|
|
Style/RescueStandardError:
|
2017-09-19 21:49:36 -04:00
|
|
|
Exclude:
|
|
|
|
- 'bin/restclient'
|
|
|
|
- 'lib/restclient/windows/root_certs.rb'
|