Skip to content

feat(pkg/lint): log rule errors with level matching severity #1500

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxgio92
Copy link
Member

@maxgio92 maxgio92 commented Mar 17, 2025

Before this commit all rule errors were printed as info logs, leading to rule error and warnings being omitted even in case of a rule error leading to the whole lint command to fail.

This commit disables also rule error wrapping by rule id, in order to log each error with specific log level depending on the rule severity.

Fixes #1499

Before this commit all rule errors were printed as info logs, leading
to rule error and warnings being omitted even in case of a rule error
leading to the whole lint command to fail.

This commit disables also rule error wrapping by rule id, in order to
log each error with specific log level depending on the rule severity.

Signed-off-by: Massimiliano Giovagnoli <[email protected]>
@maxgio92 maxgio92 marked this pull request as ready for review March 17, 2025 12:27
@maxgio92 maxgio92 marked this pull request as draft March 17, 2025 12:27
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

Successfully merging this pull request may close these issues.

wolfictl lint doesn't print out actual error
1 participant