Skip to content

Commit

Permalink
release 1.82
Browse files Browse the repository at this point in the history
  • Loading branch information
AlDanial committed May 3, 2019
1 parent 188d159 commit 244c1e6
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 43 deletions.
94 changes: 54 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* * *
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.

Latest release: v1.80 (October 5, 2018)
Latest release: v1.82 (May 3, 2019)

Hosted at http://cloc.sourceforge.net/ since August 2006, cloc began the
transition to GitHub in September 2015.
Expand Down Expand Up @@ -53,8 +53,8 @@ Step 3: Invoke cloc to count your source files, directories, archives,
or git commits.
The executable name differs depending on whether you use the
development source version (`cloc`), source for a
released version (`cloc-1.80.pl`) or a Windows executable
(`cloc-1.80.exe`). On this page, `cloc` is the generic term
released version (`cloc-1.82.pl`) or a Windows executable
(`cloc-1.82.exe`). On this page, `cloc` is the generic term
used to refer to any of these.

**a file**
Expand Down Expand Up @@ -359,7 +359,7 @@ and Strawberry Perl 5.24.0.1
on an Amazon Web Services t2.micro instance running Microsoft Windows Server 2008
(32 bit for 1.70 and 1.72; 64 bit for 1.74).

Releases 1.74 through 1.80
Releases 1.74 through 1.82
were was built on a 32 bit Windows 7 virtual machine (IE11.Win7.For.Windows.VirtualBox.zip
pulled from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/)
using Strawberry Perl 5.26.1.1.
Expand Down Expand Up @@ -399,6 +399,9 @@ executable and also check sites such
https://www.virustotal.com/ .
The entries for recent versions are:

cloc-1.82.exe:
https://www.virustotal.com/#/file/2e5fb443fdefd776d7b6b136a25e5ee2048991e735042897dbd0bf92efb16563/detection

cloc-1.80.exe:
https://www.virustotal.com/#/file/9e547b01c946aa818ffad43b9ebaf05d3da08ed6ca876ef2b6847be3bf1cf8be/detection

Expand Down Expand Up @@ -457,7 +460,7 @@ C:> cpan -i Digest::MD5
C:> cpan -i Regexp::Common
C:> cpan -i Algorithm::Diff
C:> cpan -i PAR::Packer
C:> pp -M Digest::MD5 -c -x -o cloc-1.80.exe cloc
C:> pp -M Digest::MD5 -c -x -o cloc-1.82.exe cloc
</pre>

