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
Make Entity.ktElement
no nullable
#7259
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7259 +/- ##
=========================================
Coverage 84.76% 84.76%
+ Complexity 3992 3991 -1
=========================================
Files 578 578
Lines 12026 12022 -4
Branches 2477 2469 -8
=========================================
- Hits 10194 10191 -3
Misses 606 606
+ Partials 1226 1225 -1 ☔ View full report in Codecov by Sentry. |
a7fa41f
to
27a45e2
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.
This might not be a good idea:
- Not all rule violations relate to a KtElement, for example trailing whitespace (whitespace is represented by a PsiElement)
- Rule violations like MaxLineLength can include multiple KtElements
I haven't looked into it, but do we actually need to include the KtElement in the Entity at all? A location, signature and location should be enough to report on issues.
27a45e2
to
35b89d8
Compare
We do. To implement the suppression feature. If |
Comments were partially addressed, need to re-review
1568646
to
726c394
Compare
726c394
to
69ccf0e
Compare
69ccf0e
to
4d9130b
Compare
4d9130b
to
84851ab
Compare
There is not a good reason to keep
Entity.ktElement
nullable. It just make the API messier and provide no value.