comment-word-disallowed-list
指定注释中禁止使用的单词列表。
¥Specify a list of disallowed words within comments.
/* words within comments */
/** ↑ ↑ ↑
* These three words */
[!WARNING] 选择器和值列表中的注释当前被忽略。
¥[!WARNING] Comments within selector and value lists are currently ignored.
message
次要选项 可以接受该规则的参数。
¥The message
secondary option can accept the arguments of this rule.
选项
¥Options
array|string|regexp
:["array", "of", "words", /or/, "/regex/"]|"word"|"/regex/"|/regex/
如果字符串被 "/"
包围(例如 "/^TODO:/"
),则它被解释为正则表达式。
¥If a string is surrounded with "/"
(e.g. "/^TODO:/"
), it is interpreted as a regular expression.
鉴于:
¥Given:
["/^TODO:/", "badword"]
以下模式被视为问题:
¥The following patterns are considered problems:
/* TODO: */
/* TODO: add fallback */
/* some badword */
以下模式不被视为问题:
¥The following patterns are not considered problems:
/* comment */