compose/pkg/remote
Nicolas De Loof 2340121f0e lint: replace gocyclo with gocognit
Cognitive complexity (gocognit, threshold 30 — the linter default) fits
this codebase better than raw cyclomatic complexity: it barely charges
guard clauses and early returns, and penalizes nesting instead. As a
result 8 of the 21 //nolint:gocyclo suppressions become unnecessary,
while deeply nested functions gocyclo never flagged are now caught.

The 19 functions still above the threshold keep a suppression, each
marked FIXME to complete the migration by restructuring them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-08-18 10:42:37 +02:00
..
cache.go re-implement cache folder detection 2023-11-02 11:16:35 +01:00
cache_darwin.go add a copyright notice with original author 2023-11-02 11:16:35 +01:00
cache_unix.go feat(os): add FreeBSD support 2025-07-11 10:44:45 +02:00
cache_windows.go add a copyright notice with original author 2023-11-02 11:16:35 +01:00
git.go golangci-lint: use gci formatter instead of goimports 2025-12-01 12:21:50 +01:00
git_test.go fix(git): Add validation for Git subdirectory paths to prevent traversal 2025-10-30 10:08:29 +01:00
oci.go lint: replace gocyclo with gocognit 2026-08-18 10:42:37 +02:00
oci_test.go Test to check writeComposeFile detects invalid OCI artifact 2025-10-22 20:09:32 +02:00