Skip to content

Commit 9007048

Browse files
committed
v1.90
1 parent 8cb00d4 commit 9007048

File tree

4 files changed

+104
-20
lines changed

4 files changed

+104
-20
lines changed

README.md

+31-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* * *
66
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
77

8-
Latest release: v1.88 (Sept. 12, 2020)
8+
Latest release: v1.90 (May 1, 2021)
99

1010
cloc moved to GitHub in September 2015 after being hosted
1111
at http://cloc.sourceforge.net/ since August 2006.
@@ -57,8 +57,8 @@ Step 3: Invoke cloc to count your source files, directories, archives,
5757
or git commits.
5858
The executable name differs depending on whether you use the
5959
development source version (`cloc`), source for a
60-
released version (`cloc-1.88.pl`) or a Windows executable
61-
(`cloc-1.88.exe`). On this page, `cloc` is the generic term
60+
released version (`cloc-1.90.pl`) or a Windows executable
61+
(`cloc-1.90.exe`). On this page, `cloc` is the generic term
6262
used to refer to any of these.
6363

6464
**a file**
@@ -355,7 +355,8 @@ and Digest::MD5 installed locally.
355355
# [Building a Windows Executable ▲](#___top "click to go to top of document")
356356

357357
The Windows downloads
358-
<tt>cloc-1.88.exe</tt> was built on a 64 bit Windows 10 computer
358+
<tt>cloc-1.90.exe</tt> and
359+
<tt>cloc-1.88.exe</tt> were built on a 64 bit Windows 10 computer
359360
using
360361
[Strawberry Perl](http://strawberryperl.com/)
361362
5.30.2 and
@@ -398,6 +399,9 @@ executable and also check sites such
398399
https://www.virustotal.com/ .
399400
The entries for recent versions are:
400401

402+
cloc-1.90.exe:
403+
https://www.virustotal.com/gui/file/d655caae55486f9bac39f7e3c7b7553bcfcfe2b88914c79bfc328055f22b8a37/detection
404+
401405
cloc-1.88.exe:
402406
https://www.virustotal.com/gui/file/97d5d2631d1cccdbfd99267ab8a4cf5968816bbe52c0f9324e72e768857f642d/detection
403407

@@ -468,7 +472,7 @@ C:> cpan -i Digest::MD5
468472
C:> cpan -i Regexp::Common
469473
C:> cpan -i Algorithm::Diff
470474
C:> cpan -i PAR::Packer
471-
C:> pp -M Digest::MD5 -c -x -o cloc-1.86.exe cloc-1.86.pl
475+
C:> pp -M Digest::MD5 -c -x -o cloc-1.90.exe cloc-1.90.pl
472476
</pre>
473477

474478
A variation on the instructions above is if you installed the portable
@@ -1006,6 +1010,8 @@ Assembly (a51, asm, nasm, S, s)
10061010
AutoHotkey (ahk, ahkl)
10071011
awk (auk, awk, gawk, mawk, nawk)
10081012
Bazel (bazel, BUILD)
1013+
BizTalk Orchestration (odx)
1014+
BizTalk Pipeline (btp)
10091015
Blade (blade, blade.php)
10101016
Bourne Again Shell (bash)
10111017
Bourne Shell (sh)
@@ -1014,8 +1020,10 @@ builder (xml.builder)
10141020
C (c, cats, ec, idc, pgc)
10151021
C Shell (csh, tcsh)
10161022
C# (cs)
1023+
C# Designer (designer.cs)
10171024
C++ (C, c++, cc, CPP, cpp, cxx, h++, inl, ipp, pcc, tcc, tpp)
10181025
C/C++ Header (H, h, hh, hpp, hxx)
1026+
Cake Build Script (cake)
10191027
CCS (ccs)
10201028
Chapel (chpl)
10211029
Clean (dcl, icl)
@@ -1031,16 +1039,19 @@ Coq (v)
10311039
Crystal (cr)
10321040
CSON (cson)
10331041
CSS (css)
1042+
CSV (csv)
10341043
Cucumber (feature)
10351044
CUDA (cu, cuh)
10361045
Cython (pxd, pxi, pyx)
10371046
D (d)
10381047
DAL (da)
10391048
Dart (dart)
1049+
Delphi Form (dfm)
10401050
dhall (dhall)
10411051
DIET (dt)
10421052
diff (diff, patch)
10431053
DITA (dita)
1054+
Dockerfile (Dockerfile, dockerfile)
10441055
DOORS Extension Language (dxl)
10451056
DOS Batch (BAT, bat, BTM, btm, CMD, cmd)
10461057
Drools (drl)
@@ -1069,8 +1080,11 @@ FXML (fxml)
10691080
GDScript (gd)
10701081
Gencat NLS (msg)
10711082
Glade (glade, ui)
1083+
Gleam (gleam)
10721084
GLSL (comp, fp, frag, frg, fsh, fshader, geo, geom, glsl, glslv, gshader, tesc, tese, vert, vrx, vsh, vshader)
10731085
Go (go)
1086+
Godot Resource (tres)
1087+
Godot Scene (tscn)
10741088
Gradle (gradle, gradle.kts)
10751089
Grails (gsp)
10761090
GraphQL (gql, graphql, graphqls)
@@ -1101,6 +1115,7 @@ JSON5 (json5)
11011115
JSP (jsp, jspf)
11021116
JSX (jsx)
11031117
Julia (jl)
1118+
Juniper Junos (junos)
11041119
Jupyter Notebook (ipynb)
11051120
Kermit (ksc)
11061121
Korn Shell (ksh)
@@ -1127,7 +1142,7 @@ Maven (pom, pom.xml)
11271142
Meson (meson.build)
11281143
Modula3 (i3, ig, m3, mg)
11291144
Mojo (mojom)
1130-
MSBuild script (csproj, vbproj, vcproj, wdproj, wixproj)
1145+
MSBuild script (btproj, csproj, msbuild, vcproj, wdproj, wixproj)
11311146
MUMPS (mps, m)
11321147
Mustache (mustache)
11331148
MXML (mxml)
@@ -1144,7 +1159,7 @@ OpenCL (cl)
11441159
Oracle Forms (fmt)
11451160
Oracle PL/SQL (bod, fnc, prc, spc, trg)
11461161
Oracle Reports (rex)
1147-
Pascal (dfm, dpr, lpr, p, pas, pascal)
1162+
Pascal (dpr, lpr, p, pas, pascal)
11481163
Pascal/Puppet (pp)
11491164
Patran Command Language (pcl, ses)
11501165
Perl (ack, al, cpanfile, makefile.pl, perl, ph, plh, plx, pm, psgi, rexfile, pl, p6)
@@ -1174,8 +1189,10 @@ RAML (raml)
11741189
RapydScript (pyj)
11751190
Razor (cshtml, razor)
11761191
ReasonML (re, rei)
1192+
ReScript (res, resi)
11771193
reStructuredText (rest, rest.txt, rst, rst.txt)
11781194
Rexx (pprx, rexx)
1195+
Ring (rform, rh, ring)
11791196
Rmd (Rmd)
11801197
RobotFramework (robot)
11811198
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)
@@ -1225,15 +1242,20 @@ TypeScript (tsx, ts)
12251242
Unity-Prefab (mat, prefab)
12261243
Vala (vala)
12271244
Vala Header (vapi)
1245+
VB for Applications (VBA, vba)
12281246
Velocity Template Language (vm)
12291247
Verilog-SystemVerilog (sv, svh, v)
12301248
VHDL (VHD, vhd, VHDL, vhdl, vhf, vhi, vho, vhs, vht, vhw)
12311249
vim script (vim)
1232-
Visual Basic (BAS, bas, ctl, dsr, frm, FRX, frx, VB, vb, VBA, vba, VBHTML, vbhtml, VBS, vbs, cls)
1250+
Visual Basic (BAS, bas, ctl, dsr, frm, FRX, frx, VBHTML, vbhtml, vbp, vbw, cls)
1251+
Visual Basic .NET (VB, vb, vbproj)
1252+
Visual Basic Script (VBS, vbs)
12331253
Visual Fox Pro (SCA, sca)
1254+
Visual Studio Solution (sln)
12341255
Visualforce Component (component)
12351256
Visualforce Page (page)
12361257
Vuejs Component (vue)
1258+
Web Services Description (wsdl)
12371259
WebAssembly (wast, wat)
12381260
Windows Message File (mc)
12391261
Windows Module Definition (def)
@@ -1255,6 +1277,7 @@ XSLT (XSL, xsl, XSLT, xslt)
12551277
Xtend (xtend)
12561278
yacc (y, yacc)
12571279
YAML (clang-format, clang-tidy, gemrc, glide.lock, mir, reek, rviz, sublime-syntax, syntax, yaml, yaml-tmlanguage, yml, yml.mysql)
1280+
Zig (zig)
12581281
zsh (zsh)
12591282
</pre>
12601283

