-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Enable same set of analyzers for C# tools that are used by the repo #81073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
and resolve reported violations
|
Tagging subscribers to this area: @dotnet/area-meta Issue Detailsand resolve reported violations
|
|
/cc @vitek-karas |
b607bca to
c2fcf38
Compare
c2fcf38 to
4c236d0
Compare
src/tools/illink/src/linker/Linker.Dataflow/MethodBodyScanner.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Tlakaelel Axayakatl Ceja <tlakaelel.ceja@microsoft.com>
vitek-karas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the XML reading fix this looks good.
| => obj is LocalKey inst && Equals (inst); | ||
|
|
||
| public override int GetHashCode () | ||
| => CaptureId is null ? SymbolEqualityComparer.Default.GetHashCode (Local) : CaptureId.GetHashCode (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: ideally the hash code would incorporate both the Local as well as the CaptureId.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are never set both at the same time.
src/tools/illink/src/ILLink.Tasks/CreateRuntimeRootDescriptorFile.cs
Outdated
Show resolved
Hide resolved
76edff0 to
d2fed25
Compare
and resolve reported violations