Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 2x | /**
* @module scripts/validators/article/types
* @description Shared types + repo-root constant for the article
* validator subtree.
*
* Rule census: extracted from
* `scripts/validate-article.ts` lines 45–56
* (`REPO_ROOT`, `ArticleViolation`). Logic is byte-identical
* to the original.
*
* @author Hack23 AB
* @license Apache-2.0
*/
import { resolve } from 'node:path';
import process from 'node:process';
export const REPO_ROOT = resolve(process.cwd());
/**
* A single rule failure on a single article. `code` is a stable
* machine-readable identifier suitable for grep, dashboards, and
* suppression workflows.
*/
export interface ArticleViolation {
readonly file: string;
readonly code: string;
readonly message: string;
}
|