Unix/NEWS

+69-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
2+
Release Notes for cloc version 1.90
3+
https://github.com/AlDanial/cloc
4+
May 1, 2021
5+
6+
New Languages and File Types:
7+
o BizTalk Orchestration
8+
o BizTalk Pipeline
9+
o Cake Build Script
10+
o C# Designer
11+
o CSV
12+
o Delphi Form
13+
o Gleam
14+
o Godot Resource
15+
o Godot Scene
16+
o Juniper Junos
17+
o ReScript
18+
o Ring
19+
o Visual Studio Solution
20+
o Web Services Description
21+
o Zig
22+
23+
Updates:
24+
o Dockerfile: add .[dD]ockerfile as an extension; treat
25+
files named Dockerfile.ext as Dockerfile unless ext
26+
maps to a recognized language other than cmake or m4.
27+
o Identify autogenerated C# files.
28+
o If getting input from a list file or using a language
29+
definition file, also check for (and use, if it exists)
30+
an options.txt file in the same directory.
31+
o Use --csv-delimiter for --ignored, --categorized output.
32+
o Support diff summation in csv format.
33+
o Update cloc's Unix Makefile to support macOS
34+
o Rename Junos to Juniper Junos
35+
o Stratify Visual Basic to for Applications, .NET, Script
36+
o Use tar on Windows 10 instead of zip with --git --diff
37+
o Track upper/lowercase file names on Windows to permit
38+
consistent diffs.
39+
o Support nested Elm comments.
40+
o Update to Regexp::Common 2017060201.
41+
o Minimum Perl version is now 5.10.0
42+
o New options --skip-leading, --summary-cutoff
43+
o Refine comment definitions for ASP.NET, Razor
44+
o Handle Julia docstrings.
45+
o Adjust timeout and diff_timeout values to avoid alarm
46+
overflows.
47+
o Add extensions .btproj, .msbuild for MSBuild script
48+
49+
Bug Fixes:
50+
o Add missing Raku_or_Prolog() subroutine.
51+
o Handle UTF encoded list files (file given to --list-file).
52+
o Improved support for options parsing from config file.
53+
o Catch unidentified files via --diff-list-file.
54+
o Don't insert extra newlines when stripping with --unicode.
55+
o Strip literal '\x' from JSON output strings.
56+
o Improve logic for detecting Unicode files less than
57+
90 bytes in size.
58+
o Fix divide by zero classifying nonreadable .b files.
59+
o Escape backslash for 'report_file' entry in JSON, YAML on
60+
Windows.
61+
62+
============================================================================
163
Release Notes for cloc version 1.88
264
https://github.com/AlDanial/cloc
365
Sept. 12, 2020
@@ -27,7 +89,6 @@ Bug Fixes:
2789
o Don't insert extra newlines when stripping with --unicode.
2890

