Skip to content

Commit 51847c3

Browse files
committed
v 1.84
1 parent a838e00 commit 51847c3

File tree

5 files changed

+178
-84
lines changed

5 files changed

+178
-84
lines changed

README.md

Lines changed: 83 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* * *
66
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
77

8-
Latest release: v1.82 (May 3, 2019)
8+
Latest release: v1.84 (September 22, 2019)
99

10-
Hosted at http://cloc.sourceforge.net/ since August 2006, cloc began the
11-
transition to GitHub in September 2015.
10+
cloc moved to GitHub in September 2015 after being hosted
11+
at http://cloc.sourceforge.net/ since August 2006,
1212

1313
* [Quick Start](#quick-start-)
1414
* [Overview](#overview-)
@@ -359,7 +359,7 @@ and Strawberry Perl 5.24.0.1
359359
on an Amazon Web Services t2.micro instance running Microsoft Windows Server 2008
360360
(32 bit for 1.70 and 1.72; 64 bit for 1.74).
361361

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

402+
cloc-1.84.exe:
403+
https://www.virustotal.com/gui/file/e73d490c1e4ae2f50ee174005614029b4fa2610dcb76988714839d7be68479af/detection
404+
402405
cloc-1.82.exe:
403406
https://www.virustotal.com/#/file/2e5fb443fdefd776d7b6b136a25e5ee2048991e735042897dbd0bf92efb16563/detection
404407

@@ -460,7 +463,7 @@ C:> cpan -i Digest::MD5
460463
C:> cpan -i Regexp::Common
461464
C:> cpan -i Algorithm::Diff
462465
C:> cpan -i PAR::Packer
463-
C:> pp -M Digest::MD5 -c -x -o cloc-1.82.exe cloc
466+
C:> pp -M Digest::MD5 -c -x -o cloc-1.84.exe cloc-1.84.pl
464467
</pre>
465468

466469
A variation on the instructions above is if you installed the portable
@@ -935,50 +938,51 @@ Ant (build.xml, build.xml)
935938
ANTLR Grammar (g, g4)
936939
Apex Class (cls)
937940
Apex Trigger (trigger)
941+
APL (apl, apla, aplc, aplf, apli, apln, aplo, dyalog, dyapp, mipage)
938942
Arduino Sketch (ino, pde)
939943
AsciiDoc (adoc, asciidoc)
940-
ASP (asa, asp)
944+
ASP (asa, ashx, asp, axd)
941945
ASP.NET (asax, ascx, asmx, aspx, master, sitemap, webinfo)
942946
AspectJ (aj)
943-
Assembly (asm, S, s)
944-
AutoHotkey (ahk)
945-
awk (awk)
946-
Blade (blade.php)
947+
Assembly (a51, asm, nasm, S, s)
948+
AutoHotkey (ahk, ahkl)
949+
awk (auk, awk, gawk, mawk, nawk)
950+
Blade (blade, blade.php)
947951
Bourne Again Shell (bash)
948952
Bourne Shell (sh)
949953
BrightScript (brs)
950954
builder (xml.builder)
951-
C (c, ec, pgc)
955+
C (c, cats, ec, idc, pgc)
952956
C Shell (csh, tcsh)
953957
C# (cs)
954-
C++ (C, c++, cc, CPP, cpp, cxx, inl, pcc)
955-
C/C++ Header (h, H, hh, hpp, hxx)
958+
C++ (C, c++, cc, CPP, cpp, cxx, h++, inl, ipp, pcc, tcc, tpp)
959+
C/C++ Header (H, h, hh, hpp, hxx)
956960
CCS (ccs)
957961
Chapel (chpl)
958962
Clean (dcl, icl)
959-
Clojure (clj)
963+
Clojure (boot, cl2, clj, cljs.hl, cljscm, cljx, hic, riemann.config)
960964
ClojureC (cljc)
961965
ClojureScript (cljs)
962-
CMake (cmake, CMakeLists.txt)
963-
COBOL (cbl, CBL, cob, COB)
964-
CoffeeScript (coffee)
965-
ColdFusion (cfm)
966+
CMake (cmake, cmake.in, CMakeLists.txt)
967+
COBOL (CBL, cbl, ccp, COB, cob, cobol, cpy)
968+
CoffeeScript (_coffee, cakefile, cjsx, coffee, iced)
969+
ColdFusion (cfm, cfml)
966970
ColdFusion CFScript (cfc)
967971
Coq (v)
968972
Crystal (cr)
969973
CSON (cson)
970974
CSS (css)
971975
Cucumber (feature)
972976
CUDA (cu, cuh)
973-
Cython (pyx)
977+
Cython (pxd, pxi, pyx)
974978
D (d)
975979
DAL (da)
976980
Dart (dart)
977981
DIET (dt)
978-
diff (diff)
982+
diff (diff, patch)
979983
DITA (dita)
980984
DOORS Extension Language (dxl)
981-
DOS Batch (bat, BAT, BTM, btm, cmd, CMD)
985+
DOS Batch (BAT, bat, BTM, btm, cmd, CMD)
982986
Drools (drl)
983987
DTD (dtd)
984988
dtrace (d)
@@ -988,71 +992,73 @@ EJS (ejs)
988992
Elixir (ex, exs)
989993
Elm (elm)
990994
Embedded Crystal (ecr)
991-
ERB (erb, ERB)
992-
Erlang (erl, hrl)
995+
ERB (ERB, erb)
996+
Erlang (app.src, emakefile, erl, hrl, rebar.config, rebar.config.lock, rebar.lock, xrl, yrl)
993997
Expect (exp)
994998
F# (fsi, fs, fs)
995999
F# Script (fsx)
9961000
Fennel (fnl)
9971001
Fish Shell (fish)
9981002
Focus (focexec)
9991003
Forth (4th, e4, f83, fb, forth, fpm, fr, frt, ft, fth, rx, fs, f, for)
1000-
Fortran 77 (F, f77, F77, FOR, ftn, FTN, pfo, f, for)
1004+
Fortran 77 (F, F77, f77, FOR, FTN, ftn, pfo, f, for)
10011005
Fortran 90 (f90, F90)
1002-
Fortran 95 (f95, F95)
1006+
Fortran 95 (F95, f95)
10031007
Freemarker Template (ftl)
10041008
FXML (fxml)
10051009
GDScript (gd)
10061010
Gencat NLS (msg)
10071011
Glade (glade, ui)
1008-
GLSL (comp, frag, geom, glsl, tesc, tese, vert)
1012+
GLSL (comp, fp, frag, frg, fsh, fshader, geo, geom, glsl, glslv, gshader, tesc, tese, vert, vrx, vsh, vshader)
10091013
Go (go)
10101014
Gradle (gradle, gradle.kts)
10111015
Grails (gsp)
1012-
GraphQL (gql, graphql)
1013-
Groovy (gant, groovy)
1014-
Haml (haml)
1016+
GraphQL (gql, graphql, graphqls)
1017+
Groovy (gant, groovy, grt, gtpl, gvy, jenkinsfile)
1018+
Haml (haml, haml.deface)
10151019
Handlebars (handlebars, hbs)
10161020
Harbour (hb)
1017-
Haskell (hs, lhs)
1018-
Haxe (hx)
1019-
HCL (hcl, nomad, tf)
1020-
HLSL (cg, cginc, hlsl, shader)
1021+
Haskell (hs, hsc, lhs)
1022+
Haxe (hx, hxsl)
1023+
HCL (hcl, nomad, tf, tfvars)
1024+
HLSL (cg, cginc, fxh, hlsl, hlsli, shader)
10211025
Hoon (hoon)
1022-
HTML (htm, html)
1023-
IDL (idl, pro)
1026+
HTML (htm, html, html.hl, xht)
1027+
IDL (dlm, idl, pro)
10241028
Idris (idr)
10251029
Igor Pro (ipf)
1026-
INI (ini)
1030+
Imba (imba)
1031+
INI (buildozer.spec, ini, lektorproject, prefs)
10271032
InstallShield (ism)
1033+
IPL (ipl)
10281034
Java (java)
1029-
JavaScript (es6, js)
1035+
JavaScript (_js, bones, es6, jake, jakefile, js, jsb, jscad, jsfl, jsm, jss, mjs, njs, pac, sjs, ssjs, xsjs, xsjslib)
10301036
JavaServer Faces (jsf)
10311037
JCL (jcl)
1032-
JSON (json)
1038+
JSON (arcconfig, avsc, composer.lock, geojson, gltf, har, htmlhintrc, json, json-tmlanguage, jsonl, mcmeta, mcmod.info, tern-config, tern-project, tfstate, tfstate.backup, topojson, watchmanconfig, webapp, webmanifest, yyp)
10331039
JSON5 (json5)
10341040
JSP (jsp, jspf)
10351041
JSX (jsx)
10361042
Julia (jl)
10371043
Jupyter Notebook (ipynb)
10381044
Kermit (ksc)
10391045
Korn Shell (ksh)
1040-
Kotlin (kt, kts)
1041-
Lean (lean)
1046+
Kotlin (kt, ktm, kts)
1047+
Lean (hlean, lean)
10421048
LESS (less)
1043-
lex (l)
1049+
lex (l, lex)
10441050
LFE (lfe)
10451051
liquid (liquid)
10461052
Lisp (asd, el, lisp, lsp, cl, jl)
10471053
Literate Idris (lidr)
10481054
LiveLink OScript (oscript)
10491055
Logtalk (lgt, logtalk)
1050-
Lua (lua)
1056+
Lua (lua, nse, p8, pd_lua, rbxs, wlua)
10511057
m4 (ac, m4)
10521058
make (am, gnumakefile, Gnumakefile, Makefile, makefile, mk)
1053-
Mako (mako)
1054-
Markdown (md)
1055-
Mathematica (mt, wl, wlt, m)
1059+
Mako (mako, mao)
1060+
Markdown (contents.lr, markdown, md, mdown, mdwn, mdx, mkd, mkdn, mkdown, ronn, workbook)
1061+
Mathematica (cdf, ma, mathematica, mt, nbp, wl, wlt, m)
10561062
MATLAB (m)
10571063
Maven (pom, pom.xml)
10581064
Modula3 (i3, ig, m3, mg)
@@ -1063,54 +1069,55 @@ MXML (mxml)
10631069
NAnt script (build)
10641070
NASTRAN DMAP (dmap)
10651071
Nemerle (n)
1066-
Nim (nim)
1072+
Nim (nim, nim.cfg, nimble, nimrod, nims)
10671073
Nix (nix)
10681074
Objective C (m)
10691075
Objective C++ (mm)
1070-
OCaml (ml, mli, mll, mly)
1076+
OCaml (eliom, eliomi, ml, ml4, mli, mll, mly)
10711077
OpenCL (cl)
10721078
Oracle Forms (fmt)
10731079
Oracle PL/SQL (bod, fnc, prc, spc, trg)
10741080
Oracle Reports (rex)
1075-
Pascal (dpr, p, pas)
1081+
Pascal (dfm, dpr, lpr, p, pas, pascal)
10761082
Pascal/Puppet (pp)
10771083
Patran Command Language (pcl, ses)
1078-
Perl (perl, plh, plx, pm, pm6, pl)
1079-
PHP (php, php3, php4, php5, phtml)
1084+
Perl (ack, al, cpanfile, makefile.pl, perl, ph, plh, plx, pm, pm6, psgi, rexfile, pl)
1085+
PHP (aw, ctp, phakefile, php, php3, php4, php5, php_cs, php_cs.dist, phps, phpt, phtml)
10801086
PHP/Pascal (inc)
10811087
Pig Latin (pig)
10821088
PL/I (pl1)
10831089
PL/M (lit, plm)
10841090
PO File (po)
1085-
PowerBuilder (sra, srf, srm, srs, sru, srw)
1091+
PowerBuilder (pbt, sra, srf, srm, srs, sru, srw)
10861092
PowerShell (ps1, psd1, psm1)
10871093
ProGuard (pro)
1088-
Prolog (P, pl, pro)
1094+
Prolog (P, prolog, yap, pl, pro)
10891095
Protocol Buffers (proto)
1090-
Pug (pug)
1096+
Pug (jade, pug)
10911097
PureScript (purs)
1092-
Python (py, pyw)
1093-
QML (qml)
1098+
Python (buck, build.bazel, gclient, gyp, gypi, lmi, py, py3, pyde, pyi, pyp, pyt, pyw, sconscript, sconstruct, snakefile, tac, workspace, wscript, wsgi, xpy)
1099+
QML (qbs, qml)
10941100
Qt (ui)
10951101
Qt Linguist (ts)
10961102
Qt Project (pro)
1097-
R (r, R)
1098-
Racket (rkt, rktl, scrbl)
1103+
R (expr-dist, r, R, rd, rprofile, rsx)
1104+
Racket (rkt, rktd, rktl, scrbl)
10991105
RAML (raml)
11001106
RapydScript (pyj)
11011107
Razor (cshtml)
11021108
ReasonML (re, rei)
1103-
reStructuredText (rst)
1104-
Rexx (rexx)
1109+
reStructuredText (rest, rest.txt, rst, rst.txt)
1110+
Rexx (pprx, rexx)
11051111
Rmd (Rmd)
11061112
RobotFramework (robot, tsv)
1107-
Ruby (rake, rb)
1113+
Ruby (appraisals, berksfile, brewfile, builder, buildfile, capfile, dangerfile, deliverfile, eye, fastfile, gemfile, gemfile.lock, gemspec, god, guardfile, irbrc, jarfile, jbuilder, mavenfile, mspec, podfile, podspec, pryrc, puppetfile, rabl, rake, rb, rbuild, rbw, rbx, ru, snapfile, thor, thorfile, vagrantfile, watchr)
11081114
Ruby HTML (rhtml)
1109-
Rust (rs)
1115+
Rust (rs, rs.in)
1116+
SaltStack (sls)
11101117
SAS (sas)
11111118
Sass (sass, scss)
1112-
Scala (scala)
1113-
Scheme (sc, sch, scm, sld, sls, ss)
1119+
Scala (kojo, sbt, scala)
1120+
Scheme (sc, sch, scm, sld, sps, ss, sls)
11141121
sed (sed)
11151122
SKILL (il)
11161123
SKILL++ (ils)
@@ -1122,20 +1129,21 @@ Softbridge Basic (sbl, SBL)
11221129
Solidity (sol)
11231130
SparForte (sp)
11241131
Specman e (e)
1125-
SQL (psql, sql, SQL)
1132+
SQL (cql, mysql, psql, sql, SQL, tab, udf, viw)
11261133
SQL Data (data.sql)
11271134
SQL Stored Procedure (spc.sql, spoc.sql, sproc.sql, udf.sql)
11281135
Standard ML (fun, sig, sml)
11291136
Starlark (bzl)
1130-
Stata (do, DO)
1137+
Stata (ado, do, DO, doh, ihlp, mata, matah, sthlp)
11311138
Stylus (styl)
11321139
SVG (svg, SVG)
11331140
Swift (swift)
11341141
SWIG (i)
11351142
Tcl/Tk (itk, tcl, tk)
11361143
Teamcenter met (met)
11371144
Teamcenter mth (mth)
1138-
TeX (bst, dtx, sty, tex, cls)
1145+
TeX (aux, bbx, bib, bst, cbx, dtx, ins, lbx, ltx, mkii, mkiv, mkvi, sty, tex, cls)
1146+
Thrift (thrift)
11391147
TITAN Project File Information (tpd)
11401148
Titanium Style Sheet (tss)
11411149
TOML (toml)
@@ -1147,9 +1155,9 @@ Vala (vala)
11471155
Vala Header (vapi)
11481156
Velocity Template Language (vm)
11491157
Verilog-SystemVerilog (sv, svh, v)
1150-
VHDL (VHD, vhd, vhdl, VHDL)
1158+
VHDL (VHD, vhd, vhdl, VHDL, vhf, vhi, vho, vhs, vht, vhw)
11511159
vim script (vim)
1152-
Visual Basic (bas, ctl, dsr, frm, vb, VB, vba, VBA, VBS, vbs, cls)
1160+
Visual Basic (bas, ctl, dsr, frm, frx, vb, VB, VBA, vba, vbhtml, vbs, VBS, cls)
11531161
Visual Fox Pro (SCA, sca)
11541162
Visualforce Component (component)
11551163
Visualforce Page (page)
@@ -1162,17 +1170,17 @@ WiX include (wxi)
11621170
WiX source (wxs)
11631171
WiX string localization (wxl)
11641172
XAML (xaml)
1165-
xBase (prg)
1173+
xBase (prg, prw)
11661174
xBase Header (ch)
11671175
XHTML (xhtml)
1168-
XMI (XMI, xmi)
1169-
XML (xml, XML)
1170-
XQuery (xq, xquery)
1176+
XMI (xmi, XMI)
1177+
XML (adml, admx, ant, app.config, axml, builds, ccproj, ccxml, classpath, clixml, cproject, cscfg, csdef, csl, ct, depproj, ditamap, ditaval, dll.config, dotsettings, filters, fsproj, gmx, grxml, iml, ivy, jelly, jsproj, kml, launch, mdpolicy, mjml, natvis, ndproj, nproj, nuget.config, nuspec, odd, osm, packages.config, pkgproj, plist, proj, project, props, ps1xml, psc1, pt, rdf, resx, rss, scxml, settings.stylecop, sfproj, shproj, srdf, storyboard, sttheme, sublime-snippet, targets, tmcommand, tml, tmlanguage, tmpreferences, tmsnippet, tmtheme, urdf, ux, vcxproj, vsixmanifest, vssettings, vstemplate, vxml, web.config, web.debug.config, web.release.config, wsf, x3d, xacro, xib, xlf, xliff, XML, xml, xml.dist, xproj, xspec, xul, zcml)
1178+
XQuery (xq, xql, xqm, xquery, xqy)
11711179
XSD (xsd, XSD)
1172-
XSLT (xsl, XSL, XSLT, xslt)
1180+
XSLT (XSL, xsl, xslt, XSLT)
11731181
Xtend (xtend)
1174-
yacc (y)
1175-
YAML (yaml, yml)
1182+
yacc (y, yacc)
1183+
YAML (clang-format, clang-tidy, gemrc, glide.lock, mir, reek, rviz, sublime-syntax, syntax, yaml, yaml-tmlanguage, yml, yml.mysql)
11761184
zsh (zsh)
11771185
</pre>
11781186

Unix/NEWS

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1+
Release Notes for cloc version 1.84
2+
https://github.com/AlDanial/cloc
3+
September 22, 2019
4+
5+
New Languages and File Types:
6+
o APL
7+
o Apache Thrift
8+
o Imba
9+
o IPL
10+
o SaltStack
11+
12+
Updates:
13+
o Improved handling of --git --diff
14+
o Add .podspec as a Ruby file extension.
15+
o New switch, --stat, to force a stat check of
16+
directories. This enables traversal of directory
17+
types whose nlink count does not match the count
18+
of subdirectories (examples: CD-ROM, FAT, AFS).
19+
o Force stat on top level directories. This is
20+
companion logic to the new --stat switch.
21+
o Add file extensions defined by the Linguist project.
22+
o New switch, --exclude-content, to exclude files if
23+
any of their lines match a regex.
24+
o New switch, --timeout, to give control over timeouts
25+
on direct counts (as opposed to diff timeouts).
26+
o On Windows, lower batch size on git archive
27+
commands to 100 files (the value is 1,000 on *nix).
28+
o Better identification of Smarty .tpl template files.
29+
30+
Bug Fixes:
31+
o On Windows, use double quotes for git archive entries.
32+
o On Windows, double slash path separators with --by-file
33+
and JSON output.
34+
o On Windows, replace / with \\ in results only when
35+
running with --by-file.
36+
o Fix header line metrics for files/sec and lines/sec
37+
when doing --diff.
38+
o Python: handle cases of /* or */ embedded in strings
39+
(this conflicted with internal logic which replaced
40+
docstring triple quotes with C comments).
41+
o Fix mishandling of --exclude-dir with --follow-link.
42+
o Fix doubly-counted #! line
43+
o Support --hide-rate with csv output.
44+
45+
============================================================================
146
Release Notes for cloc version 1.82
247
https://github.com/AlDanial/cloc
348
May 3, 2019

0 commit comments

Comments
 (0)