sloccount
« Back to VersTracker
Description:
Count lines of code in many languages
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: code-analysis metrics productivity developer-tools loc
Install: brew install sloccount
About:
Sloccount is a tool that analyzes source code to count lines of code (LOC) across multiple programming languages. It provides detailed metrics on development effort, including cost and schedule estimates based on the COCOMO model. This helps teams understand project complexity and resource allocation.
Key Features:
  • Supports over 20 programming languages including C, Java, Python, and Perl
  • Generates detailed effort and cost estimates using the COCOMO model
  • Produces easy-to-read reports with language breakdowns and developer statistics
  • Detects duplicate code and identifies potential development bottlenecks
Use Cases:
  • Estimating project size and development costs for budgeting purposes
  • Comparing codebase complexity across different programming languages
  • Auditing code repositories to understand language distribution and effort
Alternatives:
  • cloc – cloc is more actively maintained and faster, but sloccount provides effort/cost estimation features
  • tokei – tokei is extremely fast and modern, but lacks sloccount's detailed effort estimation capabilities
Version History
Detected Version Rev Change Commit
Sep 15, 2025 10:34am 0 VERSION_BUMP 0f0df447
Sep 13, 2024 11:16pm 0 VERSION_BUMP 15b923ec