-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Verdeguer
committed
May 8, 2020
1 parent
b73b259
commit 583f8a9
Showing
32 changed files
with
257 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Main { | ||
public static void main(String args[]) { | ||
if (true) { | ||
System.out.println("Hello, World!"); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
gcc -o main main.c | ||
|
||
dotnet build | ||
|
||
javac Main.java | ||
|
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/complex-javascript-qlpack/foo/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Foo Show Ifs | ||
* @description Foo Show Ifs | ||
* @kind problem | ||
* @id complex-javascript-querypack/foo-show-ifs | ||
*/ | ||
|
||
import javascript | ||
|
||
from IfStmt i | ||
select i, "foo if" |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/complex-javascript-qlpack/foo2/bar/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Bar Show Ifs | ||
* @description Bar Show Ifs | ||
* @kind problem | ||
* @id complex-javascript-querypack/bar-ifs | ||
*/ | ||
|
||
import javascript | ||
|
||
from IfStmt i | ||
select i, "bar if" |
11 changes: 11 additions & 0 deletions
11
...-language-repo/codeql-qlpacks/complex-javascript-qlpack/foo2/barfoo/barfoobar/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Barfoobar Show Ifs | ||
* @description Barfoobar Show Ifs | ||
* @kind problem | ||
* @id complex-javascript-querypack/barfoobar-ifs | ||
*/ | ||
|
||
import javascript | ||
|
||
from IfStmt i | ||
select i, "barfoobar if" |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/complex-javascript-qlpack/foo2/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Foo2 Show Ifs | ||
* @description Foo2 Show Ifs | ||
* @kind problem | ||
* @id complex-javascript-querypack/foo2-ifs | ||
*/ | ||
|
||
import javascript | ||
|
||
from IfStmt i | ||
select i, "foo2 if" |
3 changes: 3 additions & 0 deletions
3
tests/multi-language-repo/codeql-qlpacks/complex-javascript-qlpack/qlpack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: complex-javascript-querypack | ||
version: 0.0.1 | ||
libraryPathDependencies: codeql-javascript |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/complex-javascript-qlpack/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Root Show Ifs | ||
* @description Root Show Ifs | ||
* @kind problem | ||
* @id complex-javascript-querypack/root-show-ifs | ||
*/ | ||
|
||
import javascript | ||
|
||
from IfStmt i | ||
select i, "root if" |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/complex-python-qlpack/foo/bar/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Foo/Bar Show Ifs | ||
* @description Foo/Bar Show Ifs | ||
* @kind problem | ||
* @id complex-python-querypack/foo/bar/show-ifs | ||
*/ | ||
|
||
import python | ||
|
||
from If i | ||
select i, "foo/bar if" |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/complex-python-qlpack/foo/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Foo Show Ifs | ||
* @description Foo Show Ifs | ||
* @kind problem | ||
* @id complex-python-querypack/foo/show-ifs | ||
*/ | ||
|
||
import python | ||
|
||
from If i | ||
select i, "foo if" |
3 changes: 3 additions & 0 deletions
3
tests/multi-language-repo/codeql-qlpacks/complex-python-qlpack/qlpack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: inrepo-python-querypack | ||
version: 0.0.1 | ||
libraryPathDependencies: codeql-python |
2 changes: 2 additions & 0 deletions
2
tests/multi-language-repo/codeql-qlpacks/complex-python-qlpack/rootAndBar.qls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- query: show_ifs.ql | ||
- query: foo/bar/show_ifs.ql |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/complex-python-qlpack/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Show Ifs | ||
* @description Show Ifs | ||
* @kind problem | ||
* @id complex-python-querypack/show-ifs | ||
*/ | ||
|
||
import python | ||
|
||
from If i | ||
select i, "hello if" |
3 changes: 3 additions & 0 deletions
3
tests/multi-language-repo/codeql-qlpacks/cpp-qlpack/qlpack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: inrepo-cpp-querypack | ||
version: 0.0.1 | ||
libraryPathDependencies: codeql-cpp |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/cpp-qlpack/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Show Cpp Ifs | ||
* @description Show Cpp Ifs | ||
* @kind problem | ||
* @id inrepo-cpp-querypack/show-ifs | ||
*/ | ||
|
||
import cpp | ||
|
||
from IfStmt i | ||
select i, "hello if" |
3 changes: 3 additions & 0 deletions
3
tests/multi-language-repo/codeql-qlpacks/csharp-qlpack/qlpack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: inrepo-csharp-querypack | ||
version: 0.0.1 | ||
libraryPathDependencies: codeql-csharp |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/csharp-qlpack/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Show Csharp Ifs | ||
* @description Show Csharp Ifs | ||
* @kind problem | ||
* @id inrepo-csharp-querypack/show-ifs | ||
*/ | ||
|
||
import csharp | ||
|
||
from IfStmt i | ||
select i, "hello if" |
3 changes: 3 additions & 0 deletions
3
tests/multi-language-repo/codeql-qlpacks/go-qlpack/qlpack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: inrepo-go-querypack | ||
version: 0.0.1 | ||
libraryPathDependencies: codeql-go |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/go-qlpack/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Show Go Ifs | ||
* @description Show Go Ifs | ||
* @kind problem | ||
* @id inrepo-go-querypack/show-ifs | ||
*/ | ||
|
||
import go | ||
|
||
from IfStmt i | ||
select i, "hello if" |
3 changes: 3 additions & 0 deletions
3
tests/multi-language-repo/codeql-qlpacks/java-qlpack/qlpack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: inrepo-java-querypack | ||
version: 0.0.1 | ||
libraryPathDependencies: codeql-java |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/java-qlpack/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Show Java Ifs | ||
* @description Show Java Ifs | ||
* @kind problem | ||
* @id inrepo-java-querypack/show-ifs | ||
*/ | ||
|
||
import java | ||
|
||
from IfStmt i | ||
select i, "hello if" |
3 changes: 3 additions & 0 deletions
3
tests/multi-language-repo/codeql-qlpacks/javascript-qlpack/qlpack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: inrepo-javascript-querypack | ||
version: 0.0.1 | ||
libraryPathDependencies: codeql-javascript |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/javascript-qlpack/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Show Javascript Ifs | ||
* @description Show Javascript Ifs | ||
* @kind problem | ||
* @id inrepo-javascript-querypack/show-ifs | ||
*/ | ||
|
||
import javascript | ||
|
||
from IfStmt i | ||
select i, "hello if" |
3 changes: 3 additions & 0 deletions
3
tests/multi-language-repo/codeql-qlpacks/python-qlpack/qlpack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: inrepo-python-querypack | ||
version: 0.0.1 | ||
libraryPathDependencies: codeql-python |
11 changes: 11 additions & 0 deletions
11
tests/multi-language-repo/codeql-qlpacks/python-qlpack/show_ifs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @name Show Python Ifs | ||
* @description Show Python Ifs | ||
* @kind problem | ||
* @id inrepo-python-querypack/show-ifs | ||
*/ | ||
|
||
import python | ||
|
||
from If i | ||
select i, "hello if" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<RootNamespace>multi_language_test</RootNamespace> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "stdio.h" | ||
|
||
int main(int argc, char **argv) { | ||
if (1) { | ||
printf("Hello, World!\n"); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace HelloWorldApp { | ||
class Geeks { | ||
static void Main(string[] args) { | ||
if (true) { | ||
Console.WriteLine("Hello World!"); | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
import "fmt" | ||
|
||
func main() { | ||
if true { | ||
fmt.Println("hello world") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if (true) { | ||
console.log("Hello, World!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/python3 | ||
|
||
def main(): | ||
if True: | ||
print("Hello, World!") | ||
|
||
if __name__ == '__main__': | ||
main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/ruby | ||
# frozen_string_literal: true | ||
|
||
def main | ||
v = ARGV[0] | ||
|
||
puts 'with arg?' unless v.nil? | ||
puts 'hello there' | ||
end | ||
|
||
main |