Skip to content

Commit 26ad666

Browse files
committed
Remove codeql CLI-based testing, fix editorconfig issues
1 parent 18c6296 commit 26ad666

File tree

14 files changed

+31
-57
lines changed

14 files changed

+31
-57
lines changed

.codeqlmanifest.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
{
2-
"provide": [
1+
{
2+
"provide": [
33
"ql/src/qlpack.yml",
4-
"ql/test/qlpack.yml",
5-
"extractor/codeql-extractor.yml"
4+
"extractor/codeql-extractor.yml"
65
],
7-
"ignore": [
8-
"the-extractor-which-needs-to-be-built"
9-
]
6+
"ignore": [
7+
"the-extractor-which-needs-to-be-built"
8+
]
109
}

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,6 @@ jobs:
8686
working-directory: ./codeql-ruby
8787
run: |
8888
bundle exec rake spec:ci
89-
90-
- name: Run CodeQL Tests
91-
env:
92-
CODEQL_PATH: "$GITHUB_WORKSPACE/codeql/codeql"
93-
working-directory: ./codeql-ruby
94-
run: |
95-
codeql test run ql/test
9689
9790
# - name: Setup tmate session
9891
# uses: mxschmitt/action-tmate@v2

extractor/codeql-extractor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ file_types:
88
display_name: Ruby
99
extensions:
1010
- .rb
11-
legacy_qltest_extraction: true
11+
legacy_qltest_extraction: false

extractor/tools/index.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

ql/src/Files.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/**
2-
* Provides classes for working with files and folders.
3-
*
1+
/**
2+
* Provides classes for working with files and folders.
3+
*
44
* Stolen liberally from the Javascript QLL
55
* https://github.com/github/codeql/blob/813d14791d6bea399bc96fa9b7143603eef6e6c4/javascript/ql/src/semmle/javascript/Files.qll
6-
*
6+
*
77
*/
88

99
import ruby
@@ -200,4 +200,4 @@ class File extends Container, @file {
200200

201201
/** Gets the URL of this file. */
202202
override string getURL() { result = "file://" + this.getAbsolutePath() + ":0:0:0:0" }
203-
}
203+
}

ql/src/Locations.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/**
2-
* Provides classes for working with locations and program elements that have locations.
3-
*
1+
/**
2+
* Provides classes for working with locations and program elements that have locations.
3+
*
44
* Stolen liberally from the Javascript QL library:
55
* https://github.com/github/codeql/blob/813d14791d6bea399bc96fa9b7143603eef6e6c4/javascript/ql/src/semmle/javascript/Locations.qll
6-
*
6+
*
77
*/
88

99
import ruby
@@ -107,4 +107,4 @@ class Locatable extends @locatable {
107107
// to be overridden by subclasses
108108
none()
109109
}
110-
}
110+
}

ql/src/ruby.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
import Files
33
import Locations
4-
import LeafNode
4+
import LeafNode

ql/test/leaf_node_location/leaf_node_location.expected

Lines changed: 0 additions & 4 deletions
This file was deleted.

ql/test/leaf_node_location/leaf_node_location.ql

Lines changed: 0 additions & 4 deletions
This file was deleted.

ql/test/leaf_node_location/leaf_node_location.rb

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)