-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA1068: Allow caller attributes to come after cancellation token (#4228)
* CA1068: Allow caller attributes to come after cancellation token * Add caller attributes tests for CA1068 * Ignore caller attribute only if optional * Move Parameter.IsOptional check to HasCallerInformationAttribute * Fix typo * typo * Use GetOrCreateTypeByMetadataName Co-authored-by: Amaury Levé <evangelink@gmail.com> * Use AddIfNotNull * Apply suggestions from code review Co-authored-by: Amaury Levé <evangelink@gmail.com> * Update CancellationTokenParametersMustComeLastTests.cs * Update CancellationTokenParametersMustComeLast.cs * Fix * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Amaury Levé <evangelink@gmail.com> * Update src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/CancellationTokenParametersMustComeLast.cs * Update WellKnownTypeNames.cs * Use WellKnownTypeNames and move to compilation start Co-authored-by: Amaury Levé <evangelink@gmail.com>
- Loading branch information
1 parent
ca12f14
commit 193a3b6
Showing
3 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters