eliben / pss

pss is a power-tool for searching inside source code files.
Other
327 stars 46 forks source link

Add option to ignore minified javascript #13

Closed bunyk closed 11 years ago

bunyk commented 11 years ago

Minified javascript is easy to detect, when search result is on the line whose length is longer than e.g 1000 characters (majority of style guides recommend less than 80) that result is probably from minified file.

eliben commented 11 years ago

This is unlikely to be implemented, since it doesn't really fit well into the model of pss. Don't minified files have special extensions that can be ignored? (.min.js)

bunyk commented 11 years ago

Alas, sometimes thay have no distinct extension, but I found a way to deal with that problem by piping pss output throught awk 'length($0) < 100'.