Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add integration test for paths and paths-ignore vs. Java buildless mode#21049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
smowton wants to merge2 commits intogithub:main
base:main
Choose a base branch
Loading
fromsmowton:smowton/admin/java-buildless-paths-test
Open
Show file tree
Hide file tree
Changes fromall 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
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
paths:
- include
paths-ignore:
- include/exclude
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
public class ShouldAppear2 { }
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
<tag></tag>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
public class ShouldNotAppear3 { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
<tag></tag>
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
public class ShouldNotAppear1 { }
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
<tag></tag>
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsjava/ql/integration-tests/java/buildless-paths/test.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
importos
importos.path
Comment on lines +1 to +2

Choose a reason for hiding this comment

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

The imports foros andos.path are not used in this test file and should be removed.

Suggested change
importos
importos.path

Copilot uses AI. Check for mistakes.

deftest(codeql,java):
codeql.database.create(build_mode="none",codescanning_config="codescanning-config.yml")
6 changes: 6 additions & 0 deletionsjava/ql/integration-tests/java/buildless-paths/test.ql
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsjava/ql/lib/change-notes/2025-12-16-java-xml-paths.md
View file
Open in desktop
Original file line numberDiff line numberDiff 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.

[8]ページ先頭

©2009-2025 Movatter.jp