lefthook.yml 528 B

1234567891011121314151617
  1. pre-commit:
  2. scripts:
  3. lint:
  4. tags: lint
  5. commands:
  6. lint-clang:
  7. tags: lint
  8. run: command -v clang-format && find . -not -path "./.tmp/*" -not -path "./.git/*" \( -iname "*.h" -o -iname "*.c" -o -iname "*.cpp" \) | xargs clang-format --dry-run --Werror
  9. pre-push:
  10. scripts:
  11. test:
  12. tags: test
  13. commands:
  14. check-links:
  15. tags: docs
  16. run: command -v lychee && lychee docs README.md CHANGELOG.md --exclude localhost --exclude twitter.com --exclude x.com --exclude-path docs/index.html