lib/rules/no-warning-html-comments.js
function commentContainsWarningTerm(comment) {
            const matches = []

            warningRegExps.forEach((regex, index) => {
                if (regex.test(comment)) {
                    matches.push(warningTerms[index])
                }
            })

            return matches
        }
function commentContainsWarningTerm(comment) {
            const matches = []

            warningRegExps.forEach((regex, index) => {
                if (regex.test(comment)) {
                    matches.push(warningTerms[index])
                }
            })

            return matches
        }
function commentContainsWarningTerm ( comment ) { const matches = [ ] warningRegExps . forEach ( ( regex , index ) => { if ( regex . test ( comment ) ) { matches . push ( warningTerms [ index ] ) } } ) return matches }
Checks the specified comment for matches of the configured warning terms and returns the matches.
@param {string} comment The comment which is checked.
@returns {Array} All matched warning terms for this comment.
Checks the specified comment for matches of the configured warning terms and returns the matches .