mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-11-27 15:01:22 +08:00
a537d12f40
- 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.
9 lines
274 B
Bash
Executable File
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!'
|