Bazaar Style Checker

Check if the committed code conforms to a specific code style
Download

Bazaar Style Checker Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Stian Selnes
  • Publisher web site:
  • https://launchpad.net/~stianse

Bazaar Style Checker Tags


Bazaar Style Checker Description

Check if the committed code conforms to a specific code style Bazaar Style Checker is a 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.Configuration:The plugin is configured through the .conf-files bazaar.conf, locations.conf or branch.conf. Three options are available:- style_checker_command: The command to run in order to generate a file with correct code style. This option is defined as a template, e.g.uncrustify -q -c $ROOT/codestyle.cfg -f $IN -o $OUTwhere 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_file_filters: A pattern that specifies which files to check.- style_checker_action: The action to take when a code style violation is detected. Two possible values: "fail" or "warn". "fail" makes a commit fail if a violation is detected, while "warn" only prints a warning.A complete configuration may look like this:style_checker_command = uncrustify -q -c $ROOT/codestyle.cfg -f $IN -o $OUTstyle_checker_file_filters = *.c, *.hstyle_checker_action = fail Here are some key features of "Bazaar Style Checker": · 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. Requirements: · Bazaar Revision Control System


Bazaar Style Checker Related Software