Skip to content
rebar

rebar

A checker that runs against any repository, a gate that blocks the commit when a rule is ignored, and a generator that builds your next project already on the right side of the line.

npx github:Navesz/rebar .

How to use it

Three states instead of two, and the third is what keeps the score honest: whatever does not apply leaves the denominator. An empty folder does not get a good grade.

  1. The scoreboard for one repository

    npx github:Navesz/rebar .
    rebar-check · prumo  ✓ editorconfig       tem .editorconfig  ✗ dependabot         sem dependabot nem renovate  ✓ ci                 tem CI  – typecheck          não tem TypeScript  11 de 13  ·  1 não se aplica
    output

    The dash is the third state. Before it existed, an empty folder with an empty .git/ scored 8 of 14 and tied with rebar itself. The checker prints in Brazilian Portuguese.

  2. Several repositories at once

    npx github:Navesz/rebar ../a ../b ../c

    A comparable summary comes out at the end. This is how the forensic pass over 161 commits in six repositories was put together.

  3. One rule at a time, to fix without noise

    npx github:Navesz/rebar --rule=ci-gates .

    The filter is for fixing, not for passing: run it without the filter before you commit.

  4. Structured output, for CI

    npx github:Navesz/rebar --json .

    Every rule comes out with an id, a class, a level and a state. That is what the CI step consumes.

  5. Heuristics failing the build too

    npx github:Navesz/rebar --heuristics .

    By default a heuristic only informs. A wrong automatic rule costs more than a missing one — one of them was measured at seven hits and zero true positives.