{
  "version": 1,
  "canonical": "https://xaede.net/work/sloccount",
  "title": "SLOCCount",
  "description": "A code-analysis tool that reports physical source lines, comments, generated-code exclusions and effort estimates built from explicit COCOMO assumptions.",
  "language": "en",
  "manifest": "https://xaede.net/representations/index.json",
  "contentHtml": "<section class=\"detail-intro\"><nav class=\"page-breadcrumb\" aria-label=\"Breadcrumb\"><ol><li><a href=\"/\">Home</a></li><li><a href=\"/work\">Work</a></li><li><span aria-current=\"page\">SLOCCount</span></li></ol></nav><span class=\"eyebrow\">Open-source tool / Python</span><h1>SLOCCount</h1><p class=\"detail-deck\">Make a codebase’s size easier to discuss</p><p class=\"intro-copy\">A code-analysis tool that reports physical source lines, comments, generated-code exclusions and effort estimates built from explicit COCOMO assumptions.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/sloccount\" rel=\"noopener noreferrer\">View the source <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/sloccount/blob/main/README.md\" rel=\"noopener noreferrer\">Project documentation <span aria-hidden=\"true\">↗</span></a></div></section><figure class=\"project-image wide-image\" data-project-visual><a href=\"/media/visuals/projects--sloccount.webp\" class=\"visual-open\" aria-label=\"Open full-size visual: SLOCCount\"><img src=\"/media/visuals/projects--sloccount.webp\" width=\"568\" height=\"462\" alt=\"SLOCCount — report screenshot\"  decoding=\"async\"></a><figcaption>Original public repository image. · <a href=\"/media/visuals/projects--sloccount.webp\">View full size ↗</a> · <a href=\"https://raw.githubusercontent.com/josh-english-2k18/sloccount/main/screenshot.png\" rel=\"noopener noreferrer\">Source</a></figcaption></figure><section class=\"section detail-grid\"><aside><span class=\"eyebrow\">AREAS OF EXPLORATION</span><div class=\"tags\"><span>Python</span><span>Code analysis</span><span>Estimation</span></div><p class=\"small\">MIT · Public repository</p><p class=\"small\">GitHub record: January 8, 2026</p></aside><div class=\"prose\"><section class=\"project-chapter\"><h2>Separate the inventory from the estimate</h2><p>SLOCCount examines the physical shape of a codebase: source lines, comments, blank lines, language distribution and a lightweight complexity proxy. It then offers a separate estimation layer built around explicit COCOMO II assumptions. Keeping those layers distinct makes it possible to discuss what was counted before debating what a model predicts it would cost to build.</p></section><section class=\"project-chapter\"><h2>The analysis pipeline</h2><p>A scanner discovers files, applies ignore rules and maps extensions or exact filenames to language definitions. Per-file analysis removes comments, looks for generated-code markers and counts source and control-flow keywords. Parallel workers process the files, and Git integration adds contributor and commit totals.</p><p>The tool covers more than 30 language and configuration formats in its documentation. Reports can be read as formatted text or exported as JSON and CSV. Counting, analysis, estimation and presentation are separate components so the results can be inspected or consumed by other tools.</p></section><section class=\"project-chapter\"><h2>Make the assumptions visible</h2><p>The estimation layer uses source size, scale factors, effort multipliers, salary and overhead to produce effort, schedule and cost figures. Those outputs change with the assumptions. They are useful for a scenario discussion, but a line count is not a measure of individual productivity and an effort estimate is not an audited valuation of the software.</p></section><h2>Implementation at a glance</h2><ul><li>Supports 30-plus language/configuration formats in its documented scanner.</li><li>Produces text, JSON and CSV reports with Git statistics.</li><li>Separates counting/analysis from effort, schedule and cost estimation.</li></ul><h2>Project status</h2><p>Physical code metrics and assumption-based estimates. Complexity uses a lightweight keyword proxy; cost and schedule outputs require interpretation.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/sloccount\" rel=\"noopener noreferrer\">Source on GitHub <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/sloccount/blob/main/README.md\" rel=\"noopener noreferrer\">Further technical detail <span aria-hidden=\"true\">↗</span></a></div></div></section>",
  "structuredData": {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Person",
        "@id": "https://xaede.net/#josh-english",
        "name": "Josh English",
        "url": "https://xaede.net/about",
        "sameAs": [
          "https://github.com/josh-english-2k18",
          "https://medium.com/@jengas",
          "https://www.linkedin.com/in/joshua-s-english",
          "https://x.com/JoshSeriesAI"
        ],
        "jobTitle": "VP of Engineering",
        "description": "Josh English is VP of Engineering at Chronicle Media and was previously CTO of Series Entertainment. His career spans more than twenty-five years of distributed systems, game technology and engineering leadership. At Google he worked as a lead engineer on large-scale services and applied ML; at Big Run Studios he led multidisciplinary technology teams across seven time zones and four countries. At Series he directed engineering, QA, DevOps and infrastructure supporting live commercial games and AI-enabled production. He also builds personal games and developer tools to investigate how emerging capabilities work in practice, and writes about engineering judgment, organisation design and product economics.",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/about#webpage"
        }
      },
      {
        "@type": "WebSite",
        "@id": "https://xaede.net/#website",
        "url": "https://xaede.net/",
        "name": "Xaede",
        "alternateName": [
          "Xaede.net",
          "Josh English — Xaede"
        ],
        "inLanguage": "en",
        "publisher": {
          "@id": "https://xaede.net/#josh-english"
        }
      },
      {
        "@type": "WebPage",
        "@id": "https://xaede.net/work/sloccount#webpage",
        "url": "https://xaede.net/work/sloccount",
        "name": "SLOCCount",
        "description": "A code-analysis tool that reports physical source lines, comments, generated-code exclusions and effort estimates built from explicit COCOMO assumptions.",
        "inLanguage": "en",
        "isPartOf": {
          "@id": "https://xaede.net/#website"
        },
        "about": {
          "@id": "https://xaede.net/#josh-english"
        },
        "mainEntity": {
          "@id": "https://xaede.net/work/sloccount#project"
        },
        "breadcrumb": {
          "@id": "https://xaede.net/work/sloccount#breadcrumbs"
        },
        "primaryImageOfPage": {
          "@id": "https://xaede.net/media/visuals/projects--sloccount.webp#image"
        }
      },
      {
        "@type": "SoftwareSourceCode",
        "@id": "https://xaede.net/work/sloccount#project",
        "name": "SLOCCount",
        "description": "A code-analysis tool that reports physical source lines, comments, generated-code exclusions and effort estimates built from explicit COCOMO assumptions.",
        "author": {
          "@id": "https://xaede.net/#josh-english"
        },
        "codeRepository": "https://github.com/josh-english-2k18/sloccount",
        "programmingLanguage": [
          "Python"
        ],
        "creativeWorkStatus": "Open-source tool",
        "url": "https://xaede.net/work/sloccount",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/work/sloccount#webpage"
        },
        "image": {
          "@id": "https://xaede.net/media/visuals/projects--sloccount.webp#image"
        }
      },
      {
        "@type": "BreadcrumbList",
        "@id": "https://xaede.net/work/sloccount#breadcrumbs",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://xaede.net/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Work",
            "item": "https://xaede.net/work"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "SLOCCount",
            "item": "https://xaede.net/work/sloccount"
          }
        ]
      },
      {
        "@type": "ImageObject",
        "@id": "https://xaede.net/media/visuals/projects--sloccount.webp#image",
        "url": "https://xaede.net/media/visuals/projects--sloccount.webp",
        "contentUrl": "https://xaede.net/media/visuals/projects--sloccount.webp",
        "width": 568,
        "height": 462,
        "caption": "Original public repository image."
      }
    ]
  }
}
