No JS linting, so the styleguide REPO_POLICIES binds us to is unenforced #120
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?
REPO_POLICIES.mdbinds this repo to a JS styleguide ("Useconstfor everything... Never usevar"), but nothing checks it.script/fmt-checkisgofmt -s -l .only, andscript/lintis golangci-lint — both Go-only.static/js/app.jsis covered by no tooling at all.This is not hypothetical: the review of #116 failed on five
vardeclarations instatic/js/app.jsthat a fully greenmake checkand a cache-defeatedscript/cibuildboth passed. The gate cannot see the file.The JS surface here is small, which is the argument for fixing it now while it is cheap rather than after it grows.
Definition of done
static/js/and runs as part ofscript/lint, somake checkand CI both fail on a styleguide violation.varinstatic/js/app.jsmakes the gate go red. Without that demonstration the fix is unverified.Implementation notes
REPO_POLICIES.mdnames, not to its own defaults.next, PR based onnext, single commit, title ending(closes #N).