website refactor

This commit is contained in:
2026-01-12 01:01:49 +01:00
parent 5ca6023a5a
commit fefd8d1cd6
294 changed files with 4628 additions and 4991 deletions

View File

@@ -0,0 +1,25 @@
/**
* Guardrail violation representation
*/
export class GuardrailViolation {
constructor(
public readonly ruleName: string,
public readonly filePath: string,
public readonly lineNumber: number,
public readonly description: string,
) {}
toString(): string {
return `${this.filePath}:${this.lineNumber} - ${this.ruleName}: ${this.description}`;
}
toJSON(): object {
return {
rule: this.ruleName,
file: this.filePath,
line: this.lineNumber,
description: this.description,
};
}
}