Plugin for Bazaar which goal is to check if the committed code conforms to a specific code style. An external code style program are used for the style checking, such as "GNU Indent" or "Unqrustify". It can also correct the files that does not conform to the given style.
Features:
- Check if changed files violates a defined coding style.
- Uses an external program to check code style, such as GNU Indent, Uncrustify or similar.
- Fail the commit or print a warning when a violation is detected.
- Fix code style for one file, only modified or all all files using the "bzr style-check" command.
Configuration:
The plugin is configured through the .conf-files bazaar.conf, locations.conf or branch.conf. Three options are available:
- style_checker_
defined as a template, e.g.
uncrustify -q -c $ROOT/codestyle.cfg -f $IN -o $OUT
where IN and OUT are mandatory and specifies the input and output files of the command. ROOT is optional and is root
directory of the working tree.
- style_checker_
- style_checker_
"fail" makes a commit fail if a violation is detected, while "warn" only prints a warning.
A complete configuration may look like this:
style_
style_
style_
Project information
- Licence:
- GNU GPL v3
View full history Series and milestones
trunk series is the current focus of development.
All code Code
- Version control system:
- Bazaar
- Programming languages:
- python