[PATCH] Add Switches to find-german-comments to aid in weeding false positives

Tom Thorogood tom at tomthorogood.com
Tue Mar 13 19:58:23 PDT 2012


Added two switches to bin/find-german-comments
The first is --line-numbers (-l), which outputs a filename only once,
followed by (mostly) neat formatting of the line numbers with flagged
comments. The second is --threshold (t), which suppresses any output for
comments that have less than [t] flagged comments. This should help with
false positives, since it seems that files with only 1 or 2 "German"
comments are usually being flagged for hexadecimal code or something
else entirely.

therefore: ../bin/find-german-comments -l -t1 > german.txt 
will create a text file populated only with filenames and line numbers
for files in the current directory (and subs) that have more than one
comment in them.


More information about the LibreOffice mailing list