Skip to content

feat(cli): Add experimental flags#101

Merged
misonijnik merged 6 commits intomainfrom
saloed/tmp
Apr 22, 2026
Merged

feat(cli): Add experimental flags#101
misonijnik merged 6 commits intomainfrom
saloed/tmp

Conversation

@Saloed
Copy link
Copy Markdown
Contributor

@Saloed Saloed commented Apr 22, 2026

No description provided.

@Saloed Saloed requested a review from misonijnik April 22, 2026 10:42
Fix silent MarkHidden on the scan command: flags registered with
scanCmd.Flags() were being hidden via scanCmd.PersistentFlags(), whose
Lookup could not find them, so the MarkHidden error was swallowed and
--code-flow-limit, --approximations-config, --dataflow-approximations,
--track-external-methods, and --debug-fact-reachability-sarif all
leaked into the default help output.

Separate analyzer domain logic from the cmd layer:
- internal/analyzer/exit.go owns exit-code constants, ExitMessage,
  Error type, and Classify (no I/O); scan.go handles presentation
- java.DeriveJavacPath moves to internal/utils/java/detection.go and
  is now Windows-aware
- utils.ExtractZipPrefix + copyZipEntry consolidate zip-prefix
  extraction with deferred cleanup, removing four repeated
  os.RemoveAll calls
- compile_approximations.go is split into collectJavaSources,
  resolveJavacPath, buildApproxClasspath, runJavac
@misonijnik misonijnik merged commit 86e5b86 into main Apr 22, 2026
13 checks passed
@misonijnik misonijnik deleted the saloed/tmp branch April 22, 2026 12:25
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.

2 participants