mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
Merge branch 'github:main' into couchdb
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
paths:
|
||||
- include
|
||||
paths-ignore:
|
||||
- include/exclude
|
||||
@@ -0,0 +1 @@
|
||||
public class ShouldAppear2 { }
|
||||
@@ -0,0 +1 @@
|
||||
<tag></tag>
|
||||
@@ -0,0 +1 @@
|
||||
public class ShouldNotAppear3 { }
|
||||
@@ -0,0 +1 @@
|
||||
<tag></tag>
|
||||
@@ -0,0 +1 @@
|
||||
public class ShouldNotAppear1 { }
|
||||
@@ -0,0 +1 @@
|
||||
<tag></tag>
|
||||
@@ -0,0 +1,4 @@
|
||||
javaFiles
|
||||
| include/ShouldAppear2.java:0:0:0:0 | ShouldAppear2 |
|
||||
#select
|
||||
| include/ShouldAppear2.xml:0:0:0:0 | include/ShouldAppear2.xml |
|
||||
5
java/ql/integration-tests/java/buildless-paths/test.py
Normal file
5
java/ql/integration-tests/java/buildless-paths/test.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import os
|
||||
import os.path
|
||||
|
||||
def test(codeql, java):
|
||||
codeql.database.create(build_mode = "none", codescanning_config = "codescanning-config.yml")
|
||||
6
java/ql/integration-tests/java/buildless-paths/test.ql
Normal file
6
java/ql/integration-tests/java/buildless-paths/test.ql
Normal file
@@ -0,0 +1,6 @@
|
||||
import java
|
||||
|
||||
query predicate javaFiles(File f) { f.isJavaSourceFile() }
|
||||
|
||||
from XmlFile f
|
||||
select f
|
||||
4
java/ql/lib/change-notes/2025-12-16-java-xml-paths.md
Normal file
4
java/ql/lib/change-notes/2025-12-16-java-xml-paths.md
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: minorAnalysis
|
||||
---
|
||||
* When a code-scanning configuration specifies the `paths:` and/or `paths-ignore:` settings, these are now taken into account by the Java extractor's search for XML and properties files.
|
||||
Reference in New Issue
Block a user