From 6de3f1d7145eef4bc9a83a05f2ddadd9dd7e3773 Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Mon, 21 Sep 2026 09:56:15 +0200 Subject: [PATCH] Add .editorconfig, broaden .gitignore, drop dead Drone refs (closes #72) Add the canonical .editorconfig from sneak/prompts verbatim. Broaden .gitignore to cover secrets (.env, .env.*, *.key, *.pem), OS files, editor files, and Go artifacts while keeping every repo-specific entry; no tracked file becomes ignored, and bin/gitrev.sh stays tracked despite the /bin/ rule. Remove the stale .drone.yml ignore entry and the DRONE_COMMIT_SHA branch from bin/gitrev.sh, left from the Gitea Actions migration; the GITREV and git-describe paths still work. A reader may trip over .editorconfig saying four spaces for every file while Go files are tab-indented: gofmt governs Go, editorconfig does not, and the file is taken verbatim by policy. Disclosure: the worker's cold docker build hit the 10s test timeout in the gpg signature test; this change has no Go code, and that timeout is tracked by issues 67 and 62. Model: opus-4-8 (implementation); fable-5-1 (merge) --- .editorconfig | 12 ++++++++++++ .gitignore | 23 +++++++++++++++++++++-- TODO.md | 3 +++ bin/gitrev.sh | 5 ----- 4 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2fe0ce0 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitignore b/.gitignore index b95c22c..fbdcb30 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,24 @@ modcache.tzst # Generated manifest files .index.mf -# Stale files -.drone.yml +# Secrets +.env +.env.* +*.key +*.pem + +# OS files +.DS_Store +Thumbs.db + +# Editor files +*.swp +*.swo +*~ +.idea/ +.vscode/ + +# Go build artifacts +*.log +*.out +*.test diff --git a/TODO.md b/TODO.md index 06f9dba..488d7ab 100644 --- a/TODO.md +++ b/TODO.md @@ -24,6 +24,9 @@ only thing left of the `chore/align-repo-policies` branch is the list below. # 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 `script/fmt-check` one shared prettier file set via `script/prettier`, dropped the `|| true` that hid prettier failures, and added a node-based Dockerfile diff --git a/bin/gitrev.sh b/bin/gitrev.sh index cc44344..42a9e60 100644 --- a/bin/gitrev.sh +++ b/bin/gitrev.sh @@ -1,10 +1,5 @@ #!/bin/bash # -if [[ ! -z "$DRONE_COMMIT_SHA" ]]; then - echo "${DRONE_COMMIT_SHA:0:7}" - exit 0 -fi - if [[ ! -z "$GITREV" ]]; then echo $GITREV else