compose/pkg
David Gageot 04b4a832dc chore(lint): add forbidigo rules to enforce t.Context() in tests
Add linter rules to prevent usage of context.Background() and
context.TODO() in test files - t.Context() should be used instead.

The rules only apply to *_test.go files, not production code.

Note: os.Setenv is not covered by forbidigo due to a limitation where
it only catches calls when the return value is assigned. However,
errcheck will flag unchecked os.Setenv calls.

Assisted-By: cagent
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-01-20 11:34:11 +01:00
..
api add 'configured' event at the end of model configuration phase 2025-12-15 10:14:21 +01:00
bridge fix: clean up temporary compose files after conversion 2026-01-05 09:01:56 +01:00
compose chore(lint): add forbidigo rules to enforce t.Context() in tests 2026-01-20 11:34:11 +01:00
dryrun chore: fix grammatical errors and improve clarity in code 2025-12-08 11:20:48 +01:00
e2e test: replace os.MkdirTemp with t.TempDir() 2026-01-20 11:34:11 +01:00
mocks next release will be major version v5.x 2025-11-13 09:32:43 +01:00
remote golangci-lint: use gci formatter instead of goimports 2025-12-01 12:21:50 +01:00
utils prefer use of slices.DeleteFunc 2025-05-27 15:16:50 +02:00
watch test: replace os.Setenv with t.Setenv() 2026-01-20 11:34:11 +01:00