We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 855d4c2 + 9ed7aa9 commit 33fdcf1Copy full SHA for 33fdcf1
javascript/ql/src/Declarations/UnusedVariable.ql
@@ -144,6 +144,9 @@ predicate whitelisted(UnusedLocal v) {
144
// exclude variables mentioned in JSDoc comments in externs
145
mentionedInJSDocComment(v)
146
or
147
+ // the attributes in .vue files are not extracted, so we can get false positives in those.
148
+ v.getADeclaration().getFile().getExtension() = "vue"
149
+ or
150
// exclude variables used to filter out unwanted properties
151
isPropertyFilter(v)
152
0 commit comments