declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
17 lines (16 loc) • 602 B
TypeScript
import { DomainObject } from 'domain-objects';
import Joi from 'joi';
import { ProjectCheckDeclaration } from './ProjectCheckDeclaration';
/**
* defines a software practice that can be observed in a code base
*
* for example: 'never use `moment.js`' is a practice an org can adopt
*/
export interface PracticeDeclaration {
name: string;
bestPractice: ProjectCheckDeclaration | null;
badPractices: ProjectCheckDeclaration[];
}
export declare class PracticeDeclaration extends DomainObject<PracticeDeclaration> implements PracticeDeclaration {
static schema: Joi.ObjectSchema<any>;
}