aboutsummaryrefslogtreecommitdiff
path: root/hooked/src/bin/hooked-commit-msg.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make the pre-commit script pedantic and fix errorsMichael Gattozzi2019-12-101-0/+2
| | | | | | | | This commit really ups the level and quality of the Rust code by setting clippy to pedantic mode. It also fixes an issue where bash continued to run scripts even if something failed with a non-zero exit status. We also deny all warnings so as to actually fail the builds and the commit hooks. This should make sure code quality stays at a high level.
* Add commit message linting hook to the repoMichael Gattozzi2019-11-221-1/+45
| | | | | | | | | This adds a commit to handle git commit linting to enforce style by not allowing less than 10 or more than 50 chars for titles and less than or equal to 72 chars for the body. Chars are measured in number of graphemes as 50 chars represented in the terminal is what we want to use not 50 bytes. This will eventually be an installable hook for end users if they want it.
* Add hooked and empty inited hooks from the toolMichael Gattozzi2019-11-221-0/+3
This adds the hooked binary to the dev-suite repo as well as a stub for a program to be used in this workflow! Hooked works by adding the hooks into the repo and setting them to executable and linking them into the hooks directory under .git. This means hooks get to travel with the repo and are source controlled. All a dev needs to do is run the init command and hooked will symlink them all for them. No need to remember how ln works. It's all handled for you. Future work will iterate about what hooks that dev-suite supplies as part of the script. This will involve configuration files and per repo settings are something that will need to be thought about. Closes Issue #2