Improve accuracy of javascript-escape linter: Previously this would match on FOOescape() and FOO.escape calls, but neither are the global escape function we are worried about. The regex probably isn't 100% accurate; there may be still false positives (javascript allows a large range of characters in identifiers, some of which may not be covered by [\w.$]). The main thing is to avoid false negatives here though - this will definitely catch any use of `escape()` or `window.escape()`. Also remove javascript-interpolate lint - this was deemed unecessary. StringUtils.interpolate is not in fact safe (it does no html escaping), so the results of this lint are misleading.
41 lines
1.5 KiB
JSON
41 lines
1.5 KiB
JSON
{
|
|
"rules": {
|
|
"javascript-concat-html": 142,
|
|
"javascript-escape": 7,
|
|
"javascript-jquery-append": 68,
|
|
"javascript-jquery-html": 146,
|
|
"javascript-jquery-insert-into-target": 18,
|
|
"javascript-jquery-insertion": 19,
|
|
"javascript-jquery-prepend": 6,
|
|
"mako-html-entities": 0,
|
|
"mako-invalid-html-filter": 7,
|
|
"mako-invalid-js-filter": 59,
|
|
"mako-js-html-string": 0,
|
|
"mako-js-missing-quotes": 0,
|
|
"mako-missing-default": 83,
|
|
"mako-multiple-page-tags": 0,
|
|
"mako-unknown-context": 0,
|
|
"mako-unparseable-expression": 0,
|
|
"mako-unwanted-html-filter": 0,
|
|
"python-close-before-format": 0,
|
|
"python-concat-html": 0,
|
|
"python-custom-escape": 5,
|
|
"python-deprecated-display-name": 4,
|
|
"python-interpolate-html": 26,
|
|
"python-parse-error": 0,
|
|
"python-requires-html-or-text": 0,
|
|
"python-wrap-html": 68,
|
|
"underscore-not-escaped": 437,
|
|
"django-trans-missing-escape": 18,
|
|
"django-trans-invalid-escape-filter": 0,
|
|
"django-trans-escape-variable-mismatch": 0,
|
|
"django-blocktrans-missing-escape-filter": 12,
|
|
"django-blocktrans-parse-error": 0,
|
|
"django-blocktrans-escape-filter-parse-error": 0,
|
|
"django-html-interpolation-missing-safe-filter": 0,
|
|
"django-html-interpolation-missing": 1,
|
|
"django-html-interpolation-invalid-tag": 0
|
|
},
|
|
"total": 1150
|
|
}
|