Validation: scoped lint and standalone CPD (#1486) - #39
Merged
joaodinissf merged 2 commits intoSep 26, 2026
Merged
Conversation
CPD tokenizes sources under src/ and needs neither bytecode nor a resolved target platform, so the second lint invocation drops its compile goals. cpd.xml outputs are identical with and without the compile pass, verified at the current token threshold and at the PMD default of 100 (timestamp attributes aside). Measured locally (warm tree, JDK 21): 6.8s vs 44.3s at the current threshold; 4.5s vs 28.5s at threshold 100. In CI the invocation was 53s, ~40s of it redundant recompilation and JVM startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generalize compute-spotbugs-skip.sh to compute-analysis-skip.sh with a mode argument. The lint mode injects pmd.skip, cpd.skip and checkstyle.skip into unchanged modules and exports the expected reports and -pl/-am scope. SpotBugs keeps its existing scoping behavior through the same script. Compile the changed modules and their dependencies before PMD/Checkstyle so type resolution has the complete classpath. Run CPD separately without compilation. Shared build/config changes trigger a full scan in both lanes. Skip the report goals, merging and gating when the scope contains no analysable modules. Otherwise retain the common validation of every expected SARIF report, URI bases and rule descriptors. Count CPD duplications from the expected reports, including a single-module scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joaodinissf
force-pushed
the
codex/validation-20260926-1486
branch
from
September 26, 2026 11:31
d80364a to
6fe8869
Compare
joaodinissf
force-pushed
the
codex/validation-20260926-1485
branch
from
September 26, 2026 11:31
4988239 to
2c2dce3
Compare
Base automatically changed from
codex/validation-20260926-1485
to
codex/validation-20260926-1484
September 26, 2026 12:02
joaodinissf
merged commit Sep 26, 2026
6fe8869
into
codex/validation-20260926-1484
10 of 13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fork-only validation of upstream stack dsldevkit#1486
Final candidate:
6fe886964305f0395bda66be00ee6149d4fb0c26. The complete verification workflow passed.Before publication, this exact head passed 112 local report/merge/process cases, eight mutation checks, and its applicable signed Git scope scenarios. The reusable suites also run in the fast
analysis-regressionjob.The changes preserve Maven failures, reject incomplete SARIF, parse CPD XML, retain rule/taxonomy metadata, and emit repository-relative source locations. The separate deliberate finding probe verified two actual annotations at the expected source line; its failing SpotBugs check is intentional.
This draft is a validation resource in the owner's fork. It does not modify the upstream PR and is not a request to merge or publish. No snapshot, release, or deployment workflow was triggered. Any upstream publication requires separate approval.