Skip to content

Latest commit

 

History

History
624 lines (526 loc) · 35.1 KB

root.md

File metadata and controls

624 lines (526 loc) · 35.1 KB

Measure a Project

2026-10-20T12:56:35Z by Showboat 0.6.1

Run each Bash block from the LOCmetry repository root. Setup and replay instructions describe the fresh temporary copy created by source scripts/cli-demo-env.sh, external tools and output projections. The fixture README introduces the shared source tree.

Measure the whole tree

--root selects the project. The equivalent positional directory form appears in the next example. Explicit --format table, --no-color and --no-bars make a plain table suitable for a transcript. sed omits only the variable location/time footer.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --no-user-config --no-color --no-bars --format table \
  | sed '/^Root:/d; /^Roots:/d; /^Measured at:/d' \
  | demo_wrap
 ──────────────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Prod.  Test  Other │ Test/prod
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 TypeScript      4     13    10 │        3       0 │     6     3      1 │      0.50
 Go              2     11     8 │        1       2 │     4     4      0 │      1.00
 HTML            2      5     5 │        0       0 │     5     0      0 │      0.00
 Python          2      5     3 │        2       0 │     2     0      1 │      0.00
 Makefile        1      2     2 │        0       0 │     2     0      0 │      0.00
 JavaScript      0      1     1 │        0       0 │     1     0      0 │      0.00
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 Total          11     37    29 │        6       2 │    20     7      2 │      0.35

 Lines = Code + Comments + Blanks · Production + Test + Other = Code · Test/prod = Test / Production (Code)
 Tests written in another language than the code they test skew per-language Test/prod.
 Folded: TSX → TypeScript.
 Rows with 0 files count code embedded in files of other languages, such as scripts in HTML: JavaScript.

Explore folders and decisions

--folder-rows expands folders within a row budget; --sort name changes presentation order. --show-categories and --verbose expose classification and coverage, including the unclaimed experiment and unrecognized files. The last notes name the generated-client override, which counts code the npm layout would call Production as Other: the fixture intends that move, and the note lets a reviewer confirm it. The positional directory selects the same root.

source scripts/cli-demo-env.sh
locmetry acme-orders --no-user-config --no-color --no-bars --format table --folder-rows 12 \
  --sort name --show-categories --verbose \
  | sed '/^Root:/d; /^Roots:/d; /^Measured at:/d' \
  | demo_wrap
 ──────────────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Prod.  Test  Other │ Test/prod
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 Go              2     11     8 │        1       2 │     4     4      0 │      1.00
 HTML            2      5     5 │        0       0 │     5     0      0 │      0.00
 JavaScript      0      1     1 │        0       0 │     1     0      0 │      0.00
 Makefile        1      2     2 │        0       0 │     2     0      0 │      0.00
 Python          2      5     3 │        2       0 │     2     0      1 │      0.00
 TypeScript      4     13    10 │        3       0 │     6     3      1 │      0.50
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 Total          11     37    29 │        6       2 │    20     7      2 │      0.35

 Lines = Code + Comments + Blanks · Production + Test + Other = Code · Test/prod = Test / Production (Code)
 Tests written in another language than the code they test skew per-language Test/prod.
 Folded: TSX → TypeScript.
 Rows with 0 files count code embedded in files of other languages, such as scripts in HTML: JavaScript.

 ────────────────────────────────────────────────────────────────────
 Folder                  Lines  Code │ Prod.  Test  Other │ Test/prod
 ────────────────────────────────────┼────────────────────┼──────────
 service (direct files)      2     2 │     2     0      0 │      0.00
 service/experiments         2     1 │     0     0      1 │         -
 service/scripts             3     2 │     2     0      0 │      0.00
 service/src                 6     4 │     4     0      0 │      0.00
 service/tests               5     4 │     0     4      0 │         -
 web/src (direct files)      5     5 │     5     0      0 │      0.00
 web/src/api                 2     1 │     0     0      1 │         -
 web/src/orders             12    10 │     7     3      0 │      0.43
 ────────────────────────────────────┼────────────────────┼──────────
 Total                      37    29 │    20     7      2 │      0.35

 Production + Test + Other = Code · Test/prod = Test / Production (Code)
 Adaptive folder detail: rows cover measured source once.

 ─────────────────────────────────────────────
 Category                   Files  Lines  Code
 ─────────────────────────────────────────────
 other:generated                1      2     1
 other:unclaimed                1      2     1
 production:build-tooling       1      2     2
 production:implementation      5     19    16
 production:tooling             1      3     2
 test:test                      2      9     7

 Source files only. Rows of one purpose add up to that purpose's Code, and all rows add up to the total Code.
 Category meanings declared in the policy:
   generated  Committed generator output, regenerated rather than edited
   tooling    Maintained developer commands

 Not source code: 2 data files (2 lines), 1 documentation file (3 lines). '--files --output -' lists each file's kind.
 Production from build modules: 4 code lines in 1 'go' module, 12 code lines in 1 'npm' module.
 Largest files counted as Production only by a build layout. If one is generated or vendored, exclude or reclassify it
