5
5
* * *
6
6
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
7
7
8
- Latest release: v1.82 (May 3 , 2019)
8
+ Latest release: v1.84 (September 22 , 2019)
9
9
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,
12
12
13
13
* [ Quick Start] ( #quick-start- )
14
14
* [ Overview] ( #overview- )
@@ -359,7 +359,7 @@ and Strawberry Perl 5.24.0.1
359
359
on an Amazon Web Services t2.micro instance running Microsoft Windows Server 2008
360
360
(32 bit for 1.70 and 1.72; 64 bit for 1.74).
361
361
362
- Releases 1.74 through 1.82
362
+ Releases 1.74 through 1.84
363
363
were was built on a 32 bit Windows 7 virtual machine (IE11.Win7.For.Windows.VirtualBox.zip
364
364
pulled from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ )
365
365
using Strawberry Perl 5.26.1.1.
@@ -399,6 +399,9 @@ executable and also check sites such
399
399
https://www.virustotal.com/ .
400
400
The entries for recent versions are:
401
401
402
+ cloc-1.84.exe:
403
+ https://www.virustotal.com/gui/file/e73d490c1e4ae2f50ee174005614029b4fa2610dcb76988714839d7be68479af/detection
404
+
402
405
cloc-1.82.exe:
403
406
https://www.virustotal.com/#/file/2e5fb443fdefd776d7b6b136a25e5ee2048991e735042897dbd0bf92efb16563/detection
404
407
@@ -460,7 +463,7 @@ C:> cpan -i Digest::MD5
460
463
C:> cpan -i Regexp::Common
461
464
C:> cpan -i Algorithm::Diff
462
465
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
464
467
</pre >
465
468
466
469
A variation on the instructions above is if you installed the portable
@@ -935,50 +938,51 @@ Ant (build.xml, build.xml)
935
938
ANTLR Grammar (g, g4)
936
939
Apex Class (cls)
937
940
Apex Trigger (trigger)
941
+ APL (apl, apla, aplc, aplf, apli, apln, aplo, dyalog, dyapp, mipage)
938
942
Arduino Sketch (ino, pde)
939
943
AsciiDoc (adoc, asciidoc)
940
- ASP (asa, asp)
944
+ ASP (asa, ashx, asp, axd )
941
945
ASP.NET (asax, ascx, asmx, aspx, master, sitemap, webinfo)
942
946
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)
947
951
Bourne Again Shell (bash)
948
952
Bourne Shell (sh)
949
953
BrightScript (brs)
950
954
builder (xml.builder)
951
- C (c, ec , pgc)
955
+ C (c, cats, ec, idc , pgc)
952
956
C Shell (csh, tcsh)
953
957
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)
956
960
CCS (ccs)
957
961
Chapel (chpl)
958
962
Clean (dcl, icl)
959
- Clojure (clj)
963
+ Clojure (boot, cl2, clj, cljs.hl, cljscm, cljx, hic, riemann.config )
960
964
ClojureC (cljc)
961
965
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 )
966
970
ColdFusion CFScript (cfc)
967
971
Coq (v)
968
972
Crystal (cr)
969
973
CSON (cson)
970
974
CSS (css)
971
975
Cucumber (feature)
972
976
CUDA (cu, cuh)
973
- Cython (pyx)
977
+ Cython (pxd, pxi, pyx)
974
978
D (d)
975
979
DAL (da)
976
980
Dart (dart)
977
981
DIET (dt)
978
- diff (diff)
982
+ diff (diff, patch )
979
983
DITA (dita)
980
984
DOORS Extension Language (dxl)
981
- DOS Batch (bat, BAT , BTM, btm, cmd, CMD)
985
+ DOS Batch (BAT, bat , BTM, btm, cmd, CMD)
982
986
Drools (drl)
983
987
DTD (dtd)
984
988
dtrace (d)
@@ -988,71 +992,73 @@ EJS (ejs)
988
992
Elixir (ex, exs)
989
993
Elm (elm)
990
994
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 )
993
997
Expect (exp)
994
998
F# (fsi, fs, fs)
995
999
F# Script (fsx)
996
1000
Fennel (fnl)
997
1001
Fish Shell (fish)
998
1002
Focus (focexec)
999
1003
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)
1001
1005
Fortran 90 (f90, F90)
1002
- Fortran 95 (f95, F95 )
1006
+ Fortran 95 (F95, f95 )
1003
1007
Freemarker Template (ftl)
1004
1008
FXML (fxml)
1005
1009
GDScript (gd)
1006
1010
Gencat NLS (msg)
1007
1011
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 )
1009
1013
Go (go)
1010
1014
Gradle (gradle, gradle.kts)
1011
1015
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 )
1015
1019
Handlebars (handlebars, hbs)
1016
1020
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)
1021
1025
Hoon (hoon)
1022
- HTML (htm, html)
1023
- IDL (idl, pro)
1026
+ HTML (htm, html, html.hl, xht )
1027
+ IDL (dlm, idl, pro)
1024
1028
Idris (idr)
1025
1029
Igor Pro (ipf)
1026
- INI (ini)
1030
+ Imba (imba)
1031
+ INI (buildozer.spec, ini, lektorproject, prefs)
1027
1032
InstallShield (ism)
1033
+ IPL (ipl)
1028
1034
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 )
1030
1036
JavaServer Faces (jsf)
1031
1037
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 )
1033
1039
JSON5 (json5)
1034
1040
JSP (jsp, jspf)
1035
1041
JSX (jsx)
1036
1042
Julia (jl)
1037
1043
Jupyter Notebook (ipynb)
1038
1044
Kermit (ksc)
1039
1045
Korn Shell (ksh)
1040
- Kotlin (kt, kts)
1041
- Lean (lean)
1046
+ Kotlin (kt, ktm, kts)
1047
+ Lean (hlean, lean)
1042
1048
LESS (less)
1043
- lex (l)
1049
+ lex (l, lex )
1044
1050
LFE (lfe)
1045
1051
liquid (liquid)
1046
1052
Lisp (asd, el, lisp, lsp, cl, jl)
1047
1053
Literate Idris (lidr)
1048
1054
LiveLink OScript (oscript)
1049
1055
Logtalk (lgt, logtalk)
1050
- Lua (lua)
1056
+ Lua (lua, nse, p8, pd_lua, rbxs, wlua )
1051
1057
m4 (ac, m4)
1052
1058
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)
1056
1062
MATLAB (m)
1057
1063
Maven (pom, pom.xml)
1058
1064
Modula3 (i3, ig, m3, mg)
@@ -1063,54 +1069,55 @@ MXML (mxml)
1063
1069
NAnt script (build)
1064
1070
NASTRAN DMAP (dmap)
1065
1071
Nemerle (n)
1066
- Nim (nim)
1072
+ Nim (nim, nim.cfg, nimble, nimrod, nims )
1067
1073
Nix (nix)
1068
1074
Objective C (m)
1069
1075
Objective C++ (mm)
1070
- OCaml (ml , mli, mll, mly)
1076
+ OCaml (eliom, eliomi, ml, ml4 , mli, mll, mly)
1071
1077
OpenCL (cl)
1072
1078
Oracle Forms (fmt)
1073
1079
Oracle PL/SQL (bod, fnc, prc, spc, trg)
1074
1080
Oracle Reports (rex)
1075
- Pascal (dpr, p, pas)
1081
+ Pascal (dfm, dpr, lpr, p, pas, pascal )
1076
1082
Pascal/Puppet (pp)
1077
1083
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)
1080
1086
PHP/Pascal (inc)
1081
1087
Pig Latin (pig)
1082
1088
PL/I (pl1)
1083
1089
PL/M (lit, plm)
1084
1090
PO File (po)
1085
- PowerBuilder (sra, srf, srm, srs, sru, srw)
1091
+ PowerBuilder (pbt, sra, srf, srm, srs, sru, srw)
1086
1092
PowerShell (ps1, psd1, psm1)
1087
1093
ProGuard (pro)
1088
- Prolog (P, pl, pro)
1094
+ Prolog (P, prolog, yap, pl, pro)
1089
1095
Protocol Buffers (proto)
1090
- Pug (pug)
1096
+ Pug (jade, pug)
1091
1097
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)
1094
1100
Qt (ui)
1095
1101
Qt Linguist (ts)
1096
1102
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)
1099
1105
RAML (raml)
1100
1106
RapydScript (pyj)
1101
1107
Razor (cshtml)
1102
1108
ReasonML (re, rei)
1103
- reStructuredText (rst)
1104
- Rexx (rexx)
1109
+ reStructuredText (rest, rest.txt, rst, rst.txt )
1110
+ Rexx (pprx, rexx)
1105
1111
Rmd (Rmd)
1106
1112
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 )
1108
1114
Ruby HTML (rhtml)
1109
- Rust (rs)
1115
+ Rust (rs, rs.in)
1116
+ SaltStack (sls)
1110
1117
SAS (sas)
1111
1118
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 )
1114
1121
sed (sed)
1115
1122
SKILL (il)
1116
1123
SKILL++ (ils)
@@ -1122,20 +1129,21 @@ Softbridge Basic (sbl, SBL)
1122
1129
Solidity (sol)
1123
1130
SparForte (sp)
1124
1131
Specman e (e)
1125
- SQL (psql, sql, SQL)
1132
+ SQL (cql, mysql, psql, sql, SQL, tab, udf, viw )
1126
1133
SQL Data (data.sql)
1127
1134
SQL Stored Procedure (spc.sql, spoc.sql, sproc.sql, udf.sql)
1128
1135
Standard ML (fun, sig, sml)
1129
1136
Starlark (bzl)
1130
- Stata (do, DO)
1137
+ Stata (ado, do, DO, doh, ihlp, mata, matah, sthlp )
1131
1138
Stylus (styl)
1132
1139
SVG (svg, SVG)
1133
1140
Swift (swift)
1134
1141
SWIG (i)
1135
1142
Tcl/Tk (itk, tcl, tk)
1136
1143
Teamcenter met (met)
1137
1144
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)
1139
1147
TITAN Project File Information (tpd)
1140
1148
Titanium Style Sheet (tss)
1141
1149
TOML (toml)
@@ -1147,9 +1155,9 @@ Vala (vala)
1147
1155
Vala Header (vapi)
1148
1156
Velocity Template Language (vm)
1149
1157
Verilog-SystemVerilog (sv, svh, v)
1150
- VHDL (VHD, vhd, vhdl, VHDL)
1158
+ VHDL (VHD, vhd, vhdl, VHDL, vhf, vhi, vho, vhs, vht, vhw )
1151
1159
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)
1153
1161
Visual Fox Pro (SCA, sca)
1154
1162
Visualforce Component (component)
1155
1163
Visualforce Page (page)
@@ -1162,17 +1170,17 @@ WiX include (wxi)
1162
1170
WiX source (wxs)
1163
1171
WiX string localization (wxl)
1164
1172
XAML (xaml)
1165
- xBase (prg)
1173
+ xBase (prg, prw )
1166
1174
xBase Header (ch)
1167
1175
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 )
1171
1179
XSD (xsd, XSD)
1172
- XSLT (xsl, XSL, XSLT , xslt)
1180
+ XSLT (XSL, xsl , xslt, XSLT )
1173
1181
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 )
1176
1184
zsh (zsh)
1177
1185
</pre >
1178
1186
0 commit comments