-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Throughout TUnit.Analyzers/, diagnostics consistently point to the method location instead of the specific parameter that has the issue:
Diagnostic.Create(Rules.MissingTimeoutCancellationTokenAttributes,
context.Symbol.Locations.FirstOrDefault()) // Reports at method, not parameterWhen the parameter is the problem, the diagnostic should point to it:
parameter.Locations.FirstOrDefault() ?? context.Symbol.Locations.FirstOrDefault()CombinedDataSourceAnalyzer.cs line 93 already shows the correct pattern — apply it consistently.
Impact
Users are directed to the wrong location, making it harder to understand and fix the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers