mirror of
https://github.com/docker/compose.git
synced 2026-11-17 13:45:39 +00:00
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> |
||
|---|---|---|
| .. | ||
| cache.go | ||
| cache_darwin.go | ||
| cache_unix.go | ||
| cache_windows.go | ||
| git.go | ||
| git_test.go | ||
| oci.go | ||
| oci_test.go | ||