You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| README.md | 5 years ago | |
| index.js | 5 years ago | |
README.md
comment-word-blacklist
Specify a blacklist of disallowed words within comments.
/* words within comments */
/** ↑ ↑ ↑
* These three words */
Caveat: Comments within selector and value lists are currently ignored.
Options
array|string|regexp: ["array", "of", "words", /or/, "/regex/"]|"word"|"/regex/"
If a string is surrounded with "/" (e.g. "/^TODO:/"), it is interpreted as a regular expression.
Given:
["/^TODO:/", "badword"]
The following patterns are considered violations:
/* TODO: */
/* TODO: add fallback */
/* some badword */
The following patterns are not considered violations:
/* comment */