]> git.proxmox.com Git - mirror_zfs.git/commit - Makefile.am
Add codecheck make target
authorMatthew Ahrens <mahrens@delphix.com>
Thu, 4 Oct 2018 20:10:10 +0000 (13:10 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Oct 2018 20:10:10 +0000 (13:10 -0700)
commitc23f8d4829ce50e92b60f69b3b80e5301db476b2
treeff4518b532dc96223d3f4180585a23116c4e7511
parent6e8b268875ff2bad66b797d1094a6eb1b694206a
Add codecheck make target

We'd like to have tooling that verifies code style, while ignoring the
commit message.  For example, code does not need to be signed off in
order to be tested.  Current workarounds are to run `git checkstyle` and
ignore the commit message errors, or to run `make cstyle shellcheck
flake8 mancheck testscheck`, and make sure that list stays updated.

Solution is to add a new make target, `codecheck` which does all the
code checks.  `checkstyle` is now simply `codecheck` + `commitcheck`.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #7985
Makefile.am