Skip to content

Commit

Permalink
Upgrade rubocop to version 0.83.0 (#179)
Browse files Browse the repository at this point in the history
* Update rubocop to version 0.83.0

* Adds Rubocop v0.83 new cops

- Layout/EmptyLinesAroundAttributeAccessor
- Style/SlicingWithRange

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Santiago Traversa <santiago.traversa@gmail.com>
  • Loading branch information
depfu[bot] and san983 committed May 16, 2020
1 parent 83e0db7 commit ebcf811
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .rubocop_dnsimple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ Layout/SpaceInsidePercentLiteralDelimiters:
# We'll remove them once they become defaults.
# See https://docs.rubocop.org/en/latest/versioning/


Layout/SpaceAroundMethodCallOperator:
Enabled: true

Expand All @@ -395,3 +394,9 @@ Lint/StructNewOverride:

Style/ExponentialNotation:
Enabled: true

Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true

Style/SlicingWithRange:
Enabled: true
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ source 'https://rubygems.org'
gemspec

gem 'coveralls', require: false
gem 'rubocop', '0.82.0', require: false
gem 'rubocop', '0.83.0', require: false
gem 'rubocop-performance', require: false
3 changes: 3 additions & 0 deletions lib/dnsimple/struct/certificate_bundle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ class CertificateBundle < Base

# @return [String] The server certificate
attr_accessor :server

alias server_certificate server

# @return [String] The root certificate
attr_accessor :root

alias root_certificate root

# @return [Array<String>] Intermediate certificates
attr_accessor :chain

alias intermediate_certificates chain

end
Expand Down

0 comments on commit ebcf811

Please sign in to comment.