wp-dev-lib
which includes a pre-commit
hook that runs before a commit is made, blocking a commit when it encounters issues.--no-verify
.pre-commit
hook is not installed automatically when a Git repo is cloned. You can find more information in the automate section of the wp-dev-lib
repository on how to install the the pre-commit
hook. As well, you can configure your IDE integration for code checkers.wp-dev-lib
repository to configure it. wp-dev-lib
can be installed with either Composer or NPM, which makes it simple to use in any project.wp-dev-lib
makes this very easy!