Skip to content

fix(runner): align target archive detection#58

Merged
shblue21 merged 2 commits into
mainfrom
fix/java-target-archive-detection
Jun 2, 2026
Merged

fix(runner): align target archive detection#58
shblue21 merged 2 commits into
mainfrom
fix/java-target-archive-detection

Conversation

@shblue21

@shblue21 shblue21 commented Jun 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8832f97d3b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

return false;
}
String lower = name.toLowerCase(Locale.ROOT);
return lower.endsWith(".class") || lower.endsWith(".jar") || lower.endsWith(".zip");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor archive-only folders before runner resolution

When the selected/resolved output folder contains only archives, such as a folder of JARs/ZIPs, the VS Code resolver returns NO_CLASS_TARGETS before this Java resolver runs: src/workspace/analysisTargetResolver.ts calls hasClassTargets, and src/workspace/outputResolver.ts only treats .class entries as evidence inside directories. As a result, the new recursive .zip target support is unreachable for archive-only folder/project analysis unless a loose class file is present alongside the archive.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1bdfa8503c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

for (const entry of entries) {
if (entry.isFile()) {
if (entry.name.toLowerCase().endsWith('.class')) {
if (isBytecodeTarget(entry.name)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep source-file resolution from accepting archive-only roots

When analyzing a .java file, this archive match now lets hasClassTargets(outputPath) succeed for an output directory that contains only a JAR/ZIP, so analysisTargetResolver returns an OK source-file target. The backend still receives the original .java path, and TargetResolver.addTargetsForJavaFile only looks for matching loose .class files by relative path or basename, never archives, so that path produces zero SpotBugs targets and a failed/no-response analysis instead of either analyzing the archive or reporting no class targets.

Useful? React with 👍 / 👎.

@shblue21 shblue21 changed the base branch from fix/sarif-workspace-relative-fullpath to main June 2, 2026 16:51
@shblue21 shblue21 merged commit dc5c8c1 into main Jun 2, 2026
2 checks passed
@shblue21 shblue21 deleted the fix/java-target-archive-detection branch June 11, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant