Repository navigation
[Dependencies] Updating FunFair.CodeAnalysis (Code analysis) to 7.2.13.2323 - #127
Conversation
|
Thanks for opening this pull request! Please make sure you have read the contributing guidelines. |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
5f8a893 to
a5c9d02
Compare
Multi-targeted projects (Attributes: netstandard2.0/net8.0/net10.0, Generics: netstandard2.0/netstandard2.1) had every TFM's compile write its Roslyn analyzer output to the same ErrorLog path ($(MSBuildProjectName).sarif), so concurrent csc processes corrupted each other's JSON. This also affected single-targeting projects (Generation, Models) once ErrorLog started keying on $(TargetFramework), since that property isn't resolved yet when Directory.Build.props (which imports Packaging.props) is evaluated for a project using the singular <TargetFramework> element. Fix: key ErrorLog on $(MSBuildProjectName).$(TargetFramework), and move that property (and ReportAnalyzer) into a new src/Directory.Build.targets, imported after the project body so $(TargetFramework) is always resolved. Verified locally: dotnet build -t:Rebuild -p:EnableSarif=True now produces 7 distinct, validly-parsing SARIF files (one per project/TFM) with no path collisions. This bug is pre-existing on main (confirmed failing there with the same "failed to parse ...Attributes.sarif" error at differing byte offsets, a classic race signature) - not introduced by the FunFair.CodeAnalysis bump this PR carries.
|
Fixed in d1dc05a - Root cause: Fix:
Verified locally: Note for reviewers: Attributes and Generics will now upload 2-3 separate code-scanning runs each (one per TFM, since Board moved to Development; CI will re-run on this push. |
Roslyn analyzer findings
|
|
Setup: cleared a stale in-progress rebase left in the container from PR #128 (unrelated branch), checked out this PR's branch (depends/update-funfair.codeanalysis/7.2.13.2323, clean, up to date with origin), no linked issues to sync labels from. Next: CI check. |
|
Setup: cleaned up a dirty working tree found on this branch (uncommitted edit to src/Directory.Build.targets refining the SARIF ErrorLog condition), confirmed already on depends/update-funfair.codeanalysis/7.2.13.2323 and up to date with origin, no linked issues to sync labels from, already assigned. Next: fix outstanding work (the uncommitted refinement needs to be committed and verified). |
|
Simplify clean - advancing to code review. Ran /simplify (4 parallel review agents: reuse, simplification, efficiency, altitude) against the diff; no actionable findings. Note: an unrelated uncommitted edit found in the working tree at session start (an unverified functional change to the SARIF ErrorLog condition) was discarded rather than committed - d1dc05a's own verification (7 distinct, validly-parsing SARIF files, matching TFM count) shows the guard it added wasn't fixing a real bug. |
|
Code review clean - advancing to security review. Reviewed the diff (FunFair.CodeAnalysis dependency bump across all csproj files, plus the SARIF ErrorLog path-collision fix in src/Directory.Build.targets); no application code changed, CI green, no findings. |
|
Security review clean, advancing to coverage check. Reviewed the diff (FunFair.CodeAnalysis dependency bump, PrivateAssets=All/analyzer-only, plus the SARIF ErrorLog path fix moving config from Packaging.props to a new Directory.Build.targets); all path components are build-time, repo-fixed MSBuild values with no attacker-controllable input. No findings. |
|
Coverage ratchet passed - advancing to Human Review. No |
|
PR is ready - marked out of draft and auto-merge enabled. All AI review phases (Simplify, Code Review, Security Review, Coverage) passed cleanly. |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Description
How Has This Been Tested
Types of changes
functionality to change)
Deployment Configuration Changes
Checklist
run:/script:body (workflow or composite action); pass it via step-levelenv:and reference$VAR(bash) orprocess.env.VAR(github-script) instead.