Northline v0.14.2

Quickstart

Ten minutes from an empty repository to a failing check. The binary has no dependencies; it runs on Linux, macOS and Windows.

1. Get a build

Northline is in a closed beta: binaries are handed to pilot teams by the maintainers — write to hello@tmizh.com and say which platform you need (linux/amd64, macOS arm64, Windows). Builds are pinned per pilot; checksums travel with them.

northline --version
# northline 0.14.2 (linux/amd64, sha256 6f1c…d2a9)

2. Write the first rule

# .northline.yaml
layers:
  - name: domain
    paths: ["src/domain/**"]
  - name: infra
    paths: ["src/infra/**"]
rules:
  - from: domain
    deny: [infra]
    message: "domain must stay free of infrastructure imports"
northline check --config .northline.yaml

On a clean repository the command prints a summary and exits 0. Add an import from src/domain to src/infra and run it again: the violation points at the file and line.

3. Wire it into CI

name: northline
on: [pull_request]
jobs:
  graph:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      # the pilot runner image ships northline 0.14.2
      - run: northline --version
      - run: northline check --fail-on new --format sarif > northline.sarif
      - uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: northline.sarif

--fail-on new compares the branch against the merge base, so existing violations do not block unrelated work.