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:
@@ -20,11 +20,11 @@ import (
|
||||
var (
|
||||
// GPGEncryptFunc is the function used for GPG encryption
|
||||
// Can be overridden in tests to provide a non-interactive implementation
|
||||
GPGEncryptFunc = gpgEncryptDefault
|
||||
GPGEncryptFunc = gpgEncryptDefault //nolint:gochecknoglobals // Required for test mocking
|
||||
|
||||
// GPGDecryptFunc is the function used for GPG decryption
|
||||
// Can be overridden in tests to provide a non-interactive implementation
|
||||
GPGDecryptFunc = gpgDecryptDefault
|
||||
GPGDecryptFunc = gpgDecryptDefault //nolint:gochecknoglobals // Required for test mocking
|
||||
|
||||
// gpgKeyIDRegex validates GPG key IDs
|
||||
// Allows either:
|
||||
|
||||
Reference in New Issue
Block a user