Skip to content

Commit 61de07e

Browse files
authored
Merge branch 'main' into swift/js-injection
2 parents 8f5af3f + b6dd388 commit 61de07e

File tree

85 files changed

+210
-926
lines changed

Some content is hidden

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

85 files changed

+210
-926
lines changed

.github/workflows/ql-for-ql-tests.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,3 @@ jobs:
4747
find ql/ql/src "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 "${CODEQL}" query format --check-only
4848
env:
4949
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
50-
- name: Check QL compilation
51-
run: |
52-
"${CODEQL}" query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}/ql/extractor-pack" "ql/ql/src" "ql/ql/examples"
53-
env:
54-
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}

.github/workflows/ruby-qltest.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@ defaults:
2828
working-directory: ruby
2929

3030
jobs:
31-
qlcompile:
32-
runs-on: ubuntu-latest
33-
steps:
34-
- uses: actions/checkout@v3
35-
- uses: ./.github/actions/fetch-codeql
36-
- name: Check QL compilation
37-
run: |
38-
codeql query compile --check-only --threads=0 --ram 5000 --warnings=error "ql/src" "ql/examples"
39-
env:
40-
GITHUB_TOKEN: ${{ github.token }}
4131
qlupgrade:
4232
runs-on: ubuntu-latest
4333
steps:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Deleted the deprecated `getName` and `getShortName` predicates from the `Folder` class.

cpp/ql/lib/semmle/code/cpp/File.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,6 @@ class Folder extends Container, @folder {
189189
* Gets the URL of this folder.
190190
*/
191191
deprecated override string getURL() { result = "file://" + this.getAbsolutePath() + ":0:0:0:0" }
192-
193-
/**
194-
* DEPRECATED: use `getAbsolutePath` instead.
195-
* Gets the name of this folder.
196-
*/
197-
deprecated string getName() { folders(underlyingElement(this), result) }
198-
199-
/**
200-
* DEPRECATED: use `getBaseName` instead.
201-
* Gets the last part of the folder name.
202-
*/
203-
deprecated string getShortName() { result = this.getBaseName() }
204192
}
205193

206194
/**
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Deleted the deprecated `getNameWithoutBrackets` predicate from the `ValueOrRefType` class in `Type.qll`.

csharp/ql/lib/semmle/code/csharp/Type.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ private predicate isObjectClass(Class c) { c instanceof ObjectType }
5656
* Either a value type (`ValueType`) or a reference type (`RefType`).
5757
*/
5858
class ValueOrRefType extends DotNet::ValueOrRefType, Type, Attributable, @value_or_ref_type {
59-
/**
60-
* DEPRECATED: use `getUndecoratedName()` instead.
61-
*
62-
* Gets the name of this type without `<...>` brackets, in case it is a generic type.
63-
*/
64-
deprecated string getNameWithoutBrackets() { types(this, _, result) }
65-
6659
/**
6760
* Holds if this type has the qualified name `qualifier`.`name`.
6861
*

docs/codeql/codeql-cli/analyzing-databases-with-the-codeql-cli.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ For more information, see "`Using CodeQL query packs in the CodeQL action <https
312312
Including query help for custom CodeQL queries in SARIF files
313313
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
314314

315-
If you use the CodeQL CLI to to run code scanning analyses on third party CI/CD systems,
315+
If you use the CodeQL CLI to run code scanning analyses on third party CI/CD systems,
316316
you can include the query help for your custom queries in SARIF files generated during an analysis.
317317
After uploading the SARIF file to GitHub, the query help is shown in the code scanning UI for any
318318
alerts generated by the custom queries.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Deleted the deprecated `LocalClassDeclStmtNode` and `LocalClassDeclStmt` classes from `PrintAst.qll` and `Statement.qll` respectively.
5+
* Deleted the deprecated `getLocalClass` predicate from `LocalTypeDeclStmt`, and the deprecated `getLocalClassDeclStmt` predicate from `LocalClassOrInterface`.

java/ql/lib/semmle/code/java/PrintAst.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,6 @@ final class LocalTypeDeclStmtNode extends ExprStmtNode {
393393
}
394394
}
395395

396-
/**
397-
* DEPRECATED: Renamed `LocalTypeDeclStmtNode` to reflect the fact that
398-
* as of Java 16 interfaces can also be declared locally, not just classes.
399-
*/
400-
deprecated class LocalClassDeclStmtNode = LocalTypeDeclStmtNode;
401-
402396
/**
403397
* A node representing a `ForStmt`.
404398
*/

java/ql/lib/semmle/code/java/Statement.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -781,12 +781,6 @@ class LocalTypeDeclStmt extends Stmt, @localtypedeclstmt {
781781
/** Gets the local type declared by this statement. */
782782
LocalClassOrInterface getLocalType() { isLocalClassOrInterface(result, this) }
783783

784-
/**
785-
* DEPRECATED: Renamed `getLocalType` to reflect the fact that
786-
* as of Java 16 interfaces can also be declared locally, not just classes.
787-
*/
788-
deprecated LocalClassOrInterface getLocalClass() { result = this.getLocalType() }
789-
790784
private string getDeclKeyword() {
791785
result = "class" and this.getLocalType() instanceof Class
792786
or
@@ -802,12 +796,6 @@ class LocalTypeDeclStmt extends Stmt, @localtypedeclstmt {
802796
override string getAPrimaryQlClass() { result = "LocalTypeDeclStmt" }
803797
}
804798

805-
/**
806-
* DEPRECATED: Renamed `LocalTypeDeclStmt` to reflect the fact that
807-
* as of Java 16 interfaces can also be declared locally, not just classes.
808-
*/
809-
deprecated class LocalClassDeclStmt = LocalTypeDeclStmt;
810-
811799
/** An explicit `this(...)` constructor invocation. */
812800
class ThisConstructorInvocationStmt extends Stmt, ConstructorCall, @constructorinvocationstmt {
813801
/** Gets an argument of this constructor invocation. */

0 commit comments

Comments
 (0)