Skip to content
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

SerialVersionUIDInSerializableClass - Update the error location #6114

Merged
merged 2 commits into from May 20, 2023

Conversation

atulgpt
Copy link
Contributor

@atulgpt atulgpt commented May 20, 2023

Fixes #6109

The error will be highlighted only at the class location when serialVersionUID is missing.
In case of the wrong type, or modifier of serialVersionUID error will be highlighted at property declaration Add TC asserting location and error msg
Add TC for nested classes

@cortinico cortinico changed the title Update the error location SerialVersionUIDInSerializableClass - Update the error location May 20, 2023
Error will be highlighted only at class location when `serialVersionUID` is missing. In case of wrong type, or modifier of `serialVersionUID` error will be highlighted at property declaration
Add TC asserting location and error msg
Add TC for nested classes
@atulgpt atulgpt force-pushed the fixes/6109/highlight-actionable-area branch from cc494e7 to b6ca359 Compare May 20, 2023 12:23
@codecov
Copy link

codecov bot commented May 20, 2023

Codecov Report

Merging #6114 (42b580c) into main (01fa957) will increase coverage by 0.03%.
The diff coverage is 90.62%.

@@             Coverage Diff              @@
##               main    #6114      +/-   ##
============================================
+ Coverage     84.86%   84.89%   +0.03%     
- Complexity     4011     4022      +11     
============================================
  Files           568      569       +1     
  Lines         13422    13449      +27     
  Branches       2368     2371       +3     
============================================
+ Hits          11390    11418      +28     
  Misses          871      871              
+ Partials       1161     1160       -1     
Impacted Files Coverage Δ
...rules/style/SerialVersionUIDInSerializableClass.kt 87.27% <90.62%> (+8.89%) ⬆️

... and 2 files with indirect coverage changes

@cortinico cortinico added this to the 1.23.0 milestone May 20, 2023
@cortinico cortinico merged commit f99ac58 into detekt:main May 20, 2023
23 checks passed
@atulgpt atulgpt deleted the fixes/6109/highlight-actionable-area branch May 20, 2023 14:23
antonis added a commit to wordpress-mobile/WordPress-Android that referenced this pull request Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SerialVersionUIDInSerializableClass highlights complete class when it finds warning
3 participants