Add code fixer for MA0137 and MA0138 (async suffix naming)#1068
Merged
Add code fixer for MA0137 and MA0138 (async suffix naming)#1068
Conversation
Agent-Logs-Url: https://github.com/meziantou/Meziantou.Analyzer/sessions/9ff97310-d412-4e32-8bb4-4e89caf936d8 Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add fixer for MA0137 and MA0138 using SymbolRenamer
Add code fixer for MA0137 and MA0138 (async suffix naming)
Mar 30, 2026
Owner
|
@copilot There are merge conflict, can you resolve them? |
Agent-Logs-Url: https://github.com/meziantou/Meziantou.Analyzer/sessions/93159310-2830-468d-befb-a01eb6067763 Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Contributor
Author
…e_test_methods config Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Contributor
Author
meziantou
approved these changes
Mar 30, 2026
This was referenced Mar 30, 2026
This was referenced Apr 13, 2026
Open
This was referenced Apr 20, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MethodsReturningAnAwaitableTypeMustHaveTheAsyncSuffixFixer.csthat handles MA0137 and MA0138 usingRenamer.RenameSymbolAsyncMethodsReturningAnAwaitableTypeMustHaveTheAsyncSuffixAnalyzerTests.cs:AsyncMethodWithoutSuffix_CodeFix_AddsAsyncSuffix(MA0137 regular method)MethodNotReturningAwaitableTypeWithSuffix_CodeFix_RemovesAsyncSuffix(MA0138 regular method)VoidLocalFunctionWithSuffix_CodeFix_RemovesAsyncSuffix(MA0138 local function)dotnet run --project src/DocumentationGeneratorto update markdown docsexclude_test_methodsconfig option + new tests)