github AlDanial/cloc v2.00

latest release: v2.02
8 months ago

Note: There are no breaking changes between the 1.xx versions and this 2.00 release.

New Languages and File Types:

  • AnsProlog
  • AppleScript
  • ArkTs
  • Astro
  • Dafny
  • PlusCal
  • Prisma Schema
  • PRQL
  • Slint
  • Snakemake
  • TLA+
  • vyper

Updates:

  • Five new output formats with the new --fmt switch. Includes the often- requested addition of language name with --by-file counts.
  • *.o.d files are ignored
  • Added .j2 as a Jinja Template extension.
  • Added .mts as a TypeScript extension.
  • Added .iuml, .pu. .plantuml, .wsd as as PlantUML extensions.
  • Support Java block comments.
  • More consistent and accurate results from --diff.
  • Disambiguate .inc files among PHP, Pascal, and Fortran.
  • Ignore .gitattribute files.
  • Improved support for --exclude-list-file.
  • Fix JSON output generator which inserted a superfluous comma.
  • Recognize autogenerated C# SpecFlow files and ignore them with --no-autogen.
  • Support --list-file with --git-diff-*.
  • SQL output: add foreign key 'id' to table t referencing 'id' in the metadata table. The key value is Unix epoch seconds when cloc was invoked.
  • Support // comments in ReasonML.
  • Support directories in exclusion list files; all files below the named directories are excluded.
  • Support --exclude-file-list with --git --diff.
  • New switch, --strip-code, which attempts to only leave comments in the output file.

Bug fixes:

  • More accurate counts of XML with block comments.
  • More accurate counts of Java with block comments and comment markers within strings.
  • Fix improper handling of --match-d and --not-match-d.

Don't miss a new cloc release

NewReleases is sending notifications on new releases.