Skip to content
Open
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
Comment on lines +1 to +2
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The imports for os and os.path are not used in this test file and should be removed.

Suggested change
import os
import os.path

Copilot uses AI. Check for mistakes.

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.