[Scons-users] style guide cheker
Philipp Kraus
philipp.kraus at flashpixx.de
Wed Jan 2 03:26:37 EST 2013
Hello,
I need some ideas for the following problem: I use Scons for building C/C++ programs & shared libraries, but at the moment I would like to define a style guide of the code structure eg new line at the end of each file, camel-case naming etc
I have searched for a tool, which support custom rules for define a style and checks my code base again these rules. I have found a Python script for the Google C++ Style Guide and this is a nice solution, but it does not support custom rules or changing defined rules.
I love Scons and I have written some builders & emitters, so at the moment I would like to implementate an own style guide checker with Scons. I prefere a flexible definition of the rule set and configuration option, so the check
should be create warning and exceptions. I think regular expressions are a good choice of beginning.
The Scons emitter should be do nothing (input is equal to output) and the builder should run the checks, but the builder does not create any new file, so the input file should be the output file, does it?
Does anybody know any helpfull tips or ideas?
Thanks
Phil
More information about the Scons-users
mailing list