>>> gosec: Building community/gosec 2.28.0-r0 (using abuild 3.18.0_rc5-r0) started Wed, 29 Jul 2026 19:19:23 +0000 >>> gosec: Validating /home/buildozer/aports/community/gosec/APKBUILD... >>> gosec: Analyzing dependencies... >>> gosec: Installing for build: build-base go (1/2) Installing go (1.26.5-r0) (2/2) Installing .makedepends-gosec (20260729.191924) Executing busybox-1.38.0-r4.trigger OK: 436.8 MiB in 105 packages >>> gosec: Cleaning up srcdir >>> gosec: Cleaning up pkgdir >>> gosec: Cleaning up tmpdir >>> gosec: Fetching https://distfiles.alpinelinux.org/distfiles/edge/gosec-2.28.0.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) wget: server returned error: HTTP/1.1 404 Not Found >>> gosec: Fetching gosec-2.28.0.tar.gz::https://github.com/securego/gosec/archive/refs/tags/v2.28.0.tar.gz Connecting to github.com (140.82.121.4:443) Connecting to codeload.github.com (140.82.121.10:443) saving to '/var/cache/distfiles/gosec-2.28.0.tar.gz.part' gosec-2.28.0.tar.gz. 100% |********************************| 380k 0:00:00 ETA '/var/cache/distfiles/gosec-2.28.0.tar.gz.part' saved /var/cache/distfiles/gosec-2.28.0.tar.gz: OK >>> gosec: Fetching https://distfiles.alpinelinux.org/distfiles/edge/gosec-2.28.0.tar.gz /var/cache/distfiles/gosec-2.28.0.tar.gz: OK >>> gosec: Unpacking /var/cache/distfiles/gosec-2.28.0.tar.gz... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git make build fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git make[1]: Entering directory '/home/buildozer/aports/community/gosec/src/gosec-2.28.0' fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git go build -ldflags " -X 'main.Version=' -X 'main.GitTag=' -X 'main.BuildDate=2026-07-29T19:19:27Z'" -o gosec ./cmd/gosec/ fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git go: downloading github.com/gookit/color v1.6.1 go: downloading github.com/anthropics/anthropic-sdk-go v1.57.0 go: downloading github.com/ccojocar/zxcvbn-go v1.0.4 go: downloading github.com/google/uuid v1.6.0 go: downloading google.golang.org/genai v1.63.0 go: downloading github.com/openai/openai-go/v3 v3.42.0 go: downloading go.yaml.in/yaml/v3 v3.0.4 go: downloading golang.org/x/sync v0.22.0 go: downloading golang.org/x/tools v0.48.0 go: downloading github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e go: downloading cloud.google.com/go v0.123.0 go: downloading cloud.google.com/go/auth v0.21.0 go: downloading github.com/google/go-cmp v0.7.0 go: downloading github.com/gorilla/websocket v1.5.3 go: downloading github.com/googleapis/gax-go/v2 v2.23.0 go: downloading cloud.google.com/go/compute/metadata v0.9.0 go: downloading golang.org/x/net v0.57.0 go: downloading google.golang.org/api v0.288.0 go: downloading go.opentelemetry.io/otel v1.44.0 go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0 go: downloading go.opentelemetry.io/otel/trace v1.44.0 go: downloading github.com/google/s2a-go v0.1.9 go: downloading github.com/googleapis/enterprise-certificate-proxy v0.3.18 go: downloading google.golang.org/grpc v1.82.0 go: downloading github.com/tidwall/sjson v1.2.5 go: downloading github.com/pb33f/ordered-map/v2 v2.3.1 go: downloading github.com/standard-webhooks/standard-webhooks/libraries v0.0.1 go: downloading github.com/invopop/jsonschema v0.14.0 go: downloading github.com/tidwall/gjson v1.19.0 go: downloading go.opentelemetry.io/otel/metric v1.44.0 go: downloading google.golang.org/protobuf v1.36.11 go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20260706201446-f0a921348800 go: downloading github.com/felixge/httpsnoop v1.1.0 go: downloading github.com/bahlo/generic-list-go v0.2.0 go: downloading github.com/buger/jsonparser v1.2.0 go: downloading go.yaml.in/yaml/v4 v4.0.0-rc.6 go: downloading github.com/tidwall/match v1.2.0 go: downloading github.com/tidwall/pretty v1.2.1 go: downloading golang.org/x/crypto v0.54.0 go: downloading golang.org/x/mod v0.38.0 go: downloading golang.org/x/text v0.40.0 go: downloading golang.org/x/sys v0.47.0 go: downloading github.com/go-logr/logr v1.4.3 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/go-logr/stdr v1.2.2 go: downloading go.opentelemetry.io/auto/sdk v1.2.1 make[1]: Leaving directory '/home/buildozer/aports/community/gosec/src/gosec-2.28.0' go: downloading github.com/onsi/ginkgo/v2 v2.32.0 go: downloading github.com/go-task/slim-sprig/v3 v3.0.0 go: downloading github.com/google/pprof v0.0.0-20260709232956-b9395ee17fa0 go: downloading github.com/Masterminds/semver/v3 v3.5.0 go: downloading github.com/stretchr/testify v1.11.1 go: downloading github.com/onsi/gomega v1.42.1 go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 go: downloading gopkg.in/yaml.v3 v3.0.1 Running Suite: gosec Suite - /home/buildozer/aports/community/gosec/src/gosec-2.28.0 ==================================================================================== Random Seed: 1785352831 Will run 289 of 289 specs ------------------------------ Analyzer when processing a package should not report an error if the package contains no Go files github.com/securego/gosec/v2/analyzer_test.go:49 • [0.002 seconds] ------------------------------ Analyzer when processing a package should report an error if the package fails to build github.com/securego/gosec/v2/analyzer_test.go:58 • [0.002 seconds] ------------------------------ Analyzer when processing a package should be able to analyze multiple Go files github.com/securego/gosec/v2/analyzer_test.go:74 • [0.188 seconds] ------------------------------ Analyzer when processing a package should be able to analyze multiple Go files concurrently github.com/securego/gosec/v2/analyzer_test.go:101 • [0.187 seconds] ------------------------------ Analyzer when processing a package should not race when analyzing G304 patterns across many packages concurrently (issue #1586) github.com/securego/gosec/v2/analyzer_test.go:124 • [2.450 seconds] ------------------------------ Analyzer when processing a package should be able to analyze multiple Go packages github.com/securego/gosec/v2/analyzer_test.go:169 • [0.363 seconds] ------------------------------ Analyzer when processing a package should find errors when nosec is not in use github.com/securego/gosec/v2/analyzer_test.go:193 • [0.295 seconds] ------------------------------ Analyzer when processing a package should find errors when nosec is not in use github.com/securego/gosec/v2/analyzer_test.go:209 • [0.270 seconds] ------------------------------ Analyzer when processing a package should find errors when nosec is not in use github.com/securego/gosec/v2/analyzer_test.go:225 • [0.295 seconds] ------------------------------ Analyzer when processing a package should report Go build errors and invalid files github.com/securego/gosec/v2/analyzer_test.go:241 • [0.160 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec line comment is present github.com/securego/gosec/v2/analyzer_test.go:269 • [0.301 seconds] ------------------------------ Analyzer when processing a package should not report errors when a disable directive is present github.com/securego/gosec/v2/analyzer_test.go:286 • [0.295 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec line comment is present github.com/securego/gosec/v2/analyzer_test.go:303 • [0.284 seconds] ------------------------------ Analyzer when processing a package should not report errors when a disable directive is present github.com/securego/gosec/v2/analyzer_test.go:320 • [0.279 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec line comment is present github.com/securego/gosec/v2/analyzer_test.go:337 • [0.263 seconds] ------------------------------ Analyzer when processing a package should not report errors when a disable directive is present github.com/securego/gosec/v2/analyzer_test.go:354 • [0.267 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec block comment is present github.com/securego/gosec/v2/analyzer_test.go:371 • [0.298 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec block comment is present github.com/securego/gosec/v2/analyzer_test.go:388 • [0.274 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec block comment is present github.com/securego/gosec/v2/analyzer_test.go:405 • [0.259 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:422 • [0.297 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:440 • [0.304 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:458 • [0.276 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:476 • [0.277 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:494 • [0.257 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:512 • [0.267 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec block and line comment are present github.com/securego/gosec/v2/analyzer_test.go:530 • [0.246 seconds] ------------------------------ Analyzer when processing a package should not report errors when only a nosec block is present github.com/securego/gosec/v2/analyzer_test.go:545 • [0.255 seconds] ------------------------------ Analyzer when processing a package should not report errors when a single line nosec is present on a multi-line issue github.com/securego/gosec/v2/analyzer_test.go:560 • [0.444 seconds] ------------------------------ Analyzer when processing a package should not report errors when a disable directive block and line comment are present github.com/securego/gosec/v2/analyzer_test.go:576 • [0.247 seconds] ------------------------------ Analyzer when processing a package should not report errors when only a disable directive block is present github.com/securego/gosec/v2/analyzer_test.go:591 • [0.249 seconds] ------------------------------ Analyzer when processing a package should not report errors when a single line nosec is present on a multi-line issue github.com/securego/gosec/v2/analyzer_test.go:606 • [0.449 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:622 • [0.298 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:639 • [0.297 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:656 • [0.276 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:673 • [0.284 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:690 • [0.262 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:707 • [0.268 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:724 • [0.416 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:743 • [0.421 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:762 • [0.400 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:781 • [0.394 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:800 • [0.377 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:819 • [0.369 seconds] ------------------------------ Analyzer when processing a package should not panic if a file can not compile github.com/securego/gosec/v2/analyzer_test.go:838 • [0.157 seconds] ------------------------------ Analyzer when processing a package should exclude a reportable file, if excluded by build tags github.com/securego/gosec/v2/analyzer_test.go:852 • [0.002 seconds] ------------------------------ Analyzer when processing a package should attempt to analyse a file with build tags github.com/securego/gosec/v2/analyzer_test.go:871 • [0.250 seconds] ------------------------------ Analyzer when processing a package should report issues from a file with build tags github.com/securego/gosec/v2/analyzer_test.go:892 • [0.282 seconds] ------------------------------ Analyzer when processing a package should process an empty package with test file github.com/securego/gosec/v2/analyzer_test.go:913 • [0.517 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:928 • [0.244 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite disable directive, and report issues github.com/securego/gosec/v2/analyzer_test.go:951 • [0.242 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:974 • [0.231 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite disable directive comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:997 • [0.238 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:1020 • [0.226 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite disable directive comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:1043 • [0.223 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues but they should not be counted github.com/securego/gosec/v2/analyzer_test.go:1066 • [0.291 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues but they should not be counted github.com/securego/gosec/v2/analyzer_test.go:1092 • [0.275 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues but they should not be counted github.com/securego/gosec/v2/analyzer_test.go:1118 • [0.258 seconds] ------------------------------ Analyzer when processing a package should not report errors when nosec tag is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1144 • [0.302 seconds] ------------------------------ Analyzer when processing a package should not report errors when disable directive is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1161 • [0.295 seconds] ------------------------------ Analyzer when processing a package should not report errors when nosec tag is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1178 • [0.280 seconds] ------------------------------ Analyzer when processing a package should not report errors when disable directive is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1195 • [0.278 seconds] ------------------------------ Analyzer when processing a package should not report errors when nosec tag is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1212 • [0.264 seconds] ------------------------------ Analyzer when processing a package should not report errors when disable directive is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1229 • [0.260 seconds] ------------------------------ Analyzer when processing a package should report errors when nosec tag is not in front of a line github.com/securego/gosec/v2/analyzer_test.go:1246 • [0.296 seconds] ------------------------------ Analyzer when processing a package should report errors when nosec tag is not in front of a line github.com/securego/gosec/v2/analyzer_test.go:1263 • [0.274 seconds] ------------------------------ Analyzer when processing a package should report errors when nosec tag is not in front of a line github.com/securego/gosec/v2/analyzer_test.go:1280 • [0.264 seconds] ------------------------------ Analyzer when processing a package should not report errors when rules are in front of nosec tag even rules are wrong github.com/securego/gosec/v2/analyzer_test.go:1297 • [0.293 seconds] ------------------------------ Analyzer when processing a package should not report errors when rules are in front of nosec tag even rules are wrong github.com/securego/gosec/v2/analyzer_test.go:1314 • [0.277 seconds] ------------------------------ Analyzer when processing a package should not report errors when rules are in front of nosec tag even rules are wrong github.com/securego/gosec/v2/analyzer_test.go:1331 • [0.265 seconds] ------------------------------ Analyzer when processing a package should report errors when there are nosec tags after a #nosec WrongRuleList annotation github.com/securego/gosec/v2/analyzer_test.go:1348 • [0.298 seconds] ------------------------------ Analyzer when processing a package should report errors when there are disable directives after a //gosec:disable WrongRuleList github.com/securego/gosec/v2/analyzer_test.go:1365 • [0.303 seconds] ------------------------------ Analyzer when processing a package should report errors when there are nosec tags after a #nosec WrongRuleList annotation github.com/securego/gosec/v2/analyzer_test.go:1382 • [0.281 seconds] ------------------------------ Analyzer when processing a package should report errors when there are disable directives after a //gosec:disable WrongRuleList github.com/securego/gosec/v2/analyzer_test.go:1399 • [0.279 seconds] ------------------------------ Analyzer when processing a package should report errors when there are nosec tags after a #nosec WrongRuleList annotation github.com/securego/gosec/v2/analyzer_test.go:1416 • [0.260 seconds] ------------------------------ Analyzer when processing a package should report errors when there are disable directives after a //gosec:disable WrongRuleList github.com/securego/gosec/v2/analyzer_test.go:1433 • [0.266 seconds] ------------------------------ Analyzer when processing a package should be possible to use an alternative nosec tag github.com/securego/gosec/v2/analyzer_test.go:1450 • [0.308 seconds] ------------------------------ Analyzer when processing a package should be possible to use an alternative nosec tag github.com/securego/gosec/v2/analyzer_test.go:1473 • [0.275 seconds] ------------------------------ Analyzer when processing a package should be possible to use an alternative nosec tag github.com/securego/gosec/v2/analyzer_test.go:1496 • [0.255 seconds] ------------------------------ Analyzer when processing a package should ignore vulnerabilities when the default tag is found github.com/securego/gosec/v2/analyzer_test.go:1519 • [0.243 seconds] ------------------------------ Analyzer when processing a package should ignore vulnerabilities when the default tag is found github.com/securego/gosec/v2/analyzer_test.go:1542 • [0.236 seconds] ------------------------------ Analyzer when processing a package should ignore vulnerabilities when the default tag is found github.com/securego/gosec/v2/analyzer_test.go:1565 • [0.225 seconds] ------------------------------ Analyzer when processing a package should be able to analyze Go test package github.com/securego/gosec/v2/analyzer_test.go:1588 • [0.288 seconds] ------------------------------ Analyzer when processing a package should be able to scan generated files if NOT excluded when using the rules github.com/securego/gosec/v2/analyzer_test.go:1613 • [0.055 seconds] ------------------------------ Analyzer when processing a package should be able to skip generated files if excluded when using the rules github.com/securego/gosec/v2/analyzer_test.go:1634 • [0.050 seconds] ------------------------------ Analyzer when processing a package should be able to scan generated files if NOT excluded when using the analyzes github.com/securego/gosec/v2/analyzer_test.go:1655 • [0.252 seconds] ------------------------------ Analyzer when processing a package should be able to skip generated files if excluded when using the analyzes github.com/securego/gosec/v2/analyzer_test.go:1678 • [0.251 seconds] ------------------------------ Analyzer should be able to analyze Cgo files github.com/securego/gosec/v2/analyzer_test.go:1702 • [0.803 seconds] ------------------------------ Analyzer when parsing errors from a package should return no error when the error list is empty github.com/securego/gosec/v2/analyzer_test.go:1719 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should properly parse the errors github.com/securego/gosec/v2/analyzer_test.go:1725 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should properly parse the errors without line and column github.com/securego/gosec/v2/analyzer_test.go:1745 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should properly parse the errors without column github.com/securego/gosec/v2/analyzer_test.go:1765 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should return error when line cannot be parsed github.com/securego/gosec/v2/analyzer_test.go:1785 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should return error when column cannot be parsed github.com/securego/gosec/v2/analyzer_test.go:1798 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should properly parse the errors with colons in path github.com/securego/gosec/v2/analyzer_test.go:1811 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should append error to the same file github.com/securego/gosec/v2/analyzer_test.go:1835 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should set the config github.com/securego/gosec/v2/analyzer_test.go:1862 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should reset the analyzer github.com/securego/gosec/v2/analyzer_test.go:1870 • [0.000 seconds] ------------------------------ Analyzer when appending errors should skip error for non-buildable packages github.com/securego/gosec/v2/analyzer_test.go:1880 • [0.000 seconds] ------------------------------ Analyzer when appending errors should add a new error github.com/securego/gosec/v2/analyzer_test.go:1889 • [0.000 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:1905 • [0.306 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:1925 • [0.308 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:1945 • [0.282 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:1965 • [0.280 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:1985 • [0.268 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:2005 • [0.259 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2025 • [0.243 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2045 • [0.243 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2065 • [0.232 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2085 • [0.235 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2105 • [0.217 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2125 • [0.212 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the rule is not included github.com/securego/gosec/v2/analyzer_test.go:2145 • [0.253 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the rule is excluded github.com/securego/gosec/v2/analyzer_test.go:2164 • [0.211 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the analyzer is not included github.com/securego/gosec/v2/analyzer_test.go:2183 • [0.288 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the analyzer is excluded github.com/securego/gosec/v2/analyzer_test.go:2202 • [0.243 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the analyzer is not included github.com/securego/gosec/v2/analyzer_test.go:2221 • [0.253 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the analyzer is excluded github.com/securego/gosec/v2/analyzer_test.go:2240 • [0.214 seconds] ------------------------------ Analyzer when tracking suppressions should track multiple suppressions if the violation is multiply suppressed github.com/securego/gosec/v2/analyzer_test.go:2259 • [0.250 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed on a struct filed github.com/securego/gosec/v2/analyzer_test.go:2277 • [0.390 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed on a struct filed github.com/securego/gosec/v2/analyzer_test.go:2298 • [0.386 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed on multi-lien issue github.com/securego/gosec/v2/analyzer_test.go:2319 • [0.256 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed on multi-lien issue github.com/securego/gosec/v2/analyzer_test.go:2350 • [0.248 seconds] ------------------------------ Analyzer when fixing issue #1240 - nosec with open bracket should suppress G115 when #nosec is at the end of an if line with bracket github.com/securego/gosec/v2/analyzer_test.go:2383 • [0.252 seconds] ------------------------------ Analyzer when fixing issue #1240 - nosec with open bracket should suppress G115 when #nosec is used with block comment before bracket github.com/securego/gosec/v2/analyzer_test.go:2422 • [0.256 seconds] ------------------------------ Analyzer when fixing issue #1240 - nosec with open bracket should suppress G115 in for loop with bracket and trailing comment github.com/securego/gosec/v2/analyzer_test.go:2454 • [0.184 seconds] ------------------------------ Analyzer when fixing issue #1240 - nosec with open bracket should suppress G115 in switch statement with bracket and trailing comment github.com/securego/gosec/v2/analyzer_test.go:2482 • [0.181 seconds] ------------------------------ Analyzer when using public API methods should have CheckRules method available github.com/securego/gosec/v2/analyzer_test.go:2513 • [0.161 seconds] ------------------------------ Analyzer when using public API methods should have CheckAnalyzers method available github.com/securego/gosec/v2/analyzer_test.go:2544 • [0.127 seconds] ------------------------------ Analyzer when using public API methods should handle CheckRules with no rules loaded github.com/securego/gosec/v2/analyzer_test.go:2574 • [0.119 seconds] ------------------------------ Analyzer when using public API methods should handle CheckAnalyzers with no analyzers loaded github.com/securego/gosec/v2/analyzer_test.go:2596 • [0.088 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives suppresses naked nosec when require-rules is disabled (default) github.com/securego/gosec/v2/analyzer_test.go:2649 • [0.235 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives does not suppress naked nosec when require-rules is enabled, and reports an error github.com/securego/gosec/v2/analyzer_test.go:2655 • [0.245 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives does not suppress legacy `block` directive when require-rules is enabled github.com/securego/gosec/v2/analyzer_test.go:2663 • [0.296 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives suppresses directive with rule ID when require-rules is enabled github.com/securego/gosec/v2/analyzer_test.go:2671 • [0.243 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives does not suppress directive without justification when require-justification is enabled github.com/securego/gosec/v2/analyzer_test.go:2679 • [0.237 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives does not suppress directive with empty justification when require-justification is enabled github.com/securego/gosec/v2/analyzer_test.go:2687 • [0.296 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives suppresses directive with rule ID and justification when both options are enabled github.com/securego/gosec/v2/analyzer_test.go:2695 • [0.293 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives enforces the same rules for the //gosec:disable form github.com/securego/gosec/v2/analyzer_test.go:2704 • [0.243 seconds] ------------------------------ Cli vflag test value must be empty as parameter value contains invalid character github.com/securego/gosec/v2/flag_test.go:15 • [0.000 seconds]invalid value "-incorrect" for flag -flag1: flag value cannot start with - Usage of flag1: -flag1 value ------------------------------ Cli vflag test value must be empty as parameter value contains invalid character without equal sign github.com/securego/gosec/v2/flag_test.go:25 invalid value " -incorrect" for flag -test2: flag value cannot start with - Usage of test2: -test2 value • [0.000 seconds] ------------------------------ Cli vflag test value must not be empty as parameter value contains valid character github.com/securego/gosec/v2/flag_test.go:35 • [0.000 seconds] ------------------------------ Import Tracker when tracking a file should parse the imports from file github.com/securego/gosec/v2/import_tracker_test.go:13 • [0.138 seconds] ------------------------------ Import Tracker when tracking a file should parse the named imports from file github.com/securego/gosec/v2/import_tracker_test.go:33 • [0.136 seconds] ------------------------------ Rule when using a ruleset should be possible to register a rule for multiple ast.Node github.com/securego/gosec/v2/rule_test.go:59 • [0.000 seconds] ------------------------------ Rule when using a ruleset should not register a rule when no ast.Nodes are specified github.com/securego/gosec/v2/rule_test.go:71 • [0.000 seconds] ------------------------------ Rule when using a ruleset should be possible to retrieve a list of rules for a given node type github.com/securego/gosec/v2/rule_test.go:76 • [0.000 seconds] ------------------------------ Rule when using a ruleset should register a suppressed rule github.com/securego/gosec/v2/rule_test.go:87 • [0.000 seconds] ------------------------------ Call List should not return any matches when empty github.com/securego/gosec/v2/call_list_test.go:19 • [0.000 seconds] ------------------------------ Call List should be possible to add a single call github.com/securego/gosec/v2/call_list_test.go:23 • [0.000 seconds] ------------------------------ Call List should be possible to add multiple calls at once github.com/securego/gosec/v2/call_list_test.go:34 • [0.000 seconds] ------------------------------ Call List should be possible to add pointer call github.com/securego/gosec/v2/call_list_test.go:48 • [0.000 seconds] ------------------------------ Call List should be possible to check pointer call github.com/securego/gosec/v2/call_list_test.go:55 • [0.000 seconds] ------------------------------ Call List should not return a match if none are present github.com/securego/gosec/v2/call_list_test.go:62 • [0.000 seconds] ------------------------------ Call List should match a call based on selector and ident github.com/securego/gosec/v2/call_list_test.go:67 • [0.000 seconds] ------------------------------ Call List should match a package call expression github.com/securego/gosec/v2/call_list_test.go:72 • [0.124 seconds] ------------------------------ Call List should match a package call expression github.com/securego/gosec/v2/call_list_test.go:97 • [0.113 seconds] ------------------------------ Call List should match a package call expression github.com/securego/gosec/v2/call_list_test.go:122 • [0.109 seconds] ------------------------------ Call List should match a call expression github.com/securego/gosec/v2/call_list_test.go:147 • [0.160 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve basic literal github.com/securego/gosec/v2/resolve_test.go:15 • [0.108 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve identifier github.com/securego/gosec/v2/resolve_test.go:35 • [0.105 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve variable identifier github.com/securego/gosec/v2/resolve_test.go:55 • [0.145 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve variable identifier with no declaration github.com/securego/gosec/v2/resolve_test.go:75 • [0.107 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve assign statement github.com/securego/gosec/v2/resolve_test.go:96 • [0.107 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve assign statement without rhs github.com/securego/gosec/v2/resolve_test.go:117 • [0.075 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve assign statement with unsolvable rhs github.com/securego/gosec/v2/resolve_test.go:139 • [0.075 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve a binary statement github.com/securego/gosec/v2/resolve_test.go:161 • [0.106 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve value spec github.com/securego/gosec/v2/resolve_test.go:180 • [0.106 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve value spec without values github.com/securego/gosec/v2/resolve_test.go:200 • [0.075 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve value spec with unsolvable value github.com/securego/gosec/v2/resolve_test.go:222 • [0.076 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve composite literal github.com/securego/gosec/v2/resolve_test.go:244 • [0.110 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve composite literal without elst github.com/securego/gosec/v2/resolve_test.go:263 • [0.075 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve composite literal with unsolvable elst github.com/securego/gosec/v2/resolve_test.go:283 • [0.076 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve call expressions github.com/securego/gosec/v2/resolve_test.go:303 • [0.075 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve call expressions github.com/securego/gosec/v2/resolve_test.go:322 • [0.143 seconds] ------------------------------ ReportInfo NewReportInfo should create a report with issues, metrics, and errors github.com/securego/gosec/v2/report_test.go:13 • [0.000 seconds] ------------------------------ ReportInfo NewReportInfo should handle empty issues github.com/securego/gosec/v2/report_test.go:35 • [0.000 seconds] ------------------------------ ReportInfo NewReportInfo should handle nil metrics and errors github.com/securego/gosec/v2/report_test.go:44 • [0.000 seconds] ------------------------------ ReportInfo WithVersion should set the gosec version github.com/securego/gosec/v2/report_test.go:56 • [0.000 seconds] ------------------------------ ReportInfo WithVersion should overwrite existing version github.com/securego/gosec/v2/report_test.go:64 • [0.000 seconds] ------------------------------ ReportInfo WithVersion should allow empty version string github.com/securego/gosec/v2/report_test.go:72 • [0.000 seconds] ------------------------------ Helpers when listing package paths should return the root directory as package path github.com/securego/gosec/v2/helpers_test.go:25 • [0.001 seconds] ------------------------------ Helpers when listing package paths should return the package path github.com/securego/gosec/v2/helpers_test.go:30 • [0.001 seconds] ------------------------------ Helpers when listing package paths should exclude folder github.com/securego/gosec/v2/helpers_test.go:35 • [0.001 seconds] ------------------------------ Helpers when listing package paths should exclude folder with subpath github.com/securego/gosec/v2/helpers_test.go:47 • [0.001 seconds] ------------------------------ Helpers when listing package paths should be empty when folder does not exist github.com/securego/gosec/v2/helpers_test.go:59 • [0.000 seconds] ------------------------------ Helpers when getting the root path should return the absolute path from relative path github.com/securego/gosec/v2/helpers_test.go:68 • [0.000 seconds] ------------------------------ Helpers when getting the root path should return the absolute path from ellipsis path github.com/securego/gosec/v2/helpers_test.go:76 • [0.000 seconds] ------------------------------ Helpers when excluding the dirs should create a proper regexp github.com/securego/gosec/v2/helpers_test.go:87 • [0.000 seconds] ------------------------------ Helpers when excluding the dirs should create a proper regexp for dir with subdir github.com/securego/gosec/v2/helpers_test.go:96 • [0.000 seconds] ------------------------------ Helpers when excluding the dirs should create no regexp when dir list is empty github.com/securego/gosec/v2/helpers_test.go:107 • [0.000 seconds] ------------------------------ Helpers when getting call info should return the type and call name for selector expression github.com/securego/gosec/v2/helpers_test.go:116 • [0.115 seconds] ------------------------------ Helpers when getting call info should return the type and call name for new selector expression github.com/securego/gosec/v2/helpers_test.go:150 • [0.114 seconds] ------------------------------ Helpers when getting call info should return the type and call name for function selector expression github.com/securego/gosec/v2/helpers_test.go:183 • [0.117 seconds] ------------------------------ Helpers when getting call info should return the type and call name for package function github.com/securego/gosec/v2/helpers_test.go:220 • [0.147 seconds] ------------------------------ Helpers when getting call info should return the type and call name when built-in new function is overridden github.com/securego/gosec/v2/helpers_test.go:250 • [0.109 seconds] ------------------------------ Helpers when getting binary expression operands should return all operands of a binary expression github.com/securego/gosec/v2/helpers_test.go:283 • [0.142 seconds] ------------------------------ Helpers when getting binary expression operands should return all operands of complex binary expression github.com/securego/gosec/v2/helpers_test.go:313 • [0.144 seconds] ------------------------------ Helpers when transforming build tags to cli build flags should return an empty slice when no tags are provided github.com/securego/gosec/v2/helpers_test.go:348 • [0.000 seconds] ------------------------------ Helpers when transforming build tags to cli build flags should return a single -tags flag when one tag is provided github.com/securego/gosec/v2/helpers_test.go:353 • [0.000 seconds] ------------------------------ Helpers when transforming build tags to cli build flags should combine multiple tags into a single -tags flag github.com/securego/gosec/v2/helpers_test.go:358 • [0.000 seconds] ------------------------------ Helpers when transforming build tags to cli build flags should trim and ignore empty tags github.com/securego/gosec/v2/helpers_test.go:363 • [0.000 seconds] ------------------------------ Helpers when finding module root should find go.mod in parent directory github.com/securego/gosec/v2/helpers_test.go:370 • [0.001 seconds] ------------------------------ Helpers when finding module root should find nearest go.mod in nested module github.com/securego/gosec/v2/helpers_test.go:384 • [0.001 seconds] ------------------------------ Helpers when getting integer values should extract integer from BasicLit github.com/securego/gosec/v2/helpers_test.go:407 • [0.108 seconds] ------------------------------ Helpers when getting integer values should return error for non-integer node github.com/securego/gosec/v2/helpers_test.go:434 • [0.104 seconds] ------------------------------ Helpers when getting float values should extract float from BasicLit github.com/securego/gosec/v2/helpers_test.go:463 • [0.105 seconds] ------------------------------ Helpers when getting float values should return error for non-float node github.com/securego/gosec/v2/helpers_test.go:490 • [0.074 seconds] ------------------------------ Helpers when getting char values should extract char from BasicLit github.com/securego/gosec/v2/helpers_test.go:519 • [0.106 seconds] ------------------------------ Helpers when getting char values should return error for non-char node github.com/securego/gosec/v2/helpers_test.go:546 • [0.075 seconds] ------------------------------ Helpers when getting string recursively should extract concatenated strings from binary expression github.com/securego/gosec/v2/helpers_test.go:575 • [0.110 seconds] ------------------------------ Helpers when getting string recursively should extract string from basic literal github.com/securego/gosec/v2/helpers_test.go:602 • [0.105 seconds] ------------------------------ Helpers when getting string recursively should return empty string for non-string node github.com/securego/gosec/v2/helpers_test.go:629 • [0.106 seconds] ------------------------------ Helpers when matching composite literals should match composite literal by type github.com/securego/gosec/v2/helpers_test.go:660 • [0.214 seconds] ------------------------------ Helpers when matching composite literals should return nil for non-matching type github.com/securego/gosec/v2/helpers_test.go:685 • [0.181 seconds] ------------------------------ Helpers when getting call objects should get call object for identifier github.com/securego/gosec/v2/helpers_test.go:712 • [0.110 seconds] ------------------------------ Helpers when getting call objects should get call object for selector expression github.com/securego/gosec/v2/helpers_test.go:737 • [0.142 seconds] ------------------------------ Helpers when getting call objects should return nil for non-call expression github.com/securego/gosec/v2/helpers_test.go:762 • [0.077 seconds] ------------------------------ Helpers when getting location information should return file name and line number from AST node github.com/securego/gosec/v2/helpers_test.go:791 • [0.076 seconds] ------------------------------ Helpers when working with environment variables should return environment variable value if set github.com/securego/gosec/v2/helpers_test.go:819 • [0.000 seconds] ------------------------------ Helpers when working with environment variables should return default value if environment variable not set github.com/securego/gosec/v2/helpers_test.go:827 • [0.000 seconds] ------------------------------ Helpers when working with environment variables should return default value for empty environment variable github.com/securego/gosec/v2/helpers_test.go:832 • [0.000 seconds] ------------------------------ Helpers when working with GOPATH should return list of GOPATHs github.com/securego/gosec/v2/helpers_test.go:842 • [0.000 seconds] ------------------------------ Helpers when working with GOPATH should return absolute paths github.com/securego/gosec/v2/helpers_test.go:847 • [0.000 seconds] ------------------------------ Helpers when getting package paths should return absolute path for existing directory github.com/securego/gosec/v2/helpers_test.go:856 • [0.000 seconds] ------------------------------ Helpers when getting package paths should return error for non-existent path github.com/securego/gosec/v2/helpers_test.go:866 • [0.000 seconds] ------------------------------ Helpers when getting package paths should handle relative paths github.com/securego/gosec/v2/helpers_test.go:871 • [0.000 seconds] ------------------------------ Helpers when getting call string arguments should extract string literals from call arguments github.com/securego/gosec/v2/helpers_test.go:880 • [0.140 seconds] ------------------------------ Helpers when getting call string arguments should extract string from identifier arguments github.com/securego/gosec/v2/helpers_test.go:906 • [0.145 seconds] ------------------------------ Helpers when getting call string arguments should return empty for non-string arguments github.com/securego/gosec/v2/helpers_test.go:935 • [0.147 seconds] ------------------------------ Helpers when getting identifier string values should resolve string from variable declaration github.com/securego/gosec/v2/helpers_test.go:962 • [0.104 seconds] ------------------------------ Helpers when getting identifier string values should resolve string from assignment statement github.com/securego/gosec/v2/helpers_test.go:989 • [0.104 seconds] ------------------------------ Helpers when getting identifier string values should resolve concatenated strings recursively github.com/securego/gosec/v2/helpers_test.go:1016 • [0.107 seconds] ------------------------------ Helpers when getting identifier string values should return empty for non-string identifiers github.com/securego/gosec/v2/helpers_test.go:1043 • [0.104 seconds] ------------------------------ Helpers when concatenating strings should concatenate literal strings github.com/securego/gosec/v2/helpers_test.go:1070 • [0.102 seconds] ------------------------------ Helpers when concatenating strings should concatenate strings from identifiers github.com/securego/gosec/v2/helpers_test.go:1099 • [0.107 seconds] ------------------------------ Helpers when concatenating strings should return false for non-addition operations github.com/securego/gosec/v2/helpers_test.go:1134 • [0.106 seconds] ------------------------------ Helpers when concatenating strings should handle nil expression github.com/securego/gosec/v2/helpers_test.go:1158 • [0.103 seconds] ------------------------------ Helpers when finding variable identities should find variables in binary expression github.com/securego/gosec/v2/helpers_test.go:1171 • [0.109 seconds] ------------------------------ Helpers when finding variable identities should return false when no variables found github.com/securego/gosec/v2/helpers_test.go:1206 • [0.074 seconds] ------------------------------ Helpers when finding variable identities should handle nested binary expressions github.com/securego/gosec/v2/helpers_test.go:1230 • [0.106 seconds] ------------------------------ Configuration when loading from disk should be possible to load configuration from a file github.com/securego/gosec/v2/config_test.go:20 • [0.000 seconds] ------------------------------ Configuration when loading from disk should return an error if configuration file is invalid github.com/securego/gosec/v2/config_test.go:28 • [0.000 seconds] ------------------------------ Configuration when saving to disk should be possible to save an empty configuration to file github.com/securego/gosec/v2/config_test.go:41 • [0.000 seconds] ------------------------------ Configuration when saving to disk should be possible to save configuration to file github.com/securego/gosec/v2/config_test.go:50 • [0.000 seconds] ------------------------------ Configuration when configuring rules should be possible to get configuration for a rule github.com/securego/gosec/v2/config_test.go:64 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should have a default global section github.com/securego/gosec/v2/config_test.go:78 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should save global settings to correct section github.com/securego/gosec/v2/config_test.go:85 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should find global settings which are enabled github.com/securego/gosec/v2/config_test.go:100 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should parse the global settings of type string from file github.com/securego/gosec/v2/config_test.go:107 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should parse the global settings of other types from file github.com/securego/gosec/v2/config_test.go:122 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should set and get exclude rules github.com/securego/gosec/v2/config_test.go:140 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should handle empty exclude rules github.com/securego/gosec/v2/config_test.go:156 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should overwrite previous exclude rules github.com/securego/gosec/v2/config_test.go:164 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should persist exclude rules in configuration github.com/securego/gosec/v2/config_test.go:179 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should handle nil configuration gracefully github.com/securego/gosec/v2/config_test.go:200 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with valid rules should create a filter with single rule github.com/securego/gosec/v2/path_filter_test.go:16 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with valid rules should create a filter with multiple rules github.com/securego/gosec/v2/path_filter_test.go:25 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with valid rules should handle empty rules slice github.com/securego/gosec/v2/path_filter_test.go:36 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with invalid rules should reject empty path github.com/securego/gosec/v2/path_filter_test.go:44 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with invalid rules should reject invalid regex github.com/securego/gosec/v2/path_filter_test.go:53 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with specific rule exclusions should exclude matching path and rule github.com/securego/gosec/v2/path_filter_test.go:78 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with specific rule exclusions should not exclude matching path with non-matching rule github.com/securego/gosec/v2/path_filter_test.go:83 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with specific rule exclusions should not exclude non-matching path github.com/securego/gosec/v2/path_filter_test.go:88 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with specific rule exclusions should handle nested paths correctly github.com/securego/gosec/v2/path_filter_test.go:93 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with wildcard rule exclusion should exclude any rule for matching path github.com/securego/gosec/v2/path_filter_test.go:111 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with wildcard rule exclusion should not exclude non-matching paths github.com/securego/gosec/v2/path_filter_test.go:118 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with Windows-style paths should normalize backslashes to forward slashes github.com/securego/gosec/v2/path_filter_test.go:133 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with nil or empty filter should not exclude anything with nil filter github.com/securego/gosec/v2/path_filter_test.go:140 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with nil or empty filter should not exclude anything with empty rules github.com/securego/gosec/v2/path_filter_test.go:145 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with complex regex patterns should match test files github.com/securego/gosec/v2/path_filter_test.go:163 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with complex regex patterns should match cmd or tools prefix github.com/securego/gosec/v2/path_filter_test.go:169 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with complex regex patterns should match mock/fake/stub directories github.com/securego/gosec/v2/path_filter_test.go:175 • [0.000 seconds] ------------------------------ PathExclusionFilter FilterIssues should filter matching issues github.com/securego/gosec/v2/path_filter_test.go:198 • [0.000 seconds] ------------------------------ PathExclusionFilter FilterIssues should handle empty issues slice github.com/securego/gosec/v2/path_filter_test.go:212 • [0.000 seconds] ------------------------------ PathExclusionFilter FilterIssues should preserve issue order github.com/securego/gosec/v2/path_filter_test.go:218 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should parse single rule github.com/securego/gosec/v2/path_filter_test.go:236 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should parse multiple rules separated by semicolon github.com/securego/gosec/v2/path_filter_test.go:244 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should handle wildcard rule github.com/securego/gosec/v2/path_filter_test.go:254 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should handle empty input github.com/securego/gosec/v2/path_filter_test.go:261 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should trim whitespace github.com/securego/gosec/v2/path_filter_test.go:267 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with invalid input should reject missing colon separator github.com/securego/gosec/v2/path_filter_test.go:277 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with invalid input should reject empty path github.com/securego/gosec/v2/path_filter_test.go:283 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with invalid input should reject empty rules github.com/securego/gosec/v2/path_filter_test.go:289 • [0.000 seconds] ------------------------------ PathExclusionFilter MergeExcludeRules should merge CLI and config rules with CLI first github.com/securego/gosec/v2/path_filter_test.go:298 • [0.000 seconds] ------------------------------ PathExclusionFilter MergeExcludeRules should handle empty CLI rules github.com/securego/gosec/v2/path_filter_test.go:312 • [0.000 seconds] ------------------------------ PathExclusionFilter MergeExcludeRules should handle empty config rules github.com/securego/gosec/v2/path_filter_test.go:321 • [0.000 seconds] ------------------------------ Error when creating errors should create a new error with correct fields github.com/securego/gosec/v2/errors_test.go:12 • [0.000 seconds] ------------------------------ Error when creating errors should handle zero values github.com/securego/gosec/v2/errors_test.go:20 • [0.000 seconds] ------------------------------ Error when creating errors should handle negative line and column numbers github.com/securego/gosec/v2/errors_test.go:28 • [0.000 seconds] ------------------------------ Ran 289 of 289 Specs in 42.161 seconds SUCCESS! -- 289 Passed | 0 Failed | 0 Pending | 0 Skipped PASS Ginkgo ran 1 suite in 47.763910671s Test Suite Passed >>> gosec: Entering fakeroot... >>> gosec*: Running postcheck for gosec >>> gosec*: Preparing package gosec... >>> gosec*: Stripping binaries >>> gosec*: Scanning shared objects >>> gosec*: Tracing dependencies... so:libc.musl-loongarch64.so.1 >>> gosec*: Package size: 52.4 MB >>> gosec*: Compressing data... >>> gosec*: Create checksum... >>> gosec*: Create gosec-2.28.0-r0.apk >>> gosec: Build complete at Wed, 29 Jul 2026 19:21:20 +0000 elapsed time 0h 1m 57s >>> gosec: Cleaning up srcdir >>> gosec: Cleaning up pkgdir >>> gosec: Cleaning up tmpdir >>> gosec: Uninstalling dependencies... (1/2) Purging .makedepends-gosec (20260729.191924) (2/2) Purging go (1.26.5-r0) Executing busybox-1.38.0-r4.trigger OK: 270.1 MiB in 103 packages >>> gosec: Updating the community/loongarch64 repository index... >>> gosec: Signing the index...