devel/loccount 2.16_7 DragonFly
Count source lines of code in a project
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- BSD2CLAUSE
- Categories
- devel
- Package size
- 837.4 KiB, 2392.3 KiB installed
Description
loccount is a re-implementation of David A. Wheeler's sloccount tool in Go. It is faster, handles more different languages, can report LLOC as well as SLOC, and can do COCOMO II as well as COCOMO I estimates. 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.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/loccount | 2.16_7 |
| FreeBSD | devel/loccount | 2.25_1 |
| OpenBSD | textproc/loccount | 2.16p0 |
| HardenedBSD | devel/loccount | 2.22_5 |
| GhostBSD | devel/loccount | 2.22_5 |
Install
Binary package:
pkg install loccount
From DPorts:
cd /usr/dports/devel/loccount && make install clean
Dependencies
No port depends on this one.