MA0022 - Return Task.FromResult instead of returning null Task<object> Sample() { return null; } // Should be Task<object> Sample() { return Task.FromResult(null); } Additional resources Enforcing asynchronous code good practices using a Roslyn analyzer