2991
============================================================================
30-
Release Notes for cloc version 1.86
3192
Release Notes for cloc version 1.86
3293
https://github.com/AlDanial/cloc
3394
May 17, 2020
@@ -140,7 +201,7 @@ Updates:
140201
logic.
141202
o Improve Perl v. Prolog identification.
142203
o New switch --docstring-as-code to count Python docstrings as code.
143-
o Partial support for Lua nested comments.
204+
o Partial support fot Lua nested comments.
144205
o Renamed Skylark to Starlark.
145206
o Modified Java filter to try to handle embedded comments better.
146207
o Recognize groovy as one of the #! languages.
@@ -315,7 +376,7 @@ Updates:
315376
on older versions of Perl on Windows).
316377
o Put timeout around Regexp::Common regex evaluation to prevent
317378
hangs on unbalanced comment markers within huge strings (issue 206).
318-
o Fix Pascal regex with '{' for Perl version >= 5.26 (issue 209)
379+
o Fix Pascal regex wiht '{' for Perl version >= 5.26 (issue 209)
319380
and '(*', '*)' comment matching (issue 212).
320381
o Rename Antlr to ANTLR Grammar.
321382
o Add .g4 extension fo ANTLR Grammar.
@@ -587,7 +648,7 @@ Updates:
587648
o Change --sql schema by adding fields File_dirname, File_basename to
588649
table 't' of SQL output to simplify obtaining per-directory metrics
589650
o Escape embedded single quotes in file names (bug #127) for SQL output.
590-
o Improved language detection for Objective-C (earlier misidentified
651+
o Improved language detection for Objective C (earlier misidentified
591652
as MATLAB or other .m languages).
592653
o Sort duplicate file lists by full path instead of basename to give
593654
repeatable output.
@@ -742,7 +803,7 @@ New Languages:
742803
Updates:
743804
o Improved handling of UTF-16 (both little and big endian).
744805
o use Time::HiRes if available.
745-
o Improved logic that distinguishes between Objective-C,
806+
o Improved logic that distinguishes between Objective C,
746807
MUMPS and MATLAB files.
747808
o Added information about duplicate files to output created
748809
by --ignored.
@@ -823,7 +884,7 @@ New options and features:
823884
processing filters with custom settings. The problem with this
824885
option is that it overwrites internal logic that handles languages
825886
which map to the same file extension. Currently these are
826-
MATLAB/Objective-C/MUMPS -> .m
887+
MATLAB/Objective C/MUMPS -> .m
827888
Pascal/PHP -> .inc
828889
Lisp/OpenCL -> .cl
829890
The logic needed to handle these extension collisions is not
@@ -950,7 +1011,7 @@ New options and features:
9501011
New Languages:
9511012
o CMake
9521013
o Cython
953-
o Objective-C++
1014+
o Objective C++
9541015
o Ocaml
9551016
o Smarty
9561017

@@ -1057,7 +1118,7 @@ Bug Fixes:
10571118
IDL: Include .pro as a recognized file extension.
10581119

10591120
--3:
1060-
o Correct XSLT style when running with --3.
1121+
o Correct XSLT syle when running with --3.
10611122

10621123
--diff:
10631124
o Implemented YAML output option.

Unix/cloc

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# <http://www.gnu.org/licenses/gpl.txt>.
3030
#
3131
# 1}}}
32-
my $VERSION = "1.89"; # odd number == beta; even number == stable
32+
my $VERSION = "1.90"; # odd number == beta; even number == stable
3333
my $URL = "github.com/AlDanial/cloc"; # 'https://' pushes header too wide
3434
require 5.006;
3535
# use modules {{{1
@@ -464,7 +464,7 @@ Usage: $script [options] <file(s)/dir(s)/git hash(es)> | <set 1> <set 2> | <repo
464464
name per line. Only exact matches are ignored;
465465
relative path names will be resolved starting from
466466
the directory where cloc is invoked.
467-
See also --list-file.
467+
See also --list-file, --config.
468468
--fullpath Modifies the behavior of --match-f, --not-match-f,
469469
and --not-match-d to include the file's path
470470
in the regex, not just the file's basename.

cloc

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# <http://www.gnu.org/licenses/gpl.txt>.
3030
#
3131
# 1}}}
32-
my $VERSION = "1.89"; # odd number == beta; even number == stable
32+
my $VERSION = "1.90"; # odd number == beta; even number == stable
3333
my $URL = "github.com/AlDanial/cloc"; # 'https://' pushes header too wide
3434
require 5.006;
3535
# use modules {{{1
@@ -488,7 +488,7 @@ Usage: $script [options] <file(s)/dir(s)/git hash(es)> | <set 1> <set 2> | <repo
488488
name per line. Only exact matches are ignored;
489489
relative path names will be resolved starting from
490490
the directory where cloc is invoked.
491-
See also --list-file.
491+
See also --list-file, --config.
492492
--fullpath Modifies the behavior of --match-f, --not-match-f,
493493
and --not-match-d to include the file's path
494494
in the regex, not just the file's basename.

0 commit comments

Comments
 (0)