summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
9ea825d)
bin/check fails on a Go comment line over 80 columns, counted as
bin/reflow counts them, with tabs as 8 columns. gofumpt does not wrap
comments, and the line length linter would also count code lines, so a
long comment line passed every check.
+# Comment lines stay within the width of bin/reflow, with tabs as 8 columns.
+long=$(files '*.go' | while read -r file; do
+ expand -t8 "$file" | awk -v file="$file" 'length > 80 && /^[[:space:]]*\/\//{print file ":" FNR}'
+done)
+if [ -n "$long" ]; then
+ printf 'comment lines over 80 columns, run bin/reflow:\n%s\n' "$long" >&2
+ exit 1
+fi
+
golangci-lint run
go test -race ./...
files '*.nix' | xargs nixfmt --check
golangci-lint run
go test -race ./...
files '*.nix' | xargs nixfmt --check