secret/Makefile
sneak 09b3a1fcdc Remove internal/macse package and fix all linter issues
- Remove internal/macse package (Secure Enclave experiment)
- Fix errcheck: handle keychain.DeleteItem error return
- Fix lll: break long lines in command descriptions
- Fix mnd: add nolint comment for cobra.ExactArgs(2)
- Fix nlreturn: add blank lines before return/break statements
- Fix revive: add nolint comment for KEYCHAIN_APP_IDENTIFIER constant
- Fix nestif: simplify UnlockersRemove by using new NumSecrets method
- Add NumSecrets() method to vault.Vault for counting secrets
- Update golangci.yml to exclude ALL_CAPS warning (attempted various
  configurations but settled on nolint comment)

All tests pass, code is formatted and linted.
2025-07-21 17:48:47 +02:00

29 lines
402 B
Makefile

export CGO_ENABLED=1
default: check
build: ./secret
# Simple build (no code signing needed)
./secret:
go build -v -o $@ cmd/secret/main.go
vet:
go vet ./...
test:
go test ./... || go test -v ./...
fmt:
go fmt ./...
lint:
golangci-lint run --timeout 5m
# Check all code quality (build + vet + lint + unit tests)
check: ./secret vet lint test
# Clean build artifacts
clean:
rm -f ./secret