mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
exclude variables in .vue files form js/unused-local-variable
This commit is contained in:
@@ -144,6 +144,9 @@ predicate whitelisted(UnusedLocal v) {
|
|||||||
// exclude variables mentioned in JSDoc comments in externs
|
// exclude variables mentioned in JSDoc comments in externs
|
||||||
mentionedInJSDocComment(v)
|
mentionedInJSDocComment(v)
|
||||||
or
|
or
|
||||||
|
// the attributes in .vue files are not extracted, so we can get false positives in those.
|
||||||
|
v.getADeclaration().getFile().getExtension() = "vue"
|
||||||
|
or
|
||||||
// exclude variables used to filter out unwanted properties
|
// exclude variables used to filter out unwanted properties
|
||||||
isPropertyFilter(v)
|
isPropertyFilter(v)
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user