Skip to content
CAI
Software that uses CAICheck a score

inaka/katana-code

63.2

Adequate · 15 November 2026

2.3k

lines of production code

Erlang

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial project setup and configuration

The repository has been initialized with a standard Erlang/OTP project structure using rebar3. This includes a new \rebar.config\ file defining the build profile, dependencies (such as \erlfmt\, \rebar3\_hex\, and \rebar3\_ex\_doc\), and tooling configurations for dialyzer, xref, and linting. A \CHANGELOG.md\ file has been added to direct users to the GitHub releases page, and the \README.md\ has been updated with a project description and contact information. Additionally, an \elvis.config\ file has been introduced to enforce code style rules, and the \.gitignore\ has been updated to exclude standard build artifacts.

(repo-wide) · high confidence

Initial release of katana\_code for Erlang source analysis

Introduces the katana\_code library, providing functions to process Erlang code without expanding preprocessor directives. The core \ktn\_code\ module exposes an API to parse source strings or binaries into a structured parse tree (\parse\_tree/1\), convert compiled beam files back to source code (\beam\_to\_string/1\, \beam\_to\_erl/2\), and evaluate expressions (\eval/1\). The underlying \ktn\_dodger\ module implements a custom parser that bypasses the standard Erlang preprocessor, allowing macros and preprocessor directives to be preserved in the syntax tree rather than expanded. A lightweight \ktn\_io\_string\ module supports this by providing an in-memory IO server for reading source content.

src · high confidence

Test coverage

Added Common Test suite for ktn\_code parsing and OTP version features; Added test files for OTP 27, 28, and 29 syntax features.

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 64 → 63 (-0.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 75 → 74 (-0.9)
  • Architecture 100 → 100 (+0.0)
  • Maturity 43 → 42 (-1.2)
  • Readiness 80 → 82 (+1.4)
  • Security 100 → 100 (+0.0)

New (2)

  • Edited copy of a member (11 corresponding lines) (src/ktn_code.erl)
  • Edited copy of a member (21 corresponding lines) (src/ktn_dodger.erl)

Changes since last survey

  • 13 commits — 11 feature/other, 2 fixes

By area

  • (repo) — 6 commits
  • src/ktn_code.erl — 3 commits
  • test/ktn_code_SUITE.erl — 3 commits
  • src/ktn_dodger.erl — 1 commit

Notable commits

  • fix: Fix no_fail recovery for unterminated strings in ktn_dodger
  • fix: Fix tests to only include nominal for OTP 28+
  • change: Add ktn_code:map/2 for recursive syntax tree transformations
  • change: Decode macro type terms and expose opaque children (#1)
  • change: Merge branch 'main' into issue-72
  • change: Merge pull request #110 from 2600hz/main
  • change: Merge pull request #111 from vkatsuba/issue-86
  • change: Merge pull request #112 from inaka/issue-73
  • change: Merge pull request #113 from inaka/issue-72
  • change: Merge pull request #114 from inaka/issue-66
  • change: test: cover parsing of -else directives (#72)
  • change: test: cover quoted macro names with dashes (#73)
  • change: updates according to project standards

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

inaka/katana-code was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 5e3d519e8d26d7aa49b1a7a77117e6a48e27567e — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.