From bd5a5ad5aeaeb82f73cdb8674ff97b0511e3d38c Mon Sep 17 00:00:00 2001 From: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com> Date: Mon, 11 Dec 2023 23:43:12 -0500 Subject: [PATCH] fix: orphan render singular (#18) Signed-off-by: Christopher Phillips --- .grant.yaml | 17 +++++++++++++++++ cmd/grant/cli/internal/check/report.go | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.grant.yaml b/.grant.yaml index a316dfd..5d1a827 100644 --- a/.grant.yaml +++ b/.grant.yaml @@ -9,4 +9,21 @@ rules: reason: "GPL licenses are not allowed per xxx-xx company policy" exclusions: - "alpine-base-layout" # We don't link against this package so we don't care about its license + - pattern: "*BSD*" + name: "bsd-denied" + mode: "deny" + reason: "BSD licenses are not allowed per xxx-xx company policy" + exclusions: + - "1apt" + - "1bsdutils" + - "1dash" + - "1e2fsprogs" + - "1findutils" + - "1gpgv" + - "1init-system-helpers" + - "1libapt-pkg6.0" + - "1libblkid1" + - "1libcap2" + - "1libcom-err2" + - "1libdb5.3" diff --git a/cmd/grant/cli/internal/check/report.go b/cmd/grant/cli/internal/check/report.go index 456b678..7779781 100644 --- a/cmd/grant/cli/internal/check/report.go +++ b/cmd/grant/cli/internal/check/report.go @@ -146,9 +146,10 @@ func (r *Report) renderList(out io.Writer) error { } resulList.UnIndent() resulList.UnIndent() - renderOrphanPackages(resulList, res, true) } + } + renderOrphanPackages(resulList, res, true) } // segment the results into lists by user input