Skip to content

Commit

Permalink
Update to Rubocop 0.81.0
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Apr 5, 2020
1 parent c6dcdf6 commit da6e504
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .rubocop_opinionated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,21 @@ Style/TrivialAccessors:
# end
#
IgnoreClassMethods: true

# New cops
# See https://docs.rubocop.org/en/latest/versioning/

Lint/RaiseException:
Enabled: true

Lint/StructNewOverride:
Enabled: true

Style/HashEachMethods:
Enabled: true

Style/HashTransformKeys:
Enabled: true

Style/HashTransformValues:
Enabled: true
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ gem "memory_profiler", require: false
gem "minitest"
gem "minitest-reporters"
gem "mocha"
gem "rubocop", "0.80.1", require: false
gem "rubocop", "0.81.0", require: false
gem "yard"
2 changes: 1 addition & 1 deletion lib/public_suffix/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def select(name, ignore_private: false)

rules
end
private :select # rubocop:disable Style/AccessModifierDeclarations
private :select

# Gets the default rule.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/public_suffix/rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module PublicSuffix
module Rule

# @api internal
Entry = Struct.new(:type, :length, :private)
Entry = Struct.new(:type, :length, :private) # rubocop:disable Lint/StructNewOverride

# = Abstract rule class
#
Expand Down

0 comments on commit da6e504

Please sign in to comment.