Results & Fixables
·
9 commits
to main
since this release
Fixed
- Fix-apply: proxy patches not generated: Rule ID mapping mismatch between Scanner and FixApply prevented proxy findings (
noProxyUsedInCommands,noProxyUsedForHeavyClasses) from reaching the fixer. Scanner checked fixable types using the processor's ruleId (e.g.,noProxyUsedInCommands) while the API returns the mapped name (proxyConfiguration). Both Scanner and FixApply now resolve mapped rule names viaPreparerInterface::MAPPED_RULESbefore checking fixable types — consistent with whatAbstractPreparer::isRuleFixable()already does - ProxyForHeavyClasses no longer recommends Proxy for Collections: Collections are stateful and need a fresh instance per use — the correct pattern is
CollectionFactory, not\Proxy.SpecificClassInjectionalready flags this correctly withcollectionMustUseFactory. Removed'Collection'from heavy class patterns and added an explicitTypes::isCollectionType()guard inisHeavyClass()
Added
- Result consolidation: All processors now merge consecutive-line findings for the same file into a single entry (e.g., two proxy issues on lines 15-16 become one entry with
startLine: 15,endLine: 16). Non-consecutive findings remain separate. Messages are joined with line breaks, metadata entries are collected into arrays, and severity takes the highest value. Consolidation logic lives inAbstractProcessor::consolidateResults()and is applied in all 13 processors that can produce per-file duplicates - SARIF
endLinesupport: Region objects now includeendLinewhen it differs fromstartLine, per the SARIF 2.1.0 spec - HTML line ranges: The Line column now displays ranges (e.g.,
15-16) for consolidated findings, and messages render with<br>separators
Changed
- DiPreparer:
processFiles()now handles both consolidated metadata (array of entries) and single-entry metadata, ensuring fix-apply works correctly with consolidated reports - FixApply
selectRules(): Interactive rule selection and credit cost lookup now use mapped rule names, fixing proxy rules not appearing in the--fix-by-rulemenu
What's Changed
- Bump actions/upload-pages-artifact from 4 to 5 by @dependabot[bot] in #9
- Bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #8
Full Changelog: v1.0.8...v1.0.9