Skip to content

Commit

Permalink
--ignore-regex POD doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlDanial committed Dec 2, 2024
1 parent 6040f51 commit 614f6cc
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion Unix/cloc.1.pod
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,24 @@ C++; this switch would count .C files as C rather
than C++ on *nix operating systems). File name
case insensitivity is always true on Windows.

=item B<--ignore-regex>

Ignore lines in source files that match the given
Perl regular expression for the given language(s).
This option can be specified multiple times.
Language names are comma separated and are followed
by the pipe character and the regular expression.
Use * to match all languages.
Examples:

--ignore-regex='C,Java,C++|^\s*[{};]\s*$'
--ignore-regex='*|DEBUG|TEST\s+ONLY'

These filters are applied after comments are
removed. Use --strip-comments=EXT to create
new files that show these filters applied.


=item B<--lang-no-ext=LANG>

Count files without extensions using the LANG counter. This option
Expand Down Expand Up @@ -614,6 +632,7 @@ names of categorized files to FILE.
=item B<--counted=FILE>

Save names of processed source files to FILE.
See also B<--found>, B<--ignored>, B<--unique>.

=item B<--diff-alignment=FILE>

Expand All @@ -636,11 +655,13 @@ Print cloc's internal usage information and exit.

=item B<--found=FILE>

Save names of every file found to FILE.
Save names of every file found to FILE. See also B<--counted>,
B<--ignored>, B<--unique>.

=item B<--ignored=FILE>

Save names of ignored files and the reason they were ignored to FILE.
See also B<--counted>, B<--found>, B<--unique>.

=item B<--print-filter-stages>

Expand All @@ -662,6 +683,11 @@ exit.
Print the value of the operating system mode and exit. See also
B<--unix>, B<--windows>.

=item B<--unique=FILE>

Save names of ignored files and the reason they were ignored to FILE.
See also B<--counted>, B<--found>, B<--ignored>.

=item B<-v[=N]>

Turn on verbose with optional numeric value.
Expand Down

0 comments on commit 614f6cc

Please sign in to comment.