siderolabs / conform

Policy enforcement for your pipelines.
Mozilla Public License 2.0
432 stars 45 forks source link

feat: implement `skipPaths` option for 'license' policy #121

Closed smira closed 5 years ago

smira commented 5 years ago

This allows to skip directories which shouldn't be checked (e.g. .git/) or directories which aren't readable.

While I was at it, bumped Go version, golangci-lint, refactored tests to avoid duplicated code and make linter happy.

Rearranged a bit Dockerfile to avoid go mod download when go.mod is not changed.

Signed-off-by: Andrey Smirnov smirnov.andrey@gmail.com