dotnet / roslyn-analyzers

MIT License
1.55k stars 460 forks source link

warning CA1068: Method should take CancellationToken as the last parameter #7334

Open zotrb opened 2 weeks ago

zotrb commented 2 weeks ago

Analyzer

Diagnostic ID: CA1068

Describe the improvement

In methods that take params parameters, the params parameter must be last, so it is not possible to comply with this rule.

Describe suggestions on how to achieve the rule

This warning should not be raised if a method uses a params parameter.