Repository navigation
chore(audit-fixes): fix .gitignore gaps + apply gofmt to all example files - #2
Merged
Merged
Conversation
Fixes CI 'Check example numbering' failure. 118 of 126 example directories had unformatted main.go files, causing every push to fail the gofmt gate in ci.yml.
The check-example-numbers.sh CI step counts 121 standalone examples (126 numeric dirs minus 5 letter sub-examples 97a-97e). The header quote in docs/EXAMPLES.md was stale at 114.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two fixes from the 2026-10-01 audit of :
1. .gitignore credential-backup gap (security fix)
only blocked , not . A backup file made during the session
(, 485 bytes, RSA key + trade password + WS secret) would be
picked up by a plain and committed as a new file to this public repo.
Fix: Added patterns to block all common env-backup naming conventions:
Confirmed: dry-run now ignores the backup file. History is clean — the
credential file was never committed.
2. gofmt applied to 118 example files
118 of 126 example files failed , causing the CI "Check example numbering"
step to fail on every push. Applied across all files (119 files changed,
+365/−352 lines).
Build / vet / test / race results (all pass)
Not fixed in this PR (requires owner action)
is in which I was not authorized to modify