-
-
Notifications
You must be signed in to change notification settings - Fork 756
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 findings
a List<Finding2>
instead of a Map<RuleSet.Id, List<Finding2>>
#6884
Conversation
7f8a799
to
10597c9
Compare
9af6ba8
to
d9cca27
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6884 +/- ##
============================================
- Coverage 83.89% 83.80% -0.10%
+ Complexity 3939 3930 -9
============================================
Files 577 577
Lines 12109 12070 -39
Branches 2485 2476 -9
============================================
- Hits 10159 10115 -44
- Misses 722 729 +7
+ Partials 1228 1226 -2 ☔ View full report in Codecov by Sentry. |
10597c9
to
24908f0
Compare
d9cca27
to
e09f8e4
Compare
findings
a List<Finding2>
isntead of a Map<RuleSet.Id, List<Finding2>>
findings
a List<Finding2>
instead of a Map<RuleSet.Id, List<Finding2>>
1081af3
to
b9b2f10
Compare
e09f8e4
to
c2915e8
Compare
b9b2f10
to
f05e8bd
Compare
c2915e8
to
be1acb8
Compare
f05e8bd
to
e93b4ef
Compare
be1acb8
to
914885d
Compare
e93b4ef
to
8a36a60
Compare
914885d
to
1d5c86c
Compare
8707345
to
7efed9b
Compare
6480c15
to
0c1dc18
Compare
0c1dc18
to
9efde79
Compare
9efde79
to
2d20111
Compare
2d20111
to
ba87936
Compare
ba87936
to
01b3919
Compare
01b3919
to
170a7e6
Compare
170a7e6
to
8872f8c
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.
Amazing cleanup! Just one minor nit
...ugin/src/main/kotlin/io/github/detekt/compiler/plugin/internal/MessageCollectorExtensions.kt
Outdated
Show resolved
Hide resolved
f83a97c
to
d7d0bda
Compare
…er/plugin/internal/MessageCollectorExtensions.kt Co-authored-by: Nicola Corti <corti.nico@gmail.com>
This change simplifies a lot
Detektion
and all their related code. We were usingMap<RuleSet.Id, List<Finding2>>
as the only way to carry theRuleSet.Id
of a finding. Now we have that information insideFinding2
so we don't need this Map anymore.You can see that a lot of reports were just flattening that map because they don't need it. And the ones that really need it now it is as simple as add a
findings.groupBy { it.rule.ruleSetId }
.We should even check if we need to
sort
the findings at thecore
level. But I didn't want to touch that part right now.