Skip to content

Validation: scoped lint and standalone CPD (#1486) - #39

Merged
joaodinissf merged 2 commits into
codex/validation-20260926-1484from
codex/validation-20260926-1486
Sep 26, 2026
Merged

joaodinissf merged 2 commits into
codex/validation-20260926-1484from
codex/validation-20260926-1486

Conversation

@joaodinissf

@joaodinissf joaodinissf commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

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-regression job.

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.

joaodinissf and others added 2 commits September 26, 2026 13:28
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
joaodinissf force-pushed the codex/validation-20260926-1486 branch from d80364a to 6fe8869 Compare September 26, 2026 11:31
@joaodinissf
joaodinissf force-pushed the codex/validation-20260926-1485 branch from 4988239 to 2c2dce3 Compare September 26, 2026 11:31
Base automatically changed from codex/validation-20260926-1485 to codex/validation-20260926-1484 September 26, 2026 12:02
@joaodinissf
joaodinissf merged commit 6fe8869 into codex/validation-20260926-1484 Sep 26, 2026
10 of 13 checks passed
@joaodinissf
joaodinissf deleted the codex/validation-20260926-1486 branch September 26, 2026 12:02
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