Tiny code analysis tool.

Vincent Menard d2a1333bfb Renamed project, added license file. 2 years ago
ext f2f996a808 Initial commit 3 years ago
src b2d052351c Condesed basic analysis report 2 years ago
LICENSE.txt d2a1333bfb Renamed project, added license file. 2 years ago
README.md d2a1333bfb Renamed project, added license file. 2 years ago

README.md

css-cstat

This tool intends to find unused css elements. It parses css files and then check in the webroot folder if the class is actually used, like a css codebase recursive grep. No file will be modified, it is only a code analysis tool. It currently only looks for root css classes. Requires dirent and argp.

To compile use : gcc -Wall -o css-cstat util.c search.c argp.c grep.c css_entity.c main.c

Usage: css-cstat [OPTION...] path

Output example :

$ ./css-cstat /var/www

Cross referencing CSS classes with template files...

Class sf-reset - 4 occurences

Class sf-button - 1 occurences

Class sf-button-selected - 0 occurences

Class clear - 6 occurences

...