1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Update rubocop config for rubocop 0.54.

This commit is contained in:
Andy Brody 2018-03-28 12:11:28 -07:00
parent f450a0f086
commit d1777841a9
2 changed files with 14 additions and 18 deletions

View file

@ -53,8 +53,9 @@ Style/BracesAroundHashParameters:
Enabled: false Enabled: false
# Offense count: 1 # Offense count: 1
Style/ClassAndModuleCamelCase: Naming/ClassAndModuleCamelCase:
Enabled: false Exclude:
- lib/restclient/windows/root_certs.rb
# Offense count: 2 # Offense count: 2
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
@ -102,7 +103,7 @@ Style/ConditionalAssignment:
EnforcedStyle: assign_inside_condition EnforcedStyle: assign_inside_condition
# Offense count: 2 # Offense count: 2
Style/ConstantName: Naming/ConstantName:
Enabled: false Enabled: false
# TODO: eh? # TODO: eh?
@ -162,11 +163,9 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
Style/Encoding: Style/Encoding:
Enabled: false Enabled: false
# TODO: exclude Naming/FileName:
# Offense count: 1 Exclude:
# Configuration parameters: Exclude. - lib/rest-client.rb
Style/FileName:
Enabled: false
# Offense count: 3 # Offense count: 3
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
@ -262,7 +261,7 @@ Style/PercentLiteralDelimiters:
# Offense count: 3 # Offense count: 3
# Configuration parameters: NamePrefixBlacklist. # Configuration parameters: NamePrefixBlacklist.
Style/PredicateName: Naming/PredicateName:
Enabled: false Enabled: false
# TODO: configure # TODO: configure
@ -327,11 +326,6 @@ Layout/EmptyLinesAroundBlockBody:
Layout/SpaceInsideBlockBraces: Layout/SpaceInsideBlockBraces:
Enabled: false Enabled: false
# Offense count: 6
# Cop supports --auto-correct.
Layout/SpaceInsideBrackets:
Enabled: false
# Offense count: 181 # Offense count: 181
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
@ -350,8 +344,10 @@ Layout/SpaceInsideParens:
Style/StringLiterals: Style/StringLiterals:
Enabled: false Enabled: false
Style/TrailingCommaInLiteral: Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArguments: Style/TrailingCommaInArguments:
Enabled: false Enabled: false
@ -387,7 +383,7 @@ Style/BarePercentLiterals:
Enabled: false Enabled: false
Lint/RescueWithoutErrorClass: Style/RescueStandardError:
Exclude: Exclude:
- 'bin/restclient' - 'bin/restclient'
- 'lib/restclient/windows/root_certs.rb' - 'lib/restclient/windows/root_certs.rb'

View file

@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.add_development_dependency('pry', '~> 0') s.add_development_dependency('pry', '~> 0')
s.add_development_dependency('pry-doc', '~> 0') s.add_development_dependency('pry-doc', '~> 0')
s.add_development_dependency('rdoc', '>= 2.4.2', '< 6.0') s.add_development_dependency('rdoc', '>= 2.4.2', '< 6.0')
s.add_development_dependency('rubocop', '~> 0') s.add_development_dependency('rubocop', '~> 0.49')
s.add_dependency('http-accept', '>= 1.7.0', '< 2.0') s.add_dependency('http-accept', '>= 1.7.0', '< 2.0')
s.add_dependency('http-cookie', '>= 1.0.2', '< 2.0') s.add_dependency('http-cookie', '>= 1.0.2', '< 2.0')