in '.locmetryrc':
   web/src/index.html              5 code lines  web (npm)
   service/src/main.go             4 code lines  service (go)
   web/src/orders/Order.ts         3 code lines  web (npm)
   web/src/orders/OrderView.tsx    3 code lines  web (npm)
   web/src/orders/receipt.acmetpl  1 code line   web (npm)
 Unclaimed source: 1 code line in 1 file, here:
   service/experiments  1 code line  1 file
 To inspect or refine purpose classification, use '--guide configure'. '--files --output -' shows each file's rule.
 Entries that changed the purpose a later stage would give: generated-client (Production to Other, 1 code line).
 Unrecognized files: 2 (asset: 1, mod: 1). Their lines are unknown, not zero.

Focus on production in a subtree

--subfolder keeps the original policy and module context. --show-folders adds top-level rows; --table-purpose production filters table counts and replaces Test/prod with comment density, leaving JSON and Markdown totals complete. --show-bars=comments charts comment density relative to the densest row. Selecting just one table purpose also uses comment-density bars with bare --show-bars or explicit =purpose. The purpose option accepts a comma-separated list.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --subfolder web/src --no-user-config --no-color --format table \
  --show-folders --table-purpose production --show-bars=comments \
  | sed '/^Root:/d; /^Roots:/d; /^Measured at:/d' \
  | demo_wrap
 ───────────────────────────────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Comment %  Comment density
 ───────────────────────────────┼──────────────────┼────────────────────────────────────────────────
 TypeScript      2      7     6 │        1       0 │     14.3%  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
 HTML            2      5     5 │        0       0 │      0.0%
 JavaScript      0      1     1 │        0       0 │      0.0%
 ───────────────────────────────┼──────────────────┼────────────────────────────────────────────────
 Total           4     13    12 │        1       0 │      7.7%

 Lines = Code + Comments + Blanks · Comment % = Comments / (Code + Comments)
 Folded: TSX → TypeScript.
 Rows with 0 files count code embedded in files of other languages, such as scripts in HTML: JavaScript.
 Not shown (purposes): Test and Other (4 code lines).
 Bars: ▓ Comment %. The densest row fills the bar.

 ─────────────────────────────────────────────────────────────────────────────────────────
 Folder                  Lines  Code │ Comment %  Comment density
 ────────────────────────────────────┼────────────────────────────────────────────────────
 web/src/orders              8     7 │     12.5%  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
 web/src (direct files)      5     5 │      0.0%
 ────────────────────────────────────┼────────────────────────────────────────────────────
 Total                      13    12 │      7.7%

 Comment % = Comments / (Code + Comments)
 Bars: ▓ Comment %. The densest row fills the bar.

Focus on languages

