Rule Library

30 deterministic detection rules

Every rule targets a specific class of behavioral, security, or structural risk in your diff. Rules run locally in under one second. No rule sends code to any external service.

Behavior and Contracts

Logic changes, API contracts, and behavioral shifts that tests may not exercise

Security

Credential exposure, unsafe APIs, PII leaks, and supply chain risks

Data Integrity

Truncation risks, idempotency gaps, and unsafe data operations

Async and Concurrency

Blocking calls, resource leaks, deadlock risks, and unsafe async patterns

Observability and Error Handling

Swallowed exceptions, silent failures, and nullable contract violations

Architecture and Design

DI anti-patterns, layer violations, complexity, and supply chain drift

Code Quality and Test Gaps

TODO stubs, test assertion gaps, and performance regressions

Rules are implemented in GauntletCI.Core/Rules/Implementations/. All rules are enabled by default and can be individually disabled or reconfigured in .gauntletci.json. See the Configuration docs for details.