WEEE-Open / sardina

Our developers' section stats, computed hic et nunc
3 stars 0 forks source link

Ignore files with CLOC #14

Closed alecello closed 3 years ago

alecello commented 3 years ago

Challenges

All in all, I decided to go for a direct approach and use the external file exclusion list method by compiling within the script itself a list of files to exclude and passing it to CLOC.

Path forward

I could have chosen one of two ways:

The first approach is faster (as search is made within a series of C programs) but it's less portable (no direct replacement on Windows although it's possible to get gnu-utils using various methods) and less powerful than regular expressions, so I chose to go with the latter.

Problems

Conclusions

I observed the decrease in performance to be negligible (especially with cloc), at least with our dataset (active repositories of WEEE Open), and the increase in functionality to be worth it. However, there are noticeable regressions in performance that are worth discussing.
If merged, should close #9.