mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: Autoformat
This commit is contained in:
@@ -4,16 +4,13 @@
|
||||
* This tests adds a negative dependency `flowsTo --!--> SourceNode`
|
||||
* so that the undesired edge `SourceNode --> flowsTo` completes a negative cycle.
|
||||
*/
|
||||
|
||||
import javascript
|
||||
|
||||
class BadSourceNode extends DataFlow::SourceNode {
|
||||
BadSourceNode() {
|
||||
this.(DataFlow::PropRead).getPropertyName() = "foo"
|
||||
}
|
||||
BadSourceNode() { this.(DataFlow::PropRead).getPropertyName() = "foo" }
|
||||
|
||||
override predicate flowsTo(DataFlow::Node node) {
|
||||
not node instanceof DataFlow::SourceNode
|
||||
}
|
||||
override predicate flowsTo(DataFlow::Node node) { not node instanceof DataFlow::SourceNode }
|
||||
}
|
||||
|
||||
select "Success"
|
||||
|
||||
Reference in New Issue
Block a user