We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Microsoft.Maintainability.Analyzers
ReviewUnusedParameters
The following code triggers CA1801 on the count parameter of the TheMethod method:
TheMethod
using System.Collections.Generic; namespace ClassLibrary4 { public class Class1 { public void TheMethod(int count) { var testParams = new OtherClass(new List<int[]> { new[] { count } }); } } public class OtherClass { #pragma warning disable CA1801 // Review unused parameters public OtherClass( List<int[]> intses) #pragma warning restore CA1801 // Review unused parameters { } } }
Analyzer could not flag this as a problem.
error CA1801: Parameter count of method TheMethod is never used. Remove the parameter or use it in the method body.
The text was updated successfully, but these errors were encountered:
I think there is an existing IOperation bug for this.
Sorry, something went wrong.
Dupe of dotnet/roslyn#8884 (comment)
No branches or pull requests
Analyzer package
Microsoft.Maintainability.Analyzers
Analyzer
ReviewUnusedParameters
Repro steps
The following code triggers CA1801 on the count parameter of the
TheMethod
method:Expected behavior
Analyzer could not flag this as a problem.
Actual behavior
error CA1801: Parameter count of method TheMethod is never used. Remove the parameter or use it in the method body.
The text was updated successfully, but these errors were encountered: