-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forward CancellationToken analyzer and code fixer (#5923)
* Add analyzer to forward context.CancellationToken to methods * Rebase fixups & fix cancellation diagnostics * Fixer now supports explicit param name prefix when adding 1 parameter to the invocation is not in the right position * Remove unnecessary pre-emptive token checks * minor tweak * remove SharedAttribute from analyzer because 🤷 * remove using 🤦 * fixer - added comment and did minor reformatting * aligned property name * upgrade to analyzers to Microsoft.CodeAnalysis.CSharp.Workspaces 2.10.0 and netstandard1.3 * make method static in AwaitOrCaptureTasksAnalyzer * made agreed changes to ForwardCancellationTokenAnalyzer plus some other tweaks * downgrade to Microsoft.CodeAnalysis.CSharp.Workspaces 2.4.0 * apply patterns from Particular.CodeAnalyzers tests plus minor tweaks * Coalesce a bunch of tests * Analyze from the method level first * AnalysisTarget stuff no longer necessary * change _All The Things!_ * Restore a bunch of this test that was cut out * Random Func detail * Fixer shouldn't care if it's a message handler * Extra param, make it more interesting * add note about upgrading Microsoft.CodeAnalysis.CSharp.Workspaces Co-authored-by: Adam Ralph <adam@adamralph.com>
- Loading branch information
1 parent
669ac8a
commit 527f9c1
Showing
18 changed files
with
1,813 additions
and
379 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
Oops, something went wrong.