Skip to content

Commit

Permalink
Update rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Sep 2, 2020
1 parent 89c74b0 commit c61d25e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
19 changes: 1 addition & 18 deletions .rubocop_opinionated.yml
Expand Up @@ -5,6 +5,7 @@ AllCops:
# Exclude vendored folders
- 'tmp/**/*'
- 'vendor/**/*'
NewCops: enable

# [codesmell]
Layout/LineLength:
Expand Down Expand Up @@ -154,21 +155,3 @@ 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
Expand Up @@ -11,5 +11,5 @@ gem "memory_profiler", require: false
gem "minitest"
gem "minitest-reporters"
gem "mocha"
gem "rubocop", "0.81.0", require: false
gem "rubocop", "~>0.90", require: false
gem "yard"
2 changes: 1 addition & 1 deletion test/psl_test.rb
Expand Up @@ -38,7 +38,7 @@ def test_valid
failures = []
self.class.tests.each do |input, output|
# Punycode domains are not supported ATM
next if input =~ /xn\-\-/
next if input =~ /xn--/

domain = PublicSuffix.domain(input) rescue nil
failures << [input, output, domain] if output != domain
Expand Down

0 comments on commit c61d25e

Please sign in to comment.