← Back to team overview

kicad-developers team mailing list archive

Kicad Coding style checker

 

   I wrote it for myself, but as I think it can be interesting for everybody I added it to the tools directory,
it's a tool that checks with 'bzr status' for modified files, and it dumps a suggestions from uncrustify,
if you like them you can just say "y" , "e" launches an $EDITOR for the file, "n" or enter ignores.

kicad ajo$ ./tools/checkcoding.py 
Suggestions for: pcbnew/scripting/pcbnew_footprint_wizards.cpp
--- pcbnew/scripting/pcbnew_footprint_wizards.cpp
+++ pcbnew/scripting/pcbnew_footprint_wizards.cpp.uncrustified
@@ -106,7 +106,7 @@
 
     PyObject*   result = CallMethod( aMethod, aArglist );
 
-    if(result )
+    if( result )
     {
     }
 
Shall I clean pcbnew/scripting/pcbnew_footprint_wizards.cpp ? (y/N/E) y
pcbnew/scripting/pcbnew_footprint_wizards.cpp UPDATED

kicad ajo$

At this moment, it will only work when called from the base project directory

Miguel Angel Ajo
http://www.nbee.es
+34911407752
skype: ajoajoajo


Follow ups