Repository navigation
chore(LC0096): roadmap verdicts, pinning fixtures and the overload migration route - #695
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…route Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.
Summary
Feasibility verdicts for the four deferred LC0096 ideas. No analyzer behaviour change: the diff is test fixtures plus the rule doc.
Closes #519
varvs by-value semantics (by-value is a copy), and a callee body rewrite.[Obsolete])Proc(RecRef)afterRecRef.GetTable(Rec)needs dataflow tracing and a RecordRef is its own buffer, notRec.Rec.AssistEdit(xRec)/Rec.SetUpNewLine(xRec)is the deliberate BC idiom (262 call sites in Microsoft's code); "xRec semantics not needed" is callee intent, not derivable.xRec.Proc(xRec)is already reported (pinned by a fixture).X.Proc(X)sites).Changes
HasDiagnostic/XRecSelfArgument(xRec.DoSomething(xRec)is reported);NoDiagnostic/XRecArgumentInTable,XRecArgumentOnPage,RecordRefArgument; newNoDiagnosticWithDependencyProjecttest withCrossModuleCall(callee in aDependencyProjectsworkspace project,NoExceptionbefore the marker check). Each NoDiagnostic marker was confirmed to be a real guard by running it temporarily throughHasDiagnosticAtAllMarkers(each failed with "There is no issue reported for LC0096 at [span]").xRec,RecordRefand cross-module calls, and a test note.Note on the migration route
The inverted delegation (implementation in the parameterless procedure; the old overload calls
MyTable.DoSomething()on its parameter) does not compile on alocalprocedure: AL0161 "'DoSomething()' is inaccessible due to its protection level" (verified in the test harness). It compiles and stays LC0096-silent withinternal. The docs therefore useinternalfor the #323 shape and keep the copy-to-local overload only for a procedure that must staylocalwith a by-value parameter.Docs: ALCops/alcops.dev#246
🤖 Generated with Claude Code