-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CQRS handlers name analyzer + code action #608
CQRS handlers name analyzer + code action #608
Conversation
return await Renamer.RenameSymbolAsync( | ||
solution, | ||
classSymbol, | ||
new(RenameFile: true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank god (or roslyn) for this option
e7dbf79
to
a7888a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will command validators also be handled in a similar way?
src/Tools/LeanCode.CodeAnalysis/Analyzers/EnsureCQRSHandlersFollowNamingConvention.cs
Show resolved
Hide resolved
f402ea1
to
91e1b11
Compare
Test Results 33 files ± 0 113 suites +4 59s ⏱️ -1s Results for commit d4f5ad4. ± Comparison against base commit 00a3e79. This pull request removes 3 and adds 16 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## v8.0-preview #608 +/- ##
================================================
+ Coverage 65.19% 66.30% +1.11%
================================================
Files 211 217 +6
Lines 4864 5069 +205
Branches 303 322 +19
================================================
+ Hits 3171 3361 +190
- Misses 1602 1611 +9
- Partials 91 97 +6 ☔ View full report in Codecov by Sentry. |
@Dragemil We did not discuss adding similar analyzer for command validators but now when you mention it I think it can be added to the backlog. Btw there is already quick action which will add command validator, but in our case we often copy code from other commands so rename might be also useful. cc: @lukaszgarstecki |
ded6874
to
98498d7
Compare
I'd say a rename + quickfix can also be helpful for CV. The current analyzer tackles only the case when it's missing, I believe having similar validator as for CH, QH and OH would be nice. Will that be a lot of work @wojtek2288 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'd say that we can add CV rule and fix in this PR if this is not too much trouble
a0afabf
to
b8619dc
Compare
9195214
to
b8619dc
Compare
Need to wait for #618. As bumping dotnet to 8.0.100 fixes this issue: dotnet/sdk#36434 |
b8619dc
to
d4f5ad4
Compare
No description provided.