Skip to content

pair

For every file matching primary, a file matching the partner template must exist.

- id: every-impl-has-test
kind: pair
primary: "src/**/*.rs"
partner: "tests/{stem}.test.rs"
level: warning
OptionTypeRequiredDefaultDescription
partnerstringyesPath template resolved per primary match. Example: “{dir}/{stem}.h”.
primarystringyesGlob selecting the primary files.

Plus the common level, id, and when fields. This rule analyses the whole repository, so it takes no paths. This table is generated from the JSON Schema; option types and defaults are authoritative.