Skip to content

Commit

Permalink
v1.90
Browse files Browse the repository at this point in the history
  • Loading branch information
AlDanial committed May 1, 2021
1 parent 8cb00d4 commit 9007048
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 20 deletions.
39 changes: 31 additions & 8 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.88 (Sept. 12, 2020)
Latest release: v1.90 (May 1, 2021)

cloc moved to GitHub in September 2015 after being hosted
at http://cloc.sourceforge.net/ since August 2006.
Expand Down Expand Up @@ -57,8 +57,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.88.pl`) or a Windows executable
(`cloc-1.88.exe`). On this page, `cloc` is the generic term
released version (`cloc-1.90.pl`) or a Windows executable
(`cloc-1.90.exe`). On this page, `cloc` is the generic term
used to refer to any of these.

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

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

cloc-1.90.exe:
https://www.virustotal.com/gui/file/d655caae55486f9bac39f7e3c7b7553bcfcfe2b88914c79bfc328055f22b8a37/detection

cloc-1.88.exe:
https://www.virustotal.com/gui/file/97d5d2631d1cccdbfd99267ab8a4cf5968816bbe52c0f9324e72e768857f642d/detection

Expand Down Expand Up @@ -468,7 +472,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.86.exe cloc-1.86.pl
C:> pp -M Digest::MD5 -c -x -o cloc-1.90.exe cloc-1.90.pl
</pre>

A variation on the instructions above is if you installed the portable
Expand Down Expand Up @@ -1006,6 +1010,8 @@ Assembly (a51, asm, nasm, S, s)
AutoHotkey (ahk, ahkl)
awk (auk, awk, gawk, mawk, nawk)
Bazel (bazel, BUILD)
BizTalk Orchestration (odx)
BizTalk Pipeline (btp)
Blade (blade, blade.php)
Bourne Again Shell (bash)
Bourne Shell (sh)
Expand All @@ -1014,8 +1020,10 @@ builder (xml.builder)
C (c, cats, ec, idc, pgc)
C Shell (csh, tcsh)
C# (cs)
C# Designer (designer.cs)
C++ (C, c++, cc, CPP, cpp, cxx, h++, inl, ipp, pcc, tcc, tpp)
C/C++ Header (H, h, hh, hpp, hxx)
Cake Build Script (cake)
CCS (ccs)
Chapel (chpl)
Clean (dcl, icl)
Expand All @@ -1031,16 +1039,19 @@ Coq (v)
Crystal (cr)
CSON (cson)
CSS (css)
CSV (csv)
Cucumber (feature)
CUDA (cu, cuh)
Cython (pxd, pxi, pyx)
D (d)
DAL (da)
Dart (dart)
Delphi Form (dfm)
dhall (dhall)
DIET (dt)
diff (diff, patch)
DITA (dita)
Dockerfile (Dockerfile, dockerfile)
DOORS Extension Language (dxl)
DOS Batch (BAT, bat, BTM, btm, CMD, cmd)
Drools (drl)
Expand Down Expand Up @@ -1069,8 +1080,11 @@ FXML (fxml)
GDScript (gd)
Gencat NLS (msg)
Glade (glade, ui)
Gleam (gleam)
GLSL (comp, fp, frag, frg, fsh, fshader, geo, geom, glsl, glslv, gshader, tesc, tese, vert, vrx, vsh, vshader)
Go (go)
Godot Resource (tres)
Godot Scene (tscn)
Gradle (gradle, gradle.kts)
Grails (gsp)
GraphQL (gql, graphql, graphqls)
Expand Down Expand Up @@ -1101,6 +1115,7 @@ JSON5 (json5)
JSP (jsp, jspf)
JSX (jsx)
Julia (jl)
Juniper Junos (junos)
Jupyter Notebook (ipynb)
Kermit (ksc)
Korn Shell (ksh)
Expand All @@ -1127,7 +1142,7 @@ Maven (pom, pom.xml)
Meson (meson.build)
Modula3 (i3, ig, m3, mg)
Mojo (mojom)
MSBuild script (csproj, vbproj, vcproj, wdproj, wixproj)
MSBuild script (btproj, csproj, msbuild, vcproj, wdproj, wixproj)
MUMPS (mps, m)
Mustache (mustache)
MXML (mxml)
Expand All @@ -1144,7 +1159,7 @@ OpenCL (cl)
Oracle Forms (fmt)
Oracle PL/SQL (bod, fnc, prc, spc, trg)
Oracle Reports (rex)
Pascal (dfm, dpr, lpr, p, pas, pascal)
Pascal (dpr, lpr, p, pas, pascal)
Pascal/Puppet (pp)
Patran Command Language (pcl, ses)
Perl (ack, al, cpanfile, makefile.pl, perl, ph, plh, plx, pm, psgi, rexfile, pl, p6)
Expand Down Expand Up @@ -1174,8 +1189,10 @@ RAML (raml)
RapydScript (pyj)
Razor (cshtml, razor)
ReasonML (re, rei)
ReScript (res, resi)
reStructuredText (rest, rest.txt, rst, rst.txt)
Rexx (pprx, rexx)
Ring (rform, rh, ring)
Rmd (Rmd)
RobotFramework (robot)
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)
Expand Down Expand Up @@ -1225,15 +1242,20 @@ TypeScript (tsx, ts)
Unity-Prefab (mat, prefab)
Vala (vala)
Vala Header (vapi)
VB for Applications (VBA, vba)
Velocity Template Language (vm)
Verilog-SystemVerilog (sv, svh, v)
VHDL (VHD, vhd, VHDL, vhdl, vhf, vhi, vho, vhs, vht, vhw)
vim script (vim)
Visual Basic (BAS, bas, ctl, dsr, frm, FRX, frx, VB, vb, VBA, vba, VBHTML, vbhtml, VBS, vbs, cls)
Visual Basic (BAS, bas, ctl, dsr, frm, FRX, frx, VBHTML, vbhtml, vbp, vbw, cls)
Visual Basic .NET (VB, vb, vbproj)
Visual Basic Script (VBS, vbs)
Visual Fox Pro (SCA, sca)
Visual Studio Solution (sln)
Visualforce Component (component)
Visualforce Page (page)
Vuejs Component (vue)
Web Services Description (wsdl)
WebAssembly (wast, wat)
Windows Message File (mc)
Windows Module Definition (def)
Expand All @@ -1255,6 +1277,7 @@ XSLT (XSL, xsl, XSLT, xslt)
Xtend (xtend)
yacc (y, yacc)
YAML (clang-format, clang-tidy, gemrc, glide.lock, mir, reek, rviz, sublime-syntax, syntax, yaml, yaml-tmlanguage, yml, yml.mysql)
Zig (zig)
zsh (zsh)
</pre>

Expand Down
77 changes: 69 additions & 8 deletions Unix/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,65 @@

Release Notes for cloc version 1.90
https://github.com/AlDanial/cloc
May 1, 2021

New Languages and File Types:
o BizTalk Orchestration
o BizTalk Pipeline
o Cake Build Script
o C# Designer
o CSV
o Delphi Form
o Gleam
o Godot Resource
o Godot Scene
o Juniper Junos
o ReScript
o Ring
o Visual Studio Solution
o Web Services Description
o Zig

Updates:
o Dockerfile: add .[dD]ockerfile as an extension; treat
files named Dockerfile.ext as Dockerfile unless ext
maps to a recognized language other than cmake or m4.
o Identify autogenerated C# files.
o If getting input from a list file or using a language
definition file, also check for (and use, if it exists)
an options.txt file in the same directory.
o Use --csv-delimiter for --ignored, --categorized output.
o Support diff summation in csv format.
o Update cloc's Unix Makefile to support macOS
o Rename Junos to Juniper Junos
o Stratify Visual Basic to for Applications, .NET, Script
o Use tar on Windows 10 instead of zip with --git --diff
o Track upper/lowercase file names on Windows to permit
consistent diffs.
o Support nested Elm comments.
o Update to Regexp::Common 2017060201.
o Minimum Perl version is now 5.10.0
o New options --skip-leading, --summary-cutoff
o Refine comment definitions for ASP.NET, Razor
o Handle Julia docstrings.
o Adjust timeout and diff_timeout values to avoid alarm
overflows.
o Add extensions .btproj, .msbuild for MSBuild script

Bug Fixes:
o Add missing Raku_or_Prolog() subroutine.
o Handle UTF encoded list files (file given to --list-file).
o Improved support for options parsing from config file.
o Catch unidentified files via --diff-list-file.
o Don't insert extra newlines when stripping with --unicode.
o Strip literal '\x' from JSON output strings.
o Improve logic for detecting Unicode files less than
90 bytes in size.
o Fix divide by zero classifying nonreadable .b files.
o Escape backslash for 'report_file' entry in JSON, YAML on
Windows.

============================================================================
Release Notes for cloc version 1.88
https://github.com/AlDanial/cloc
Sept. 12, 2020
Expand Down Expand Up @@ -27,7 +89,6 @@ Bug Fixes:
o Don't insert extra newlines when stripping with --unicode.

============================================================================
Release Notes for cloc version 1.86
Release Notes for cloc version 1.86
https://github.com/AlDanial/cloc
May 17, 2020
Expand Down Expand Up @@ -140,7 +201,7 @@ Updates:
logic.
o Improve Perl v. Prolog identification.
o New switch --docstring-as-code to count Python docstrings as code.
o Partial support for Lua nested comments.
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.
Expand Down Expand Up @@ -315,7 +376,7 @@ Updates:
on older versions of Perl on Windows).
o Put timeout around Regexp::Common regex evaluation to prevent
hangs on unbalanced comment markers within huge strings (issue 206).
o Fix Pascal regex with '{' for Perl version >= 5.26 (issue 209)
o Fix Pascal regex wiht '{' for Perl version >= 5.26 (issue 209)
and '(*', '*)' comment matching (issue 212).
o Rename Antlr to ANTLR Grammar.
o Add .g4 extension fo ANTLR Grammar.
Expand Down Expand Up @@ -587,7 +648,7 @@ Updates:
o Change --sql schema by adding fields File_dirname, File_basename to
table 't' of SQL output to simplify obtaining per-directory metrics
o Escape embedded single quotes in file names (bug #127) for SQL output.
o Improved language detection for Objective-C (earlier misidentified
o Improved language detection for Objective C (earlier misidentified
as MATLAB or other .m languages).
o Sort duplicate file lists by full path instead of basename to give
repeatable output.
Expand Down Expand Up @@ -742,7 +803,7 @@ New Languages:
Updates:
o Improved handling of UTF-16 (both little and big endian).
o use Time::HiRes if available.
o Improved logic that distinguishes between Objective-C,
o Improved logic that distinguishes between Objective C,
MUMPS and MATLAB files.
o Added information about duplicate files to output created
by --ignored.
Expand Down Expand Up @@ -823,7 +884,7 @@ New options and features:
processing filters with custom settings. The problem with this
option is that it overwrites internal logic that handles languages
which map to the same file extension. Currently these are
MATLAB/Objective-C/MUMPS -> .m
MATLAB/Objective C/MUMPS -> .m
Pascal/PHP -> .inc
Lisp/OpenCL -> .cl
The logic needed to handle these extension collisions is not
Expand Down Expand Up @@ -950,7 +1011,7 @@ New options and features:
New Languages:
o CMake
o Cython
o Objective-C++
o Objective C++
o Ocaml
o Smarty

Expand Down Expand Up @@ -1057,7 +1118,7 @@ Bug Fixes:
IDL: Include .pro as a recognized file extension.

--3:
o Correct XSLT style when running with --3.
o Correct XSLT syle when running with --3.

--diff:
o Implemented YAML output option.
Expand Down
4 changes: 2 additions & 2 deletions 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.89"; # odd number == beta; even number == stable
my $VERSION = "1.90"; # 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 Expand Up @@ -464,7 +464,7 @@ Usage: $script [options] <file(s)/dir(s)/git hash(es)> | <set 1> <set 2> | <repo
name per line. Only exact matches are ignored;
relative path names will be resolved starting from
the directory where cloc is invoked.
See also --list-file.
See also --list-file, --config.
--fullpath Modifies the behavior of --match-f, --not-match-f,
and --not-match-d to include the file's path
in the regex, not just the file's basename.
Expand Down
4 changes: 2 additions & 2 deletions 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.89"; # odd number == beta; even number == stable
my $VERSION = "1.90"; # 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 Expand Up @@ -488,7 +488,7 @@ Usage: $script [options] <file(s)/dir(s)/git hash(es)> | <set 1> <set 2> | <repo
name per line. Only exact matches are ignored;
relative path names will be resolved starting from
the directory where cloc is invoked.
See also --list-file.
See also --list-file, --config.
--fullpath Modifies the behavior of --match-f, --not-match-f,
and --not-match-d to include the file's path
in the regex, not just the file's basename.
Expand Down

0 comments on commit 9007048

Please sign in to comment.