News for hackers. Stuff that matters.
Re:Show HN: Summarise all code annotation like TODO or FIXME by ahmadassaf on Sunday February 26, 2017 @03:16PM (#13739560)
i actually ignore a bunch of file extensions

   const BAD_EXTENSIONS = ["!*.jpg", "!*.jpeg", "!*.mov", "!*.mp3", "!*.gif", "!*.png", "!*.log", "!*.bin", "!*.psd", "!*.swf", "!*.fla", "!*.ico"];
I was wondering why `.png` was scanned. However, your comment makes so much sense and it will be wise to add default folders like .git as well

Thanks a lot for that, ill be looking forward to what defaults people also want to have :)

Re:Show HN: Summarise all code annotation like TODO or FIXME by StreakyCobra on Sunday February 26, 2017 @04:15PM (#13739910)
Glad to hear my comment inspired you :-) Good luck with this!

PS: Another idea: Instead of selecting manually what extensions should be used or not, you may want to try being more general, like enabling by default all text-like files, and disabling all data-like files. Maybe with `file --mime` then looking at charset value:

    test.jpg: image/jpeg; charset=binary
    manage.py: text/x-python; charset=us-ascii