Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 37d6280

Browse files
author
dilanbhalla
committed
fixed all pr requests
1 parent 37eca95 commit 37d6280

File tree

869 files changed

+71306
-71042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

869 files changed

+71306
-71042
lines changed

.codeqlmanifest.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{ "provide": [ "ql/src/qlpack.yml",
2-
"ql/examples/qlpack.yml",
3-
"ql/test/qlpack.yml",
4-
"upgrades/qlpack.yml",
5-
"ql/config/legacy-support/qlpack.yml",
6-
"build/codeql-extractor-go/codeql-extractor.yml" ],
7-
"ignore": [ "the-extractor-which-needs-to-be-built" ] }
1+
{ "provide": [ "ql/src/qlpack.yml",
2+
"ql/examples/qlpack.yml",
3+
"ql/test/qlpack.yml",
4+
"upgrades/qlpack.yml",
5+
"ql/config/legacy-support/qlpack.yml",
6+
"build/codeql-extractor-go/codeql-extractor.yml" ],
7+
"ignore": [ "the-extractor-which-needs-to-be-built" ] }

.devcontainer/devcontainer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
{
2-
"extensions": [
3-
"github.vscode-codeql",
4-
"slevesque.vscode-zipexplorer"
5-
],
6-
"settings": {
7-
"codeQL.experimentalBqrsParsing": true,
8-
"codeQL.experimentalFeatures": true,
9-
"codeQL.runningQueries.debug": true
10-
}
1+
{
2+
"extensions": [
3+
"github.vscode-codeql",
4+
"slevesque.vscode-zipexplorer"
5+
],
6+
"settings": {
7+
"codeQL.experimentalBqrsParsing": true,
8+
"codeQL.experimentalFeatures": true,
9+
"codeQL.runningQueries.debug": true
10+
}
1111
}

.gitattributes

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Force git not to modify line endings for go files under the ql directory
2-
ql/**/*.go -text
3-
4-
# Force git not to modify line endings for dbschemes
5-
*.dbscheme -text
1+
# Force git not to modify line endings for go files under the ql directory
2+
ql/**/*.go -text
3+
4+
# Force git not to modify line endings for dbschemes
5+
*.dbscheme -text

.github/codeql/codeql-config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL config"
2-
3-
queries:
4-
- uses: security-and-quality
1+
name: "CodeQL config"
2+
3+
queries:
4+
- uses: security-and-quality

.github/workflows/codeqltest.yml

Lines changed: 110 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,110 @@
1-
name: CodeQL tests
2-
on: [pull_request]
3-
jobs:
4-
5-
test-linux:
6-
name: Test Linux (Ubuntu)
7-
runs-on: ubuntu-latest
8-
steps:
9-
10-
- name: Set up Go 1.14
11-
uses: actions/setup-go@v1
12-
with:
13-
go-version: 1.14
14-
id: go
15-
16-
- name: Set up CodeQL CLI
17-
run: |
18-
echo "Removing old CodeQL Directory..."
19-
rm -rf $HOME/codeql
20-
echo "Done"
21-
cd $HOME
22-
echo "Downloading CodeQL CLI..."
23-
curl https://github.com/github/codeql-cli-binaries/releases/download/v2.2.0/codeql.zip -L -o codeql.zip
24-
echo "Done"
25-
echo "Unpacking CodeQL CLI..."
26-
unzip -q codeql.zip
27-
rm -f codeql.zip
28-
echo "Done"
29-
30-
- name: Check out code
31-
uses: actions/checkout@v1
32-
33-
- name: Build
34-
run: env PATH=$PATH:$HOME/codeql make
35-
36-
- name: Check that all QL and Go code is autoformatted
37-
run: env PATH=$PATH:$HOME/codeql make check-formatting
38-
39-
- name: Test
40-
run: env PATH=$PATH:$HOME/codeql make test
41-
42-
test-mac:
43-
name: Test MacOS
44-
runs-on: macOS-latest
45-
steps:
46-
- name: Set up Go 1.14
47-
uses: actions/setup-go@v1
48-
with:
49-
go-version: 1.14
50-
id: go
51-
52-
- name: Set up CodeQL CLI
53-
run: |
54-
echo "Removing old CodeQL Directory..."
55-
rm -rf $HOME/codeql
56-
echo "Done"
57-
cd $HOME
58-
echo "Downloading CodeQL CLI..."
59-
curl https://github.com/github/codeql-cli-binaries/releases/download/v2.2.0/codeql.zip -L -o codeql.zip
60-
echo "Done"
61-
echo "Unpacking CodeQL CLI..."
62-
unzip -q codeql.zip
63-
rm -f codeql.zip
64-
echo "Done"
65-
66-
- name: Check out code
67-
uses: actions/checkout@v1
68-
69-
- name: Build
70-
run: env PATH=$PATH:$HOME/codeql make
71-
72-
- name: Test
73-
run: env PATH=$PATH:$HOME/codeql make test
74-
75-
test-win:
76-
name: Test Windows
77-
runs-on: windows-latest
78-
steps:
79-
- name: Set up Go 1.14
80-
uses: actions/setup-go@v1
81-
with:
82-
go-version: 1.14
83-
id: go
84-
85-
- name: Set up CodeQL CLI
86-
run: |
87-
echo "Removing old CodeQL Directory..."
88-
rmdir "$HOME\codeql" -Recurse -Force -ErrorAction SilentlyContinue
89-
echo "Done"
90-
cd "$HOME"
91-
echo "Downloading CodeQL CLI..."
92-
Invoke-WebRequest -Uri https://github.com/github/codeql-cli-binaries/releases/download/v2.2.0/codeql.zip -OutFile codeql.zip
93-
echo "Done"
94-
echo "Unpacking CodeQL CLI..."
95-
Expand-Archive codeql.zip -DestinationPath $HOME
96-
rm -fo codeql.zip
97-
echo "Done"
98-
99-
- name: Check out code
100-
uses: actions/checkout@v1
101-
102-
- name: Build
103-
run: |
104-
$Env:Path += ";$HOME\codeql"
105-
make
106-
107-
- name: Test
108-
run: |
109-
$Env:Path += ";$HOME\codeql"
110-
make test
1+
name: CodeQL tests
2+
on: [pull_request]
3+
jobs:
4+
5+
test-linux:
6+
name: Test Linux (Ubuntu)
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- name: Set up Go 1.14
11+
uses: actions/setup-go@v1
12+
with:
13+
go-version: 1.14
14+
id: go
15+
16+
- name: Set up CodeQL CLI
17+
run: |
18+
echo "Removing old CodeQL Directory..."
19+
rm -rf $HOME/codeql
20+
echo "Done"
21+
cd $HOME
22+
echo "Downloading CodeQL CLI..."
23+
curl https://github.com/github/codeql-cli-binaries/releases/download/v2.2.0/codeql.zip -L -o codeql.zip
24+
echo "Done"
25+
echo "Unpacking CodeQL CLI..."
26+
unzip -q codeql.zip
27+
rm -f codeql.zip
28+
echo "Done"
29+
30+
- name: Check out code
31+
uses: actions/checkout@v1
32+
33+
- name: Build
34+
run: env PATH=$PATH:$HOME/codeql make
35+
36+
- name: Check that all QL and Go code is autoformatted
37+
run: env PATH=$PATH:$HOME/codeql make check-formatting
38+
39+
- name: Test
40+
run: env PATH=$PATH:$HOME/codeql make test
41+
42+
test-mac:
43+
name: Test MacOS
44+
runs-on: macOS-latest
45+
steps:
46+
- name: Set up Go 1.14
47+
uses: actions/setup-go@v1
48+
with:
49+
go-version: 1.14
50+
id: go
51+
52+
- name: Set up CodeQL CLI
53+
run: |
54+
echo "Removing old CodeQL Directory..."
55+
rm -rf $HOME/codeql
56+
echo "Done"
57+
cd $HOME
58+
echo "Downloading CodeQL CLI..."
59+
curl https://github.com/github/codeql-cli-binaries/releases/download/v2.2.0/codeql.zip -L -o codeql.zip
60+
echo "Done"
61+
echo "Unpacking CodeQL CLI..."
62+
unzip -q codeql.zip
63+
rm -f codeql.zip
64+
echo "Done"
65+
66+
- name: Check out code
67+
uses: actions/checkout@v1
68+
69+
- name: Build
70+
run: env PATH=$PATH:$HOME/codeql make
71+
72+
- name: Test
73+
run: env PATH=$PATH:$HOME/codeql make test
74+
75+
test-win:
76+
name: Test Windows
77+
runs-on: windows-latest
78+
steps:
79+
- name: Set up Go 1.14
80+
uses: actions/setup-go@v1
81+
with:
82+
go-version: 1.14
83+
id: go
84+
85+
- name: Set up CodeQL CLI
86+
run: |
87+
echo "Removing old CodeQL Directory..."
88+
rmdir "$HOME\codeql" -Recurse -Force -ErrorAction SilentlyContinue
89+
echo "Done"
90+
cd "$HOME"
91+
echo "Downloading CodeQL CLI..."
92+
Invoke-WebRequest -Uri https://github.com/github/codeql-cli-binaries/releases/download/v2.2.0/codeql.zip -OutFile codeql.zip
93+
echo "Done"
94+
echo "Unpacking CodeQL CLI..."
95+
Expand-Archive codeql.zip -DestinationPath $HOME
96+
rm -fo codeql.zip
97+
echo "Done"
98+
99+
- name: Check out code
100+
uses: actions/checkout@v1
101+
102+
- name: Build
103+
run: |
104+
$Env:Path += ";$HOME\codeql"
105+
make
106+
107+
- name: Test
108+
run: |
109+
$Env:Path += ";$HOME\codeql"
110+
make test

.gitignore

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# editor and OS artifacts
2-
*~
3-
.DS_STORE
4-
5-
# query compilation caches
6-
.cache
7-
8-
# build artifacts
9-
build/*
10-
11-
# qltest projects and artifacts
12-
ql/test/**/*.testproj
13-
ql/test/**/*.actual
14-
ql/test/**/go.sum
15-
16-
# Java class files
17-
**/*.class
18-
19-
# binaries
20-
tools/bin
21-
tools/linux64
22-
tools/osx64
23-
tools/win64
24-
tools/tokenizer.jar
25-
main
1+
# editor and OS artifacts
2+
*~
3+
.DS_STORE
4+
5+
# query compilation caches
6+
.cache
7+
8+
# build artifacts
9+
build/*
10+
11+
# qltest projects and artifacts
12+
ql/test/**/*.testproj
13+
ql/test/**/*.actual
14+
ql/test/**/go.sum
15+
16+
# Java class files
17+
**/*.class
18+
19+
# binaries
20+
tools/bin
21+
tools/linux64
22+
tools/osx64
23+
tools/win64
24+
tools/tokenizer.jar
25+
main

.lgtm.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
path_classifiers:
2-
test:
3-
- ql/test
4-
example:
5-
- ql/src
1+
path_classifiers:
2+
test:
3+
- ql/test
4+
example:
5+
- ql/src

0 commit comments

Comments
 (0)