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

Enable linters to warn (via callback) instead of just failing. #739

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Oct 4, 2023

This also adds the flag --fail-on-lint-warning to force all active linters to error instead of simply printing their message.

Melange Pull Request Template

Functional Changes

  • This change can build all of Wolfi without errors (describe results in notes)

Notes:

All linters are now warn-only.

SCA Changes

  • [N/A] Examining several representative APKs show no regression / the desired effect (details in notes)

Notes:

This doesn't touch APK generation at all.

Linter

  • The new check is clean across Wolfi
  • The new check is opt-in or a warning

Notes:

All checks are warnings.

@mattmoor mattmoor force-pushed the support-linter-warnings branch 2 times, most recently from 319d760 to 1ece998 Compare October 4, 2023 22:52
docs/md/melange_build.md Outdated Show resolved Hide resolved
This also adds the flag `--fail-on-lint-warning` to force all active linters to error instead of simply printing their message.

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
@kaniini kaniini merged commit b54700f into chainguard-dev:main Oct 4, 2023
26 checks passed
@mattmoor mattmoor deleted the support-linter-warnings branch October 4, 2023 23:34
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.

2 participants