Fix intrange and G101 linting issues

- Convert for loops to use Go 1.22+ integer ranges in generate.go and helpers.go
- Disable G101 false positives for test vectors and environment variable names
- Add file-level gosec disable for bip85_test.go containing BIP85 test vectors
- Add targeted nolint comments for legitimate test data and constants
Цей коміт міститься в:
2025-06-20 08:08:01 -07:00
джерело 985d79d3c0
коміт 434b73d834
29 змінених файлів з 197 додано та 280 видалено
+2 -1
Переглянути файл
@@ -1,6 +1,7 @@
//nolint:gosec // G101: Test file contains BIP85 test vectors, not real credentials
package bip85
//nolint:gosec,revive,unparam // Test file with hardcoded test vectors
//nolint:revive,unparam // Test file with BIP85 test vectors
import (
"bytes"