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

Conversation

@smowton
Copy link
Contributor

@smowtonsmowton commentedDec 16, 2025
edited
Loading

Expected failure; requires concurrent internal PR.

@smowtonsmowton requested a review froma team as acode ownerDecember 16, 2025 11:44
CopilotAI review requested due to automatic review settingsDecember 16, 2025 11:44
@smowtonsmowtonforce-pushed thesmowton/admin/java-buildless-paths-test branch from1c05889 tob91f9acCompareDecember 16, 2025 11:47
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new integration test to verify that thepaths andpaths-ignore configuration options work correctly with Java buildless mode. The test ensures that only files from specified paths are included in the analysis while explicitly excluded paths are ignored.

  • Adds a test configuration that includes files frominclude/ directory while excluding files frominclude/exclude/ subdirectory
  • Creates test data files in both included and excluded paths to validate filtering behavior
  • Verifies that only files matching the path criteria are analyzed and appear in query results

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
java/ql/integration-tests/java/buildless-paths/test.qlQuery file that tests for Java source files and XML files to validate path filtering
java/ql/integration-tests/java/buildless-paths/test.pyTest script that creates a database with buildless mode and applies the codescanning config
java/ql/integration-tests/java/buildless-paths/test.expectedExpected output showing only files frominclude/ directory (excluding theexclude/ subdirectory)
java/ql/integration-tests/java/buildless-paths/codescanning-config.ymlConfiguration file defining path inclusion and exclusion patterns
java/ql/integration-tests/java/buildless-paths/sibling/ShouldNotAppear1.xmlTest data file outside included paths that should be filtered out
java/ql/integration-tests/java/buildless-paths/sibling/ShouldNotAppear1.javaTest data file outside included paths that should be filtered out
java/ql/integration-tests/java/buildless-paths/include/exclude/ShouldNotAppear3.xmlTest data file in explicitly excluded path that should be filtered out
java/ql/integration-tests/java/buildless-paths/include/exclude/ShouldNotAppear3.javaTest data file in explicitly excluded path that should be filtered out
java/ql/integration-tests/java/buildless-paths/include/ShouldAppear2.xmlTest data file that should appear in results based on path filters
java/ql/integration-tests/java/buildless-paths/include/ShouldAppear2.javaTest data file that should appear in results based on path filters

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

Comment on lines +1 to +2
import os
import os.path

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.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@smowton

[8]ページ先頭

©2009-2025 Movatter.jp