detekt / detekt

Static code analysis for Kotlin
https://detekt.dev
Apache License 2.0
6.1k stars 758 forks source link

SwallowedException: fix false positive when exception is used as a receiver #7288

Closed t-kameyama closed 1 month ago

t-kameyama commented 1 month ago

Fixes #7281

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 75.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 84.77%. Comparing base (633d458) to head (b3715f9). Report is 1 commits behind head on main.

Files Patch % Lines
...osch/detekt/rules/exceptions/SwallowedException.kt 75.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7288 +/- ## ============================================ - Coverage 84.77% 84.77% -0.01% + Complexity 3990 3989 -1 ============================================ Files 578 578 Lines 12027 12026 -1 Branches 2478 2477 -1 ============================================ - Hits 10196 10195 -1 Misses 606 606 Partials 1225 1225 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

detekt-ci commented 1 month ago
Warnings
:warning: This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

Generated by :no_entry_sign: dangerJS against b3715f9c71a593da03059aafd4dc9554bfa4a65c