--table-language filters table counts to the named source languages, in any case, and composes with --table-purpose; JSON and Markdown totals stay complete. A note under the language table names the excluded languages and their code, so the shown total reconciles with the full measurement. Embedded languages keep only their own lines. Language variants count within their family's row: TSX joins TypeScript, so typescript selects both, and the Folded: line names the fold.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --no-user-config --no-color --format table \
  --table-language typescript \
  | sed '/^Root:/d; /^Roots:/d; /^Measured at:/d' \
  | demo_wrap
 ──────────────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Prod.  Test  Other │ Test/prod
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 TypeScript      4     13    10 │        3       0 │     6     3      1 │      0.50
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 Total           4     13    10 │        3       0 │     6     3      1 │      0.50

 Lines = Code + Comments + Blanks · Production + Test + Other = Code · Test/prod = Test / Production (Code)
 Tests written in another language than the code they test skew per-language Test/prod.
 Folded: TSX → TypeScript.
 Not shown (languages): Go, HTML, Python, Makefile and JavaScript (19 code lines).

--split-languages shows variants as rows of their own, as JSON names them; a variant name then selects only that variant.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --no-user-config --no-color --format table \
  --table-language typescript,tsx --split-languages --tables-only
 ──────────────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Prod.  Test  Other │ Test/prod
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 TypeScript      3     10     7 │        3       0 │     3     3      1 │      1.00
 TSX             1      3     3 │        0       0 │     3     0      0 │      0.00
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 Total           4     13    10 │        3       0 │     6     3      1 │      0.50

Focus on categories

--table-category filters table counts to categories: a purpose selects all of its categories, a purpose:category key as the category table prints it selects one, and * matches any text, quoted for the shell. A note names the excluded categories and their code. Keeping only part of Production or Test replaces Test/prod with comment density, because the ratio would compare unrelated slices.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --no-user-config --no-color --format table \
  --show-categories --table-category 'test,production:tool*' \
  | sed '/^Root:/d; /^Roots:/d; /^Measured at:/d' \
  | demo_wrap
 ───────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Prod.  Test │ Comment %
 ───────────────────────────────┼──────────────────┼─────────────┼──────────
 Go              1      5     4 │        0       1 │     0     4 │      0.0%
 TypeScript      1      4     3 │        1       0 │     0     3 │     25.0%
 Python          1      3     2 │        1       0 │     2     0 │     33.3%
 ───────────────────────────────┼──────────────────┼─────────────┼──────────
 Total           3     12     9 │        2       1 │     2     7 │     18.2%

 Lines = Code + Comments + Blanks · Production + Test = Code · Comment % = Comments / (Code + Comments)
 Not shown (categories): production:implementation, production:build-tooling, other:generated and other:unclaimed (20
code lines).

 ──────────────────────────────────────
 Category            Files  Lines  Code
 ──────────────────────────────────────
 test:test               2      9     7
 production:tooling      1      3     2

 Source files only. Rows of one purpose add up to that purpose's Code, and all rows add up to the total Code.

Print only the tables

--tables-only prints the tables and nothing else: no legends, notes or location/time footer, so a transcript or script needs no filter. The columns keep the meanings the legends above define. A --table-purpose, --table-category or --table-language selection is no longer named in the output; the command records it.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --no-user-config --no-color --no-bars --format table \
  --show-folders --show-categories --tables-only
 ──────────────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Prod.  Test  Other │ Test/prod
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 TypeScript      4     13    10 │        3       0 │     6     3      1 │      0.50
 Go              2     11     8 │        1       2 │     4     4      0 │      1.00
 HTML            2      5     5 │        0       0 │     5     0      0 │      0.00
 Python          2      5     3 │        2       0 │     2     0      1 │      0.00
 Makefile        1      2     2 │        0       0 │     2     0      0 │      0.00
 JavaScript      0      1     1 │        0       0 │     1     0      0 │      0.00
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 Total          11     37    29 │        6       2 │    20     7      2 │      0.35

 ─────────────────────────────────────────────────────
 Folder   Lines  Code │ Prod.  Test  Other │ Test/prod
 ─────────────────────┼────────────────────┼──────────
 web         19    16 │    12     3      1 │      0.25
 service     18    13 │     8     4      1 │      0.50
 ─────────────────────┼────────────────────┼──────────
 Total       37    29 │    20     7      2 │      0.35

 ─────────────────────────────────────────────
 Category                   Files  Lines  Code
 ─────────────────────────────────────────────
 production:implementation      5     19    16
 test:test                      2      9     7
 production:build-tooling       1      2     2
 production:tooling             1      3     2
 other:generated                1      2     1
 other:unclaimed                1      2     1

