disallowKeywordsInComments

Disallows keywords in your comments, such as TODO or FIXME

Types: Boolean, String or Array

Values:

  • true
  • '\b(word1|word2)\b'
  • ['word1', 'word2']

Examples

"disallowKeywordsInComments": true
"disallowKeywordsInComments": "\\b(word1|word2)\\b"
"disallowKeywordsInComments": ["word1", "word2"]

Invalid:

// ToDo
//TODO
/** fixme */
/**
 * FIXME
 */
Rule source
Test source