find_async_violations
Detects six async/await misuse patterns: sync-over-async, async void, missing await, fire-and-forget. Reports severity, location, method; skips tests and generated code.
Instructions
Detect six classes of async/await misuse across all production projects: sync-over-async (.Result, .Wait*, GetAwaiter().GetResult()), async void outside event handlers, missing await in async methods, and fire-and-forget tasks. Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Static analysis only — no fix suggestions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_async_violations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||