MyNixOS website logo
Description

Re-implementation of sloccount in Go.

loccount is a re-implementation of David A. Wheeler's sloccount tool in Go. It is faster and handles more different languages. Because it's one source file in Go, it is easier to maintain and extend than the multi-file, multi-language implementation of the original.

The algorithms are largely unchanged and can be expected to produce identical numbers for languages supported by both tools. Python is an exception; loccount corrects buggy counting of single-quote multiline literals in sloccount 2.26.

Metadata

Version

2.15

Maintainers (1)

Executables (1)

  • bin/loccount

Platforms (25)

    Darwin
    Linux
Show all
  • aarch64-darwin
  • aarch64-linux
  • armv5tel-linux
  • armv6l-linux
  • armv7a-darwin
  • armv7a-linux
  • armv7l-linux
  • i686-darwin
  • i686-linux
  • loongarch64-linux
  • m68k-linux
  • microblaze-linux
  • microblazeel-linux
  • mips-linux
  • mips64-linux
  • mips64el-linux
  • mipsel-linux
  • powerpc64-linux
  • powerpc64le-linux
  • riscv32-linux
  • riscv64-linux
  • s390-linux
  • s390x-linux
  • x86_64-darwin
  • x86_64-linux