Git
Git Hooks Generator
Pick a hook type and the checks you want, get a working shell script with install instructions for raw hooks or Husky.
Hook type
Checks to include
#!/bin/sh # pre-commit hook - generated with ArchSetu # https://www.archsetu.com/tools/git-hooks-generator # Run `npm run lint` npm run lint || exit 1 exit 0
Install it
chmod +x .git/hooks/pre-commit # then paste the script into .git/hooks/pre-commit (no file extension) # Using Husky instead? Put the same script body in .husky/pre-commit
This is one question. ArchSetu answers it for a whole repository.
Call graph, dead code, blast radius and a health score, in about a minute.
Related tools
All Git tools →Git Commit Message LinterConventional Commits spec check with exact failure reasons, plus a picker for which type to use if you're not sure.CODEOWNERS GeneratorPath patterns to owners - valid CODEOWNERS file, bottom-to-top matching explained..gitattributes GeneratorLine endings, language diff settings, Git LFS, and vendored paths in one file.Branch Naming Convention CheckerCheck a branch name against type/description, Jira-style, or kebab-case.Squash vs Merge vs Rebase ExplainerWhat you care about to a recommended merge strategy, with the real tradeoffs shown.Merge Conflict Complexity EstimatorFile overlap and edit density between two branches to a conflict-risk score before you merge.
Was this tool helpful?