Repository navigation
v0.3.0
0.3.0 (2026-11-20)
At a glance: 2 new · 10 internal
✨ New
-
rules: let rules call external services and skip outside CI — Rules can call external services. Read credentials with
context.environment().require("TOKEN"); outside CI a missing variable or an unreachable service shows[SKIP], in CI it fails the build. Setarchgate.ci=trueon CI systems that do not setCI. (#59)@Override public void verify(ArchUnitContext context) { Map<String, String> vars = context.environment().require("TRACKER_URL", "TRACKER_TOKEN"); try { checkViolations("Every case exists", findMissing(new TrackerClient(vars), context.test())); } catch (IOException e) { throw context.environment().unavailable("Tracker", e); } }
🤖 Generated with Claude Code
-
rules: share one load between rules and group violations — Rules can share one load and group findings. Wrap an expensive load in
context.shared("issue index", () -> load())to build it once per run; report findings by reason withcheckViolationGroups. (#60)IssueIndex index = context.shared("issue index", () -> IssueIndex.load(client)); checkViolationGroups("Every case id identifies a live case", List.of( new ViolationGroup("case does not exist", missing(index)), new ViolationGroup("case is deleted", deleted(index))));
🤖 Generated with Claude Code