App-cloc
view release on metacpan or search on metacpan
Write results as SQL CREATE and INSERT statements which can be read by
a database program such as SQLite. If FILE is B<->, output is sent to
I<STDOUT>.
=item B<--sql-append>
Append SQL insert statements to the file specified by B<--sql> and
do not generate table creation option.
=item B<--sql-project=NAME>
Use B<name> as the project identifier for the current run. Only valid
with the B<--sql> option.
=item B<--sql-style=STYLE>
Write SQL statements in the given style instead of the default
SQLite format. Currently, the only style option is B<Oracle>.
=item B<--sum-one>
For plain text reports, show the SUM: output line even if only
one input file is processed.
=item B<--xml>
Write the results in XML.
=item B<--xsl[=FILE]>
Reference FILE as an XSL stylesheet within the XML output. If FILE is
not given, writes a default stylesheet, cloc.xsl. This switch forces
B<--xml> to be on.
=item B<--yaml>
Write the results in YAML.
=back
=head1 EXAMPLES
Count the lines of code in the Perl 5.10.0 compressed tar file
on a UNIX-like operating system:
cloc perl-5.10.0.tar.gz
Count the changes in files, code, and comments between Python
releases 2.6.6 and 2.7:
cloc --diff Python-2.6.6.tar.bz Python-2.7.tar.bz2
To see how cloc aligns files for comparison between two code
bases, use the B<--diff-alignment=FILE> option. Here the
alignment information is written to C<align.txt>:
cloc --diff-aligment=align.txt gcc-4.4.0.tar.bz2 gcc-4.5.0.tar.bz2
Count file, code, and comment changes between two git commits:
cloc --git --diff b409850824 HEAD
Print the recognized languages:
cloc --show-lang
Remove comments from C<foo.c> and save the result in C<foo.c.nc>
("nc" is an arbitrary extension; used here to denote "no comments"):
cloc --strip-comments=nc foo.c
Additional examples can be found at L<https://github.com/AlDanial/cloc>.
=head1 ENVIRONMENT
None.
=head1 FILES
None.
=head1 SEE ALSO
sloccount(1)
=head1 AUTHORS
The cloc program was written by Al Danial <al.danial@gmail.com> and
is Copyright (C) 2006-2018 <al.danial@gmail.com>.
The manual page was originally written by Jari Aalto <jari.aalto@cante.net>.
Both the code and documentation is released under the GNU GPL version 2
or (at your option) any later version. For more information about
license, visit <http://www.gnu.org/copyleft/gpl.html>.
=cut
( run in 1.579 second using v1.01-cache-2.11-cpan-437f7b0c052 )