elvish/tools/check-fmt-md.sh
Qi Xiao a537d12f40 Restructure check targets in Makefile.
- Consolidate all checks into a "all-checks" target in the Makefile, and use it
  from tools/pre-push and ci.yml.

- Remove trivial make targets, including "generate" and all the individual check
  targets.

- Remove the trivial script tools/lint.sh.

- Rename the "checkstyle" scripts to "check-fmt", which is more specific.
2022-12-29 23:23:42 +00:00

9 lines
274 B
Bash
Executable File

#!/bin/sh -e
# Check if Markdown files are properly formatted without modifying them.
echo 'Markdown files that need changes:'
if find . -name '*.md' | grep -v '/node_modules/' | xargs go run src.elv.sh/cmd/elvmdfmt -width 80 -d | grep .; then
exit 1
fi
echo ' None!'