A variation on the instructions above is if you installed the portable
Expand Down Expand Up @@ -930,6 +933,7 @@ Agda (agda, lagda)
AMPLE (ample, dofile, startup)
Ant (build.xml, build.xml)
ANTLR Grammar (g, g4)
Apex Class (cls)
Apex Trigger (trigger)
Arduino Sketch (ino, pde)
AsciiDoc (adoc, asciidoc)
Expand All @@ -947,16 +951,16 @@ builder (xml.builder)
C (c, ec, pgc)
C Shell (csh, tcsh)
C# (cs)
C++ (C, c++, cc, cpp, CPP, cxx, inl, pcc)
C/C++ Header (H, h, hh, hpp, hxx)
C++ (C, c++, cc, CPP, cpp, cxx, inl, pcc)
C/C++ Header (h, H, hh, hpp, hxx)
CCS (ccs)
Chapel (chpl)
Clean (dcl, icl)
Clojure (clj)
ClojureC (cljc)
ClojureScript (cljs)
CMake (cmake, CMakeLists.txt)
COBOL (CBL, cbl, COB, cob)
COBOL (cbl, CBL, cob, COB)
CoffeeScript (coffee)
ColdFusion (cfm)
ColdFusion CFScript (cfc)
Expand All @@ -970,10 +974,11 @@ Cython (pyx)
D (d)
DAL (da)
Dart (dart)
DIET (dt)
diff (diff)
DITA (dita)
DOORS Extension Language (dxl)
DOS Batch (BAT, bat, BTM, btm, CMD, cmd)
DOS Batch (bat, BAT, BTM, btm, cmd, CMD)
Drools (drl)
DTD (dtd)
dtrace (d)
Expand All @@ -983,18 +988,20 @@ EJS (ejs)
Elixir (ex, exs)
Elm (elm)
Embedded Crystal (ecr)
ERB (ERB, erb)
ERB (erb, ERB)
Erlang (erl, hrl)
Expect (exp)
F# (fsi, fs, fs)
F# Script (fsx)
Fennel (fnl)
Fish Shell (fish)
Focus (focexec)
Forth (4th, e4, f83, fb, forth, fpm, fr, frt, ft, fth, rx, fs, f, for)
Fortran 77 (F, f77, F77, FOR, FTN, ftn, pfo, f, for)
Fortran 90 (F90, f90)
Fortran 77 (F, f77, F77, FOR, ftn, FTN, pfo, f, for)
Fortran 90 (f90, F90)
Fortran 95 (f95, F95)
Freemarker Template (ftl)
FXML (fxml)
GDScript (gd)
Gencat NLS (msg)
Glade (glade, ui)
Expand All @@ -1018,7 +1025,6 @@ Idris (idr)
Igor Pro (ipf)
INI (ini)
InstallShield (ism)
IPython Notebook (ipynb)
Java (java)
JavaScript (es6, js)
JavaServer Faces (jsf)
Expand All @@ -1028,6 +1034,7 @@ JSON5 (json5)
JSP (jsp, jspf)
JSX (jsx)
Julia (jl)
Jupyter Notebook (ipynb)
Kermit (ksc)
Korn Shell (ksh)
Kotlin (kt, kts)
Expand All @@ -1042,7 +1049,7 @@ LiveLink OScript (oscript)
Logtalk (lgt, logtalk)
Lua (lua)
m4 (ac, m4)
make (am, gnumakefile, Gnumakefile, makefile, Makefile, mk)
make (am, gnumakefile, Gnumakefile, Makefile, makefile, mk)
Mako (mako)
Markdown (md)
Mathematica (mt, wl, wlt, m)
Expand Down Expand Up @@ -1087,7 +1094,7 @@ QML (qml)
Qt (ui)
Qt Linguist (ts)
Qt Project (pro)
R (R, r)
R (r, R)
Racket (rkt, rktl, scrbl)
RAML (raml)
RapydScript (pyj)
Expand All @@ -1107,27 +1114,28 @@ Scheme (sc, sch, scm, sld, sls, ss)
sed (sed)
SKILL (il)
SKILL++ (ils)
Skylark (bzl)
Slice (ice)
Slim (slim)
Smalltalk (st, cs)
Smarty (smarty, tpl)
Softbridge Basic (SBL, sbl)
Softbridge Basic (sbl, SBL)
Solidity (sol)
SparForte (sp)
Specman e (e)
SQL (psql, sql, SQL)
SQL Data (data.sql)
SQL Stored Procedure (spc.sql, spoc.sql, sproc.sql, udf.sql)
Standard ML (fun, sig, sml)
Starlark (bzl)
Stata (do, DO)
Stylus (styl)
SVG (svg, SVG)
Swift (swift)
SWIG (i)
Tcl/Tk (itk, tcl, tk)
Teamcenter met (met)
Teamcenter mth (mth)
TeX (bst, dtx, sty, tex)
TeX (bst, dtx, sty, tex, cls)
TITAN Project File Information (tpd)
Titanium Style Sheet (tss)
TOML (toml)
Expand All @@ -1139,13 +1147,14 @@ Vala (vala)
Vala Header (vapi)
Velocity Template Language (vm)
Verilog-SystemVerilog (sv, svh, v)
VHDL (VHD, vhd, VHDL, vhdl)
VHDL (VHD, vhd, vhdl, VHDL)
vim script (vim)
Visual Basic (bas, cls, ctl, dsr, frm, vb, VB, vba, VBA, VBS, vbs)
Visual Fox Pro (sca, SCA)
Visual Basic (bas, ctl, dsr, frm, vb, VB, vba, VBA, VBS, vbs, cls)
Visual Fox Pro (SCA, sca)
Visualforce Component (component)
Visualforce Page (page)
Vuejs Component (vue)
WebAssembly (wast, wat)
Windows Message File (mc)
Windows Module Definition (def)
Windows Resource File (rc, rc2)
Expand All @@ -1157,10 +1166,10 @@ xBase (prg)
xBase Header (ch)
XHTML (xhtml)
XMI (XMI, xmi)
XML (XML, xml)
XML (xml, XML)
XQuery (xq, xquery)
XSD (XSD, xsd)
XSLT (XSL, xsl, XSLT, xslt)
XSD (xsd, XSD)
XSLT (xsl, XSL, XSLT, xslt)
Xtend (xtend)
yacc (y)
YAML (yaml, yml)
Expand All @@ -1172,22 +1181,27 @@ file with the `--read-lang-def` or `--force-lang-def` options.

These file extensions map to multiple languages:

* `.cl` files could be Lisp or OpenCL
* `.cs` files could be C# or Smalltalk
* `.d` files could be D or dtrace
* `.f` or `.for` files could be Fortran or Forth
* `.fs` files could be Forth or F#
* `.inc` files could be PHP or Pascal
* `.jl` files could be Lisp or Julia
* `.m` files could be MATLAB, Mathematica, Mercury, MUMPS, or Objective C
* `.pl` files could be Perl or Prolog
* `.pp` files could be Pascal or Puppet
* `.pro` files could be IDL, Prolog, or a Qt Project
* `.ts` files could be TypeScript or Qt Linguist
* `.ui` files could be Qt or Glade
* `.v` files could be Coq or Verilog/SystemVerilog
* `build.xml` files could be Ant or XML
* `pom.xml` files could be Maven or XML
* `cl` files could be Lisp or OpenCL
* `cls` files could be Visual Basic, TeX or Apex Class
* `cs` files could be C# or Smalltalk
* `d` files could be D or dtrace
* `f` files could be Fortran 77 or Forth
* `fnc` files could be Oracle PL or SQL
* `for` files could be Fortran 77 or Forth
* `fs` files could be F# or Forth
* `inc` files could be PHP or Pascal
* `itk` files could be Tcl or Tk
* `jl` files could be Lisp or Julia
* `lit` files could be PL or M
* `m` files could be MATLAB, Mathematica, Objective C, MUMPS or Mercury
* `p6` files could be Perl or Prolog
* `pl` files could be Perl or Prolog
* `PL` files could be Perl or Prolog
* `pp` files could be Pascal or Puppet
* `pro` files could be IDL, Qt Project, Prolog or ProGuard
* `ts` files could be TypeScript or Qt Linguist
* `ui` files could be Qt or Glade
* `v` files could be Verilog-SystemVerilog or Coq

cloc has subroutines that attempt to identify the correct language based
on the file's contents for these special cases. Language identification
Expand Down
35 changes: 35 additions & 0 deletions Unix/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
Release Notes for cloc version 1.82
https://github.com/AlDanial/cloc
May 3, 2019

New Languages and File Types:
o Apex Class
o DIET
o Fennel
o FXML
o Jupyter notebook files (.ipynb)
o Python wheel files (.whl)
o SVG
o reStructuredText

Updates:
o Handle backslashed quotes in strings to improve --strip-str-comments
logic.
o Improve Perl v. Prolog identification.
o New switch --docstring-as-code to count Python docstrings as code.
o Partial support fot Lua nested comments.
o Renamed Skylark to Starlark.
o Modified Java filter to try to handle embedded comments better.
o Recognize groovy as one of the #! languages.
o Add .pyw as a file extension for Python.
o Update comment definitions for Velocity Template Language.
o Override file alignment logic with --diff when only two files are
given.
o Identify TeX v. Visual Basic for .cls file extension.
o Include result summation line with --csv output.
o Support --csv, --json, --md, --xml, --yaml output types for the
--ignored debug file.
o Force IO encoding to allow wider Unicode characters for creating
Windows exe's with PAR::Packer

============================================================================
Release Notes for cloc version 1.80
https://github.com/AlDanial/cloc
Oct. 5, 2018
Expand Down
2 changes: 1 addition & 1 deletion Unix/cloc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# <http://www.gnu.org/licenses/gpl.txt>.
#
# 1}}}
my $VERSION = "1.81"; # odd number == beta; even number == stable
my $VERSION = "1.82"; # odd number == beta; even number == stable
my $URL = "github.com/AlDanial/cloc"; # 'https://' pushes header too wide
require 5.006;
# use modules {{{1
Expand Down
10 changes: 9 additions & 1 deletion Unix/cloc.1.pod
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ to 0 allows unlimited time.
(Large files with many repeated lines can cause
Algorithm::Diff::sdiff() to take hours.)

=item B<--docstring-as-code>

cloc considers docstrings to be comments, but this is
not always correct as docstrings represent regular
strings when they appear on the right hand side of an
assignment or as function arguments. This switch
forces docstrings to be counted as code.

=item B<--follow-links>

[Unix only] Follow symbolic links to directories (sym links to files
Expand Down Expand Up @@ -727,7 +735,7 @@ sloccount(1)
=head1 AUTHORS

The cloc program was written by Al Danial <[email protected]> and
is Copyright (C) 2006-2018 <[email protected]>.
is Copyright (C) 2006-2019 <[email protected]>.

The manual page was originally written by Jari Aalto <[email protected]>.

Expand Down
2 changes: 1 addition & 1 deletion cloc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# <http://www.gnu.org/licenses/gpl.txt>.
#
# 1}}}
my $VERSION = "1.81"; # odd number == beta; even number == stable
my $VERSION = "1.82"; # odd number == beta; even number == stable
my $URL = "github.com/AlDanial/cloc"; # 'https://' pushes header too wide
require 5.006;
# use modules {{{1
Expand Down

0 comments on commit 244c1e6

Please sign in to comment.