declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
24 lines (23 loc) • 754 B
TypeScript
import { DomainObject } from 'domain-objects';
import Joi from 'joi';
import { ProjectVariablesImplementation } from '../constants';
/**
* info about the context in which a project is checked
*/
export interface ProjectCheckContext {
/**
* the variables declared for this project
*/
projectVariables: ProjectVariablesImplementation;
/**
* the names of the practices enabled for this project
*/
projectPractices: string[];
/**
* enables getting the root directory of the project being evaluated
*/
getProjectRootDirectory: () => string;
}
export declare class ProjectCheckContext extends DomainObject<ProjectCheckContext> implements ProjectCheckContext {
static schema: Joi.ObjectSchema<any>;
}