Conversation
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
|
@copilot The tests are failing because the diagnostic is not at the right location. The test expect on the type whereas it's reported on the parameter name. Can you fix it? |
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Fixed in ea8c591. The diagnostic now reports on the type syntax (ILogger) instead of the entire parameter by using DeclaringSyntaxReferences to access ParameterSyntax.Type.GetLocation(). |
|
@copilot Can you use DiagnosticParameterReportOptions.ReportOnType instead of a custom logic |
…ogic Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
|
@copilot can you regenerate the documentation, it seems the formatting is not ok |
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
|
@copilot Now the tests are failing for older targets. Can you surround the tests using primary constructor with #if CSHARP12_OR_GREATER |
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Done in beff2ec. Wrapped all 6 primary constructor tests with |
Implementation Complete ✅
New analyzer MA0180 has been successfully implemented to detect inconsistencies between containing classes and ILogger type parameters.
Completed Tasks:
Recent Changes:
#if CSHARP12_OR_GREATERdirectivesOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.