UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

21 lines (20 loc) 811 B
import { DomainObject } from 'domain-objects'; import Joi from 'joi'; import { FileCheckEvaluation, FileEvaluationResult } from './FileCheckEvaluation'; import { PracticeDeclaration } from './PracticeDeclaration'; /** * a practice is fixable if any check that failed is fixable (since there could be one fix to fix them all) */ export declare const isFixablePractice: (evaluation: FilePracticeEvaluation) => boolean; /** * a file evaluated in the context of a practice */ export interface FilePracticeEvaluation { path: string; result: FileEvaluationResult; checks: FileCheckEvaluation[]; practice: PracticeDeclaration; } export declare class FilePracticeEvaluation extends DomainObject<FilePracticeEvaluation> implements FilePracticeEvaluation { static schema: Joi.ObjectSchema<any>; }