Commit 10a7294
committed
JS: Accept trivial test changes
This adds Alert annotations for alerts that seem intentional by the test
but has not been annotated with 'NOT OK', or the comment was in the wrong
place.
In a few cases I included 'Source' expectations to make it easier to see
what happened. Other 'Source' expectations will be added in bulk a later
commit.1 parent 0453ded commit 10a7294
177 files changed
Lines changed: 469 additions & 503 deletions
File tree
- javascript/ql/test/query-tests
- AngularJS
- DoubleCompilation
- UseNgSrc
- DOM
- HTML
- PseudoEval
- TargetBlank
- Declarations
- ArgumentsRedefined
- AssignmentToConst
- ConflictingFunctions
- DeadStoreOfGlobal
- DeadStoreOfLocal
- DeadStoreOfProperty
- DefaultArgumentReferencesNestedFunction
- MissingVarDecl
- RedeclaredVariable
- TooManyParameters
- UniquePropertyNames
- UnstableCyclicImport/ExampleBad
- UnusedParameter
- UnusedProperty
- UnusedVariable
- Electron/DangerousWebPreferencesSettings
- Expressions
- BitwiseSignCheck
- CompareIdenticalValues
- ComparisonWithNaN
- DuplicateCondition
- DuplicateProperty
- DuplicateSwitchCase
- ExprHasNoEffect
- HeterogeneousComparison
- ImplicitOperandConversion
- MissingSpaceInAppend
- MisspelledVariableName
- RedundantExpression
- StringInsteadOfRegex
- SuspiciousInvocation
- SuspiciousPropAccess
- UnneededDefensiveProgramming
- WhitespaceContradictsPrecedence
- LanguageFeatures
- ArgumentsCallerCallee
- BadTypeof
- DebuggerStatement
- DeleteVar
- Eval
- ExpressionClosures
- ForInComprehensionBlocks
- InconsistentNew
- JumpFromFinally
- LengthComparisonOffByOne
- NonLinearPattern
- SemicolonInsertion
- SetterIgnoresParameter
- SpuriousArguments
- SyntaxError
- TemplateSyntaxInStringLiteral
- ThisBeforeSuper
- UnusedIndexVariable
- WithStatement
- NodeJS
- CyclicImport
- test1
- test2/inner
- DubiousImport
- MissingExports
- Performance/NonLocalForIn
- React
- DirectStateMutation
- UnsupportedStateUpdateInLifecycleMethod
- RegExp
- BackspaceEscape
- DuplicateCharacterInCharacterClass
- EmptyCharacterClass
- IdentityReplacement
- MalformedRegExp
- UnboundBackref
- Security
- CWE-020
- IncorrectSuffixCheck/examples
- MissingRegExpAnchor
- UntrustedDataToExternalAPI
- UselessCharacterEscape
- CWE-022
- TaintedPath
- ZipSlip
- CWE-078
- CommandInjection
- UnsafeShellCommandConstruction/lib
- CWE-079
- DomBasedXss
- ReflectedXss
- pages
- api
- CWE-089/untyped
- CWE-094/CodeInjection
- lib
- CWE-116
- DoubleEscaping
- IncompleteSanitization
- CWE-178
- CWE-200
- lib
- subfolder
- CWE-201
- CWE-295
- CWE-312
- CWE-754
- CWE-770/MissingRateLimit
- CWE-912
- CWE-915
- PrototypePollutingFunction
- PrototypePollutingMergeCall/src-vulnerable-lodash
- Statements
- DanglingElse
- InconsistentReturn
- LabelInCase
- MisleadingIndentationAfterControlStmt
- ReturnOutsideFunction
- SuspiciousUnusedLoopIterationVariable
- UnreachableStatement
- UselessComparisonTest
- WrongExtensionJSON
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
0 commit comments