Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
paths:
- include
paths-ignore:
- include/exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public class ShouldAppear2 { }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<tag></tag>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public class ShouldNotAppear3 { }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<tag></tag>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public class ShouldNotAppear1 { }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<tag></tag>
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions java/ql/integration-tests/java/buildless-paths/test.py
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions java/ql/integration-tests/java/buildless-paths/test.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import java

query predicate javaFiles(File f) { f.isJavaSourceFile() }

from XmlFile f
select f
4 changes: 4 additions & 0 deletions java/ql/lib/change-notes/2025-12-16-java-xml-paths.md
Original file line number Diff line number Diff line change
@@ -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.
Loading