FT-4 Make gofmt a required CI check and format the drifted files #55
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-verification
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-terminal!55
Loading…
Reference in a new issue
No description provided.
Delete branch "ft-4-gofmt-check"
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?
https://openproject.romaine.life/wp/FT-4
CI's
testjob now runsgofmt -l .and fails with the diff when any file is unformatted, and the three files that had drifted on main (tui/style.go,tui/sync.go,tui/tui.go) are formatted. A new.gitattributeschecks.gofiles out as LF on every machine, so the check doesn't depend on a runner'score.autocrlf: Git for Windows installs with ittrue, and gofmt reports every CRLF file as unformatted. The formatting is whitespace, import order and one added//line, with no behavior change; the gate failing on main's drift is shown on throwaway #54.