rubocop: fix offences of the Style/AccessModifierDeclarations cop

This is a false positive documented in:
https://github.com/rubocop-hq/rubocop/issues/5953
This commit is contained in:
Kyrylo Silin 2019-03-08 00:35:36 +02:00
parent 9978259afc
commit e38ee30508
1 changed files with 3 additions and 0 deletions

View File

@ -13,8 +13,11 @@ if ENV["COVERAGE"]
end
class Module
# False positive: https://github.com/rubocop-hq/rubocop/issues/5953
# rubocop:disable Style/AccessModifierDeclarations
public :remove_const
public :remove_method
# rubocop:enable Style/AccessModifierDeclarations
end
Pad = Class.new do