Add .editorconfig, broaden .gitignore, drop dead Drone refs (closes #72)
check / check (push) Successful in 1m48s

Add the canonical .editorconfig verbatim from sneak/prompts. Merge secret
(.env, .env.*, *.key, *.pem), OS (.DS_Store, Thumbs.db), editor (*.swp,
*.swo, *~, .idea/, .vscode/), and Go (*.log, *.out, *.test) patterns into
.gitignore while preserving the repo-specific entries. Remove the stale
.drone.yml ignore entry and the DRONE_COMMIT_SHA branch from bin/gitrev.sh,
left over from the Gitea Actions migration.

bin/gitrev.sh remains correct: the GITREV env path (used in the Docker
build) and the git describe fallback (Gitea Actions and local developers)
both still produce output. bin/gitrev.sh stays tracked despite /bin/, and
git status --ignored confirms no tracked file became ignored.

The canonical .editorconfig sets space/4 for [*]; Go files are tab-indented
via gofmt, which editorconfig does not govern. Taken verbatim per the issue.

Model: opus-4-8
This commit is contained in:
2026-09-21 07:25:48 +00:00
parent 5683d0f4ff
commit 77d6a56a7e
4 changed files with 36 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[Makefile]
indent_style = tab
+21 -2
View File
@@ -10,5 +10,24 @@ modcache.tzst
# Generated manifest files # Generated manifest files
.index.mf .index.mf
# Stale files # Secrets
.drone.yml .env
.env.*
*.key
*.pem
# OS files
.DS_Store
Thumbs.db
# Editor files
*.swp
*.swo
*~
.idea/
.vscode/
# Go build artifacts
*.log
*.out
*.test
+3
View File
@@ -24,6 +24,9 @@ only thing left of the `chore/align-repo-policies` branch is the list below.
# Completed Steps # Completed Steps
- 2026-09-21: added the canonical `.editorconfig`, made `.gitignore` cover
secrets, OS, editor, and Go artifacts, and removed the dead Drone CI
references from `.gitignore` and `bin/gitrev.sh` (#72)
- 2026-08-09: added `.prettierrc`/`.prettierignore`, gave `script/fmt` and - 2026-08-09: added `.prettierrc`/`.prettierignore`, gave `script/fmt` and
`script/fmt-check` one shared prettier file set via `script/prettier`, dropped `script/fmt-check` one shared prettier file set via `script/prettier`, dropped
the `|| true` that hid prettier failures, and added a node-based Dockerfile the `|| true` that hid prettier failures, and added a node-based Dockerfile
-5
View File
@@ -1,10 +1,5 @@
#!/bin/bash #!/bin/bash
# #
if [[ ! -z "$DRONE_COMMIT_SHA" ]]; then
echo "${DRONE_COMMIT_SHA:0:7}"
exit 0
fi
if [[ ! -z "$GITREV" ]]; then if [[ ! -z "$GITREV" ]]; then
echo $GITREV echo $GITREV
else else