-
Notifications
You must be signed in to change notification settings - Fork 466
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
RS1024 has no code fix #4539
Comments
I can reproduce the issue with this version of the analyzer and a project targeting |
Yep it works when using the pre-release |
@Evangelink erm, why close if this regressed? I don't want to downgrade from stable to an unlisted prerelease.
Sounds like it worked in an earlier version and broke for
Is this a replacement package or what is its role? Everyone seems to be still referring to |
@weltkante I am not saying there was no regression, only that between the last released version and the code on master (included in this pre-release) the bug was fixed. The only remaining work is to publish a new version of the package. Regarding the package, it just depends on what rules you are looking for (see the readme). The package you are referencing is still valid (as far as I know). @mavasani Do you want to keep this ticket open? Is there any ETA for a new release of |
Couple of points to note:
|
If this is fixed in master I'm fine leaving this closed, and its not urgent to push the fix to nuget either, just isn't clear from the comments since they cited a preview version which is earlier than the one I'm using. |
@weltkante Hey sorry, I just got confused with versions in my head! I think I should just give up coding for today... So I confirm that the code-fix was offered in @mavasani I was mentioning I am going to reopen this ticket, we need a little more investigation. |
@Evangelink I believe the RS rules are coming to your project indirectly from |
Ran into this today. |
Analyzer
Diagnostic ID: RS1024:
Compare symbols correctly
Analyzer source
Using current public VS 2019 preview if it matters. The project is a .NET Standard 2.0 project, as this was suggested for code generators I assumed it would also be a good choice for porting analyzers.
Describe the bug
Was porting code from an older analyzer and got strange warnings I did not understand. Came across #3427 where I had to read the whole issue to understand what the warning even means. Part of the discussion was that it was supposed to have code fixes available, which it doesn't, and I was asked to open a separate issue for this.
Steps To Reproduce
Write an anlyzer which compares symbols, either via
==
orEquals
. (Note the repro code is not nullability enabled. Just compare two symbols like any old style analyzer would do.)Expected behavior
According to #3427 a code fix should be offered (making the warning easier to understand is #3427 itself)
Actual behavior
No code fix is offered
/cc @sharwell - opened a separate issue as requested
The text was updated successfully, but these errors were encountered: