Skip to content

RFE: Turn specific errors into warnings by config option #1335

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

Open
hroncok opened this issue Apr 16, 2025 · 1 comment
Open

RFE: Turn specific errors into warnings by config option #1335

hroncok opened this issue Apr 16, 2025 · 1 comment

Comments

@hroncok
Copy link
Contributor

hroncok commented Apr 16, 2025

I'd like to make spell checking a warning, not an error, because it generates a lot of noise in Fedora, and errors make rpmlint fail.

So I was wondering whether I can achieve this in our config, and it seems to be impossible at this moment.

Would it make sense to support setting which problems are reported as errors and which are reported as warnings by the configuration?

@danigm
Copy link
Member

danigm commented Apr 21, 2025

As far as I can tell, right now it's possible to do this in config:

            # If we have any badness configured then we 'stricten' and call the
            # result Error. Otherwise we downgrade the error to Warn.
            if badness > 0:
                level = 'E'
            elif level == 'E':
                level = 'W'

If you set the Scoring to 0 or lower it'll change the level to warning, something to add to the scoring.toml file.

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

2 participants