mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
4
javascript/ql/src/Comments/examples/CommentedOutCode.js
Normal file
4
javascript/ql/src/Comments/examples/CommentedOutCode.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function area(r) {
|
||||
// console.log("Got r: " + r);
|
||||
return r.length * r.width;
|
||||
}
|
||||
4
javascript/ql/src/Comments/examples/TodoComments.js
Normal file
4
javascript/ql/src/Comments/examples/TodoComments.js
Normal file
@@ -0,0 +1,4 @@
|
||||
function solveQuadratic(a, b, c) {
|
||||
// TODO: handle case where a === 0
|
||||
return (-b + Math.sqrt(b*b - 4*a*c))/(2*a);
|
||||
}
|
||||
Reference in New Issue
Block a user