Skip to content

Files

Latest commit

 

History

History
43 lines (27 loc) · 843 Bytes

comment-word-disallowed-list.md

File metadata and controls

43 lines (27 loc) · 843 Bytes

Pattern: Use of blacklisted word in comment

Issue: -

Description

Specify a blacklist of disallowed words within comments. Caveat: Comments within selector and value lists are currently ignored.

Examples

array|string: ["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 */

Further Reading