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

Android Lint Severity Levels dont match #6

Open
pascaldornfeld opened this issue Sep 8, 2024 · 0 comments
Open

Android Lint Severity Levels dont match #6

pascaldornfeld opened this issue Sep 8, 2024 · 0 comments

Comments

@pascaldornfeld
Copy link

pascaldornfeld commented Sep 8, 2024

The mapping for lint severities is: Error->Blocker, Warning->Critical, Else->Info https://github.com/MobileUpLLC/CodeQuality-Android/blob/master/src/main/kotlin/ru/mobileup/codequality/input/LintParser.kt#L31

At the first glance this feels odd to me since I translate Error as something I must look into and Warning as something I should look into. Critical sounds like more than something i should look into.

When looking into the documentation which Severities exist:
Lint has info, warning, error and fatal https://developer.android.com/studio/write/lint.
Codeclimate has info, minor, major, critical and blocker https://docs.codeclimate.com/docs/issues#issue-severity.

We can also look how sonarqube is mapping lint to its severities (minor, major, critical), that are similar to codeclimate.
e.g. image
Warning -> Minor, Error -> Major

I suggest to adjust the severity mapping to:
info->info, warning->minor, error->major, fatal->critical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant