docker / sbom-cli-plugin

Plugin for Docker CLI to support SBOM creation using Syft
Apache License 2.0
150 stars 15 forks source link

Fix linting and bouncer issues #31

Open davidhay1969 opened 1 year ago

davidhay1969 commented 1 year ago

Resolving a few linting and bouncer issues

Signed-off-by: Dave Hay david_hay@uk.ibm.com

davidhay1969 commented 1 year ago

logrus.go change

internal/logger/logrus.go:10:2: SA1019: "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
    "io/ioutil"
    ^

event_loop.go change

cmd/event_loop.go:17:1: directive `// nolint:funlen` should be written without leading space as `//nolint:funlen` (nolintlint)
// nolint:funlen
^

.bouncer.yaml change

Unallowable license (OpenSSL) from "crypto/internal/boring"
failed validation
make: *** [Makefile:114: check-licenses] Error 1