Skip to content

Commit

Permalink
Fix Rubocop new warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Jun 26, 2018
1 parent 8841e49 commit 4556aa4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ AllCops:
- 'test/benchmarks/**/*'
- 'test/profilers/**/*'

# I often use @_variable to avoid clashing.
Naming/MemoizedInstanceVariableName:
Enabled: false

Style/ClassAndModuleChildren:
Exclude:
- 'spec/**/*_spec.rb'
Expand Down
2 changes: 1 addition & 1 deletion lib/public_suffix/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def select(name, ignore_private: false)

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

# Gets the default rule.
#
Expand Down
2 changes: 1 addition & 1 deletion test/psl_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# the definitions satisfies the test suite.
class PslTest < Minitest::Test

ROOT = File.expand_path("../../", __FILE__)
ROOT = File.expand_path("..", __dir__)

# rubocop:disable Security/Eval
def self.tests
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

Minitest::Reporters.use! Minitest::Reporters::DefaultReporter.new(color: true)

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "public_suffix"

0 comments on commit 4556aa4

Please sign in to comment.