andymeneely / attack-surface-metrics

Scripts for collecting metrics of the attack surface
MIT License
14 stars 4 forks source link

Filter Unit-tests and Documentation #28

Closed nuthanmunaiah closed 9 years ago

nuthanmunaiah commented 9 years ago

Presently, call graph generation using cflow includes C source and headers files related to unit test, documentation, and other non-production FFmpeg features. By excluding these files we could reduce noise in the call graph.

A first step to filtering such files is to identify non-production code in the FFmpeg source code repository and ensure these files are excluded by cflow.

nuthanmunaiah commented 9 years ago

cflow -b -r``find -name "*.c" -or -name "*.h" | grep -vwE "(tests|doc)" works. The list of files and/or directories to ignore could be added to grep's regular expression