🌐 AIæœçŽą & 代理 䞻饔
Skip to main content

JavaScript CodeQL queries for Code Quality

Explore the queries that CodeQL uses to analyze code quality for code written in JavaScript.

Code Quality uses the following CodeQL queries to analyze JavaScript code and detect code quality issues on:

  • Your default branch, with results shown on the repository's "RĂ©sultats standard" dashboard
  • Pull requests, with findings shown as comments made by github-code-quality[bot]

Correctif automatique Copilot suggestions are provided for findings where possible.

Query nameCategorySeverity
Call to eval-like DOM functionMaintainabilityRecommendation
Duplicate dependencyMaintainabilityWarning
Duplicate HTML element attributesMaintainabilityWarning
Duplicate propertyMaintainabilityWarning
Duplicate variable declarationMaintainabilityRecommendation
Expression has no effectMaintainabilityWarning
Misleading indentation after control statementMaintainabilityWarning
Misleading indentation of dangling 'else'MaintainabilityWarning
Missing space in string concatenationMaintainabilityWarning
Repeated dependency injectionMaintainabilityWarning
Semicolon insertionMaintainabilityRecommendation
Unclear precedence of nested operatorsMaintainabilityRecommendation
Unneeded defensive codeMaintainabilityRecommendation
Unused variable, import, function or classMaintainabilityRecommendation
Use of for-in comprehension blocksMaintainabilityError
Use of platform-specific language featuresMaintainabilityWarning
Useless assignment to local variableMaintainabilityWarning
Useless assignment to propertyMaintainabilityWarning
Useless return in setterMaintainabilityWarning
Variable not declared before useMaintainabilityWarning
With statementMaintainabilityWarning
Access to let-bound variable in temporal dead zoneReliabilityError
Arguments redefinedReliabilityRecommendation
Arrow method on Vue instanceReliabilityWarning
Assignment to constantReliabilityError
Assignment to exports variableReliabilityWarning
Assignment to property of primitive valueReliabilityError
Back reference into negative lookahead assertionReliabilityError
Back reference precedes capture groupReliabilityError
Comparison between inconvertible typesReliabilityWarning
Comparison with NaNReliabilityError
Conditional commentsReliabilityWarning
Conflicting function declarationsReliabilityError
Conflicting variable initializationReliabilityError
Default parameter references nested functionReliabilityError
Deleting non-propertyReliabilityWarning
Dependency mismatchReliabilityWarning
Direct state mutationReliabilityWarning
Duplicate 'if' conditionReliabilityWarning
Duplicate character in character classReliabilityWarning
Duplicate parameter namesReliabilityError
Duplicate switch caseReliabilityWarning
Empty character classReliabilityWarning
Identical operandsReliabilityWarning
Ignoring result from pure array methodReliabilityWarning
Illegal invocationReliabilityError
Implicit operand conversionReliabilityWarning
Incompatible dependency injectionReliabilityError
Inconsistent direction of for loopReliabilityError
Inconsistent use of 'new'ReliabilityWarning
Ineffective parameter typeReliabilityWarning
Invalid prototype valueReliabilityError
Invocation of non-functionReliabilityError
Loop iteration skipped due to shiftingReliabilityWarning
Malformed id attributeReliabilityWarning
Missing '.length' in comparisonReliabilityWarning
Missing 'this' qualifierReliabilityError
Missing awaitReliabilityWarning
Missing explicit dependency injectionReliabilityWarning
Missing exports qualifierReliabilityError
Missing variable declarationReliabilityWarning
Misspelled variable nameReliabilityWarning
Non-case label in switch statementReliabilityWarning
Non-linear patternReliabilityError
Off-by-one comparison against lengthReliabilityWarning
Overwritten propertyReliabilityError
Potentially inconsistent state updateReliabilityWarning
Property access on null or undefinedReliabilityError
Regular expression always matchesReliabilityWarning
Return statement assigns local variableReliabilityWarning
Self assignmentReliabilityWarning
Shift out of rangeReliabilityError
String instead of regular expressionReliabilityWarning
Superfluous trailing argumentsReliabilityWarning
Suspicious method name declarationReliabilityWarning
Template syntax in string literalReliabilityWarning
Unbound back referenceReliabilityWarning
Unbound event handler receiverReliabilityError
Unhandled error in stream pipelineReliabilityWarning
Unknown directiveReliabilityWarning
Unmatchable caret in regular expressionReliabilityError
Unmatchable dollar in regular expressionReliabilityError
Unreachable method overloadsReliabilityWarning
Unreachable statementReliabilityWarning
Unsupported state update in lifecycle methodReliabilityWarning
Unused index variableReliabilityWarning
Unused loop iteration variableReliabilityError
Unused or undefined state propertyReliabilityWarning
Use of AngularJS markup in URL-valued attributeReliabilityWarning
Use of call stack introspection in strict modeReliabilityError
Use of incompletely initialized objectReliabilityError
Use of returnless functionReliabilityWarning
Useless comparison testReliabilityWarning
Useless conditionalReliabilityWarning
Useless type testReliabilityError
Whitespace contradicts operator precedenceReliabilityWarning
Wrong use of 'this' for static methodReliabilityError
Yield in non-generator functionReliabilityError