OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

loccount-2.16

count lines of codes in many languages

Back to search · Project homepage

Description

loccount counts physical source lines of code. Identifying over 80 languages by file extension and filename pattern, it can also emit results as self-describing JSON and do COCOMO II as well as COCOMO I estimates. loccount is a re-implementation of David A. Wheeler's sloccount tool in Go. Bugs excepted, the largely unchanged algorithms can be expected to produce identical output while supporting more languages.

Package information

Ports path
textproc/loccount
Package architecture
amd64
Maintainer
Klemens Nanni <kn@openbsd.org>
Categories
textproc, lang/python
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Build

Test

Installing and updating packages · Package details as JSON