This is a pre-comit hook for lizard.
For pre-commit: see https://github.com/pre-commit/pre-commit
For lizard: see https://github.com/terryyin/lizard
Add this to your .pre-commit-config.yaml:
- repo: https://github.com/johnor/pre-commit-lizard
rev: '' # Use the tag you want to point at
hooks:
- id: lizard-cppRun lizard on c++ files. Uses default settings in lizard and prints warnings.