Skip to content
CAI
Software that uses CAICheck a score

twostraws/Sitrep

53.4

Adequate · 15 November 2026

1k

lines of production code

Swift

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Sitrep is a command-line tool for analyzing Swift codebases, specifically designed to calculate and report line-of-code metrics for SwiftUI and UIKit components. It provides scan results in both text and JSON formats, configurable via a YAML file to exclude specific paths. The system relies on modern Swift parsing libraries to deliver these code quality insights.

Behavioural changes

2 commits (0 fixes) modifying Working

A change to existing behaviour in Working — 2 commits, 2 files.

Working · medium confidence · unverified

Sitrep now supports JSON output and SwiftUI/UIKit line-of-code metrics

The Sitrep command-line tool now accepts a \--format\ argument to output scan results as JSON in addition to the existing text format. The underlying analysis engine has been updated to calculate and report specific line-of-code counts for SwiftUI and UIKit, and the tool now reads configuration from a \.sitrep.yml\ file to support excluded paths. These changes are implemented in the \Sitrep\ and \SitrepCore\ modules, which also migrate from the deprecated \SwiftSyntax\ parser to \SwiftParser\ and update the \FileVisitor\ to use the modern \SyntaxVisitor\ API.

Sources · high confidence

Test coverage

Cleanup of obsolete XCTest scaffolding and test file formatting; Updated test suite for new report formats and UI inheritance counting.

Dependencies

Upgrade to Swift 5.8 and modernize dependencies

The project now requires Swift 5.8 and macOS 10.15 or later. Key dependencies have been upgraded: SwiftSyntax to version 602.0.0, Yams to 6.2.0, and Swift Argument Parser to 1.7.0. The package structure has been updated to expose a SitrepCore library product and explicitly link ArgumentParser to the Sitrep executable target.

(dependencies) · high confidence

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 53 → 53 (-0.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 100 → 99 (-0.8)
  • Architecture 95 → 95 (-0.1)
  • Maturity 52 → 52 (+0.0)
  • Readiness 30 → 30 (+0.0)
  • Security 100 → 100 (+0.0)

Resolved (2)

  • No ADRs found
  • Off-boarding risk: anonymized user #1

New (3)

  • Edited copy of a member (10 corresponding lines) (Sources/SitrepCore/Function.swift)
  • No ADRs found (Package.swift)
  • Off-boarding risk: anonymized user #1

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

Survey your own repository

twostraws/Sitrep 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 ae446f9142c5be08a88b8452f015ed1e5284bca4 — 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.