Override selection

The fixture policy hides dotfiles and its ignore file excludes scratch work. These CLI settings include both, while the repeated --exclude flags remove vendor and test paths. --config replaces discovered project policy; its patterns remain relative to the scan root. JSON is projected to the resulting source paths.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --config acme-orders/.locmetryrc --hidden true \
  --respect-ignore-files false --exclude 'service/tests/**' --exclude 'web/**/*.test.ts' \
  --no-user-config --files --output - \
  | jq '[.files[] | select(.kind == "source") | .path]'
[
  "service/.hidden.py",
  "service/Makefile",
  "service/experiments/probe.py",
  "service/ignored.py",
  "service/scripts/check.py",
  "service/src/main.go",
  "web/src/api/client.ts",
  "web/src/index.html",
  "web/src/orders/Order.ts",
  "web/src/orders/OrderView.tsx",
  "web/src/orders/receipt.acmetpl"
]

Save full evidence and print an overview

--output defaults to full JSON regardless of extension. --files adds physical-file detail; --print table prints the same measurement while saving it. --show-bars explicitly adds purpose bars to the printed table. The following query demonstrates the schema-3 envelope and optional file inventory.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --no-user-config --no-color --files --output report.json \
  --print table --show-bars \
  | sed '/^Root:/d; /^Roots:/d; /^Measured at:/d' \
  | demo_wrap
jq '{
      document_type, schema_version, detail,
      source: .summary.source,
      physical_files: (.files | length)
    }' \
  report.json
 ──────────────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Prod.  Test  Other │ Test/prod
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 TypeScript      4     13    10 │        3       0 │     6     3      1 │      0.50
 Go              2     11     8 │        1       2 │     4     4      0 │      1.00
 HTML            2      5     5 │        0       0 │     5     0      0 │      0.00
 Python          2      5     3 │        2       0 │     2     0      1 │      0.00
 Makefile        1      2     2 │        0       0 │     2     0      0 │      0.00
 JavaScript      0      1     1 │        0       0 │     1     0      0 │      0.00
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 Total          11     37    29 │        6       2 │    20     7      2 │      0.35

 Lines = Code + Comments + Blanks · Production + Test + Other = Code · Test/prod = Test / Production (Code)
 Tests written in another language than the code they test skew per-language Test/prod.
 Folded: TSX → TypeScript.
 Rows with 0 files count code embedded in files of other languages, such as scripts in HTML: JavaScript.

 Code share  █ Production  ▓ Test  ░ Other
 TypeScript  34.5%  ████████████████████████▓▓▓▓▓▓▓▓▓▓▓▓░░░░
 Go          27.6%  ████████████████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
 HTML        17.2%  ████████████████████
 Python      10.3%  ████████░░░░
 Makefile     6.9%  ████████
 JavaScript   3.4%  ████

{
  "document_type": "measurement",
  "schema_version": "3",
  "detail": "full",
  "source": {
    "files": 11,
    "code": 29,
    "comments": 6,
    "blanks": 2,
    "lines": 37
  },
  "physical_files": 14
}

Choose Markdown or headline output

--markdown-depth limits only the Markdown Folder breakdown; other evidence can still name deeper paths. The first command saves Markdown and prints full JSON with per-file records from the same scan: --files applies to that printed JSON. The query selects stable counts, and the Markdown excerpt selects its folder section. Headline output is compact and cannot serve as a comparison baseline. File exports are silent unless --print is supplied; --output - selects stdout.

source scripts/cli-demo-env.sh
locmetry --root acme-orders --no-user-config --format markdown --markdown-depth 3 --sort name \
  --output report.md --print json --files \
  | jq '{detail, source_code: .summary.source.code, files: (.files | length)}'
sed -n '/^## Folder breakdown/,/^## Build modules/p' report.md | demo_wrap
locmetry --root acme-orders --no-user-config --format headline \
  | jq '{document_type, schema_version, detail, source: .summary.source}'
{
  "detail": "full",
  "source_code": 29,
  "files": 14
}
## Folder breakdown

*Recursive source code totals to depth 3. Parent rows include their children; do not sum all displayed rows. The report
file's additive `breakdown` rows cover every depth. Multi-language files count once physically but contribute to each
contained language. Production + Test + Other = Code · Test/prod = Test / Production (Code)*

| Folder | Lines | **Code** | Production | Test | Other | Test/prod |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
| . | 37 | 29 | 20 | 7 | 2 | 0.35 |
| service | 18 | 13 | 8 | 4 | 1 | 0.50 |
| service/experiments | 2 | 1 | 0 | 0 | 1 | - |
| service/scripts | 3 | 2 | 2 | 0 | 0 | 0.00 |
| service/src | 6 | 4 | 4 | 0 | 0 | 0.00 |
| service/tests | 5 | 4 | 0 | 4 | 0 | - |
| web | 19 | 16 | 12 | 3 | 1 | 0.25 |
| web/src | 19 | 16 | 12 | 3 | 1 | 0.25 |
| web/src/api | 2 | 1 | 0 | 0 | 1 | - |
| web/src/orders | 12 | 10 | 7 | 3 | 0 | 0.43 |

## Build modules
{
  "document_type": "measurement",
  "schema_version": "3",
  "detail": "headline",
  "source": {
    "files": 11,
    "code": 29,
    "comments": 6,
    "blanks": 2,
    "lines": 37
  }
}

Discover syntax and contracts

Help lists syntax; guides explain workflows; schemas define machine-readable fields. These are standalone queries. --section prints one guide section or schema definition, and --guide index names the section for each task. Their projections keep the transcript short. The version query is deliberately recorded, so a release version change requires refreshing this example.

source scripts/cli-demo-env.sh
locmetry --no-color --help | sed -n '1,16p'
locmetry --version
for topic in index configure selection reports compare categories; do
  locmetry --guide "$topic" | sed -n '1p'
done
locmetry --guide categories --section choose-a-name | sed -n '1,3p'
for schema in config report workspace comparison explanation; do
  locmetry --schema "$schema" | jq -r '.title'
done
locmetry --schema config --section overview --section Entry | jq -c '[.overview."$defs"[:4], (.Entry.required)]'
Measure source code by language, folder, and purpose: production, test, or other. Defaults to a
table on a terminal, a JSON headline in pipes. An option of one format selects it. --output FILE
saves only to that file, defaulting to full JSON; --format overrides the format.

Usage: locmetry [OPTIONS] [DIR] [COMMAND]

Commands:
  workspace  Measure several repositories or one project's folders as one virtual monorepo
  compare    Compare two saved full reports: net change is after minus before
  explain    Explain selection and classification of existing root-relative files
  help       Print this message or the help of the given subcommand(s)

Arguments:
  [DIR]
          Directory to measure, instead of --root [default: the current directory]

locmetry 0.12.0
Source: docs/guides/README.md (locmetry 0.12.0)
Source: docs/guides/configure.md (locmetry 0.12.0)
Source: docs/guides/selection.md (locmetry 0.12.0)
Source: docs/guides/reports.md (locmetry 0.12.0)
Source: docs/guides/compare.md (locmetry 0.12.0)
Source: docs/guides/categories.md (locmetry 0.12.0)
Source: docs/guides/categories.md#choose-a-name (locmetry 0.12.0)

## Choose a Name
Configuration
MeasurementReport
Workspace
Comparison
Explanation
[["Backend","Scope","Classification","Purpose"],["id","match","purpose"]]

Find stale configuration

Entries and exclusions that match nothing are reported, so policy does not silently outlive the code it describes. This candidate keeps the vendor exclusion but adds one for a removed folder and a rule for tools that moved; --config measures with it instead of the fixture policy. Both findings name the unused entry; the stale entries themselves decide no file.

source scripts/cli-demo-env.sh
cat > stale.toml <<'TOML'
version = 1

[scope]
exclude = ["service/third_party/**", "web/vendor/**"]

[[rules]]
id = "legacy-tools"
match = ["service/tools/**"]
kind = ["source"]
purpose = "production"
category = "tooling"
reason = "Developer commands before they moved to service/scripts"
TOML
locmetry --root acme-orders --no-user-config --config stale.toml --format json \
  | jq ".summary | {unused_entries, unused_exclusions}"
{
  "unused_entries": [
    "legacy-tools"
  ],
  "unused_exclusions": [
    "web/vendor/**"
  ]
}

Review what each entry decided

A policy can be partly wrong without matching nothing. --config replaces the fixture policy, so the drafts below have none of its entries or exclusions. This draft labels the order tests with an override over their whole folder, and gives the service tests a finer category with a refinement whose second glob has a case mistake. summary.policy_entries lists each entry with the files and code it decided. The override also took two production files the npm layout would have decided, which displaced shows, and the refinement names its glob that decided nothing under unused_patterns; neither problem leaves an entry unused.

source scripts/cli-demo-env.sh
cat > draft.toml <<'TOML'
version = 1

[[overrides]]
id = "order-tests"
match = ["web/src/orders/**"]
purpose = "test"
category = "unit"

[[refinements]]
id = "service-tests"
purpose = "test"
match = ["service/tests/**", "service/Tests/**"]
category = "integration"
TOML
locmetry --root acme-orders --no-user-config --config draft.toml --format json \
  | jq ".summary.policy_entries"
[
  {
    "id": "order-tests",
    "stage": "override",
    "purpose": "test",
    "files": 3,
    "code": 9,
    "displaced": [
      {
        "decision": "production:implementation",
        "files": 2,
        "code": 6
      },
      {
        "decision": "test:test",
        "files": 1,
        "code": 3
      }
    ]
  },
  {
    "id": "service-tests",
    "stage": "refinement",
    "purpose": "test",
    "files": 1,
    "code": 4,
    "unused_patterns": [
      "service/Tests/**"
    ],
    "displaced": [
      {
        "decision": "test:test",
        "files": 1,
        "code": 4
      }
    ]
  }
]

Refinements are the safe way to give tests finer categories: each applies after classification to files of its stated purpose and changes only their category, so production code under the same glob stays production. The corrected draft relabels both test folders and fixes the glob. Only Test rows change category; Production keeps its files, as the purpose columns show.

source scripts/cli-demo-env.sh
cat > draft.toml <<'TOML'
version = 1

[[refinements]]
id = "order-tests"
purpose = "test"
match = ["web/src/orders/**"]
category = "unit"

[[refinements]]
id = "service-tests"
purpose = "test"
match = ["service/tests/**"]
category = "integration"
TOML
locmetry --root acme-orders --no-user-config --config draft.toml --no-color --no-bars \
  --format table --show-categories --tables-only
 ──────────────────────────────────────────────────────────────────────────────────
 Language    Files  Lines  Code │ Comments  Blanks │ Prod.  Test  Other │ Test/prod
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 TypeScript      4     13    10 │        3       0 │     7     3      0 │      0.43
 Go              2     11     8 │        1       2 │     4     4      0 │      1.00
 Python          4      7     5 │        2       0 │     0     0      5 │         -
 HTML            1      4     4 │        0       0 │     4     0      0 │      0.00
 Makefile        1      2     2 │        0       0 │     2     0      0 │      0.00
 JavaScript      0      1     1 │        0       0 │     1     0      0 │      0.00
 ───────────────────────────────┼──────────────────┼────────────────────┼──────────
 Total          12     38    30 │        6       2 │    18     7      5 │      0.39

 ─────────────────────────────────────────────
 Category                   Files  Lines  Code
 ─────────────────────────────────────────────
 production:implementation      5     20    16
 other:unclaimed                4      7     5
 test:integration               1      5     4
 test:unit                      1      4     3
 production:build-tooling       1      2     2