Check parameter names for wording issues
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。
ID: javascript-inclusive/formal-parameters
Language: JavaScript
Severity: Notice
Category: Code Style
Description
Ensure that some words are not used in the codebase and suggest a replacement when appropriate.
Examples of replacement suggestions:
blacklist
with denylist
whitelist
with allowlist
master
with primary
slave
with secondary
Non-Compliant Code Examples
function a(master, slave) {}
function a(blacklist, whitelist) {}
class A { foo(master, slave) {} }
Compliant Code Examples
function denyList(primary, secondary) {}
Seamless integrations. Try Datadog Code Analysis