fix: add nolint comments for necessary global variables in internal/secret

Add nolint:gochecknoglobals comments for legitimate global variables:
- debugEnabled and debugLogger: Package-wide debug state management
- GPGEncryptFunc and GPGDecryptFunc: Required for test mocking
- getCurrentVaultFunc: Required to break import cycle between packages
This commit is contained in:
2025-07-09 12:47:51 -07:00
parent 38b450cbcf
commit d710323bd0
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ import (
)
var (
debugEnabled bool
debugLogger *slog.Logger
debugEnabled bool //nolint:gochecknoglobals // Package-wide debug state is necessary
debugLogger *slog.Logger //nolint:gochecknoglobals // Package-wide logger instance is necessary
)
func init() {