Hook for checking McCabe complexity
- fails if the complexity is greater than 12
- repo: git://github.com/upjohnc/precommit_mccabe_complexity
rev: 0.11.0
hooks:
- id: mccabe-complexity
args: ['--base_branch=master']
- need to have a commit on master for it to compare against (needed for beginning repos)
- need to run from a "feature" branch (not master) so that it can compare against master