[Scons-users] style guide cheker

Jos De Laender jos at de-laender.be
Wed Jan 2 04:13:21 EST 2013


It's off course off-topic (except for the I like Scons part ;)) but I
feel like you are re-inventing the wheel.
If it was my problem, I went for : http://uncrustify.sourceforge.net/ .
GUI ànd command-line that should be possible to integrate with Scons.

Jos

On 02-01-13 09:26, Philipp Kraus wrote:

> 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

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>



--
Jos De Laender
www.jodela.be



More information about the Scons-users mailing list