[severity:Other]
Detection of IDE0059 Remove unnecessary value assignment is not working when the statement is within a try/catch block. I have an .editorconfig file with the following dotnet_diagnostic.IDE0059.severity = error, and when the offending code is in a regular method it works fine, but when the offending statement is moved into a try/catch it no longer detects the issue. This detection also doesn't seem to work with top-level statements.
This issue has been moved from a ticket on Developer Community.
[severity:Other] Detection of IDE0059 Remove unnecessary value assignment is not working when the statement is within a try/catch block. I have an .editorconfig file with the following
dotnet_diagnostic.IDE0059.severity = error
, and when the offending code is in a regular method it works fine, but when the offending statement is moved into a try/catch it no longer detects the issue. This detection also doesn't seem to work with top-level statements.Original Comments
Feedback Bot on 10/30/2022, 07:51 PM:
(private comment, text removed)
Original Solutions
(no solutions)