The solong
program prints out the paths of all files in the tree rooted at .
whose average line lengths are greater than some long threshold like 1000. The purpose of solong
is to detect files that would add noise to search results, so you can add those noisy files to your .ignore
or .rgignore
file. Having done that, ripgrep (rg
) will ignore these files, so you can have a greater signal-to-noise ratio in your search results.
$ go install github.com/ijt/solong@HEAD
$ solong >> .rgignore
$ rg 'function'