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

Pint severity levels are not mapped to checkstyle severity levels in checkstyle export #1225

Open
sboschman opened this issue Dec 12, 2024 · 0 comments

Comments

@sboschman
Copy link

The severity level exported in checkstyle xml format is the pint severity (pint code) / pint severity levels). So Bug and Informational are exported as severity level values in the checkstyle xml.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="4.3">
  <file name="rule.yaml">
    <error line="289" severity="Information" message="..."></error>
...

On the other hand the defined severity levels for checkstyle are: ignore, info, warning and error.

This requires some post pint modifications on the resulting pint checkstyle xml to be able to use the xml as input for other tools, e.g. reviewdog. As these tools expect the checkstyle severity levels and are unable to handle to pint severity levels.

My suggestion is to add a simple severity mapping in the checkstyle export:

pint severity checkstyle severity
Bug error
Warning warning
Informational info
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