mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Merge pull request #9794 from erik-krogh/unusedVue
JS: 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
|
||||
mentionedInJSDocComment(v)
|
||||
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
|
||||
isPropertyFilter(v)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user