Class: RuboCop::Cop::Betterment::AllowlistBlocklist
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Betterment::AllowlistBlocklist
- Defined in:
- lib/rubocop/cop/betterment/allowlist_blocklist.rb
Constant Summary collapse
- MSG =
"Avoid usages of whitelist & blacklist, in favor of more inclusive and descriptive language.\nFor consistency, favor 'allowlist' and 'blocklist' where possible, but other terms (such as\ndenylist, ignorelist, warnlist, safelist, etc) may be appropriate, depending on the use case.\n"
Instance Method Summary collapse
Instance Method Details
#on_class(node) ⇒ Object
14 15 16 |
# File 'lib/rubocop/cop/betterment/allowlist_blocklist.rb', line 14 def on_class(node) evaluate_node(node) end |