Automatic checking of the sources on global level
Inge Wallin
inge at lysator.liu.se
Sun Aug 11 14:10:08 BST 2013
I have written a new python script a bit like fixsrc.py called chksrc.py. Like
the name suggests it only checks and reports on problems, it doesn't fix
anything.
This first version checks for faulty or non-existant include guards, which is
per file, and for export macros, which is per directory. So if there is more
than one export macro used in one directory then it reports this, as it is
perhaps a sign that something was moved but not changed correctly.
The reason I wrote it is because I and many others have had problems with link
errors and build errors that were difficult to find.
I have run it on all of calligra and fixed the bigger problems I found in libs/
and filters/. But I recomend that you run it on your own application. The
results are quite interesting...
To run it, just cd to the top directory and run:
devtools/chksrc/chksrc.py <directory>
where <directory> is the top of the tree you want to check, e.g. krita or
braindump.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20130811/e899c24b/attachment.htm>
More information about the calligra-devel
mailing list