chainguard-dev / melange

build APKs from source code
Apache License 2.0
380 stars 83 forks source link

rewrite linting #1322

Closed imjasonh closed 4 days ago

imjasonh commented 4 days ago

Instead of --fail-on-lint-warning this adds flags for --lint-require and --lint-warn, which configures lint checks to warn and fail on (currently the default is only to require the new infodir linter)

Over time we can add more required checks, starting with them as warnings while we see how noisy that is.

Build configs can disable checks (they can no longer enable them), in which case a required check becomes a warning instead.

Linting already-built packages has no way to disable a check, since all we have is the package contents, and not the build context.