Skip to content
Common pre-commit hooks
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.markdownlintrc
.pre-commit-config.yaml
.pre-commit-hooks.yaml
.spelling
LICENSE
README.md
package.json
pre-commit-circleci-validate
pre-commit-gen-docs
pre-commit-markdown-toc

README.md

Truss pre-commit hooks

Regenerate with "pre-commit run -a markdown-toc"

circleci-validate

Validate CircleCI config yaml located in .circleci/config.yml. In order for this to run you will need to install the circleci CLI tool locally with:

brew install circleci

The script will not run the validation if the environment variable CI is set, which means you can safely run this on CircleCI and it will be a no-op.

gen-docs

Generate a Docs Index using adr-log. It will modify files with comments in it per the docs on that module.

By default it will only look in the docs/ directory of your repo. You can pass in different directories by using the args parameter like this: args: ["docs/adr", "docs/rfc"]

markdown-toc

Generate a Table of Contents using markdown-toc. It will modify files with comments in it per the docs on that module.

mdspell

Run spellcheck on markdown files using markdown-spellcheck. It will ignore words listed in a .spelling file in your repo.

You can’t perform that action at this time.