Class: RuboCop::Cop::Betterment::AllowlistBlocklist

Inherits:
RuboCop::Cop
  • Object
show all
Defined in:
lib/rubocop/cop/betterment/allowlist_blocklist.rb

Constant Summary collapse

MSG =
<<-DOC
  Avoid usages of whitelist & blacklist, in favor of more inclusive and descriptive language.
  For consistency, favor 'allowlist' and 'blocklist' where possible, but other terms (such as
  denylist, ignorelist, warnlist, safelist, etc) may be appropriate, depending on the use case.
DOC

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