Add .editorconfig and make .gitignore comprehensive #72
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Two required dotfile gaps, plus dead references to a decommissioned CI
system. Grouped because they are all small, mechanical, and touch nothing
else.
.editorconfigis absent. Policy: "All repos should have an.editorconfigenforcing the project's indentation settings", and theexisting-repo checklist names the canonical source. The repo has none.
.gitignoreis not comprehensive. Current contents in full:Policy requires it to cover secrets, OS files, and editor files. Missing:
.envand.env.*,*.key,*.pem,.DS_Store,Thumbs.db,*.swp,*.swo,*~,.idea/,.vscode/, and the Go-specific*.log,*.out,*.test. "Never commit secrets... must be in.gitignore. No exceptions."Dead Drone CI references. The repo migrated to Gitea Actions in
01124c1, but.gitignorestill carries a# Stale files/.drone.ymlentry, and
bin/gitrev.sh:4-6still branches on$DRONE_COMMIT_SHA.Definition of done
.editorconfigexists and is byte-identical tohttps://git.eeqj.de/sneak/prompts/raw/branch/main/.editorconfig..gitignorecovers secrets (.env,.env.*,*.key,*.pem), OS files(
.DS_Store,Thumbs.db), editor files (*.swp,*.swo,*~,.idea/,.vscode/), and Go artifacts (*.log,*.out,*.test),while keeping the existing repo-specific entries.
.drone.ymlignore entry and theDRONE_COMMIT_SHAbranch inbin/gitrev.share removed.make checkpasses andbin/gitrev.shstill produces correct outputunder Gitea Actions and outside CI.
TODO.mdupdated in the same commit.Implementation requirements
.editorconfigverbatim from the canonical source. Do nothand-author one to match what you think the repo does — if the canonical
file and the repo's actual style disagree, that is a finding to report,
not something to quietly reconcile by editing the canonical file.
.gitignorerather than replacing it./bin/,.index.mf,*.dockerimage, and thetzstentries are repo-specific and mustsurvive. Note
/bin/currently ignores the directory that holds thetracked
bin/gitrev.sh— confirm that file is still tracked and not newlyshadowed after your edit.
git status --ignored --porcelainand confirm no tracked file appears.DRONE_COMMIT_SHAbranch, readbin/gitrev.shend toend and confirm the Gitea Actions path and the local-developer path both
still work. Do not assume the remaining branch is correct just because the
Drone one is dead.
(closes #72).