Skip to content

Ruby files appear to be excluded from LOC totals (e.g., Homebrew/brew shows 176 LOC) #41

@oasaleh

Description

@oasaleh

Hi! I'm seeing what looks like a language-detection / inclusion bug: Codetabs appears not to count Ruby files in the LOC totals.

Example

  • Repo: Homebrew/brew (branch: main)
  • Codetabs reports: 176 LOC (screenshot attached)

However, other LOC tooling reports a much larger codebase:

Why this seems wrong

A single Ruby file in the Homebrew/brew repo is 349 LOC, which is already higher than Codetabs' entire reported total (176 LOC):

Expected behavior

Codetabs' LOC totals should include Ruby sources (and/or clearly indicate if certain languages/paths are intentionally excluded).

Actual behavior

Ruby-heavy repos (like Homebrew/brew) report extremely low totals, suggesting Ruby files are not being counted.

Questions

  • Is Ruby intentionally excluded from LOC calculations?
  • If not, is there a known issue with .rb detection or language configuration?
Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions