declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
14 lines (13 loc) • 603 B
TypeScript
import { FileCheckEvaluation } from '../../../../domain';
/**
* fix a file using the fix function of a check, based on an evaluation of the file
*
* input is a "checkEvaluation", because:
* - it tells us this file _was_ checked before this was called
* - it has the exact "path" that the check was evaluated on (instead of just a glob, like on the path)
* - it has the reference to the declared check, which has the fix function
*/
export declare const fixFile: ({ evaluation, projectRootDirectory, }: {
evaluation: FileCheckEvaluation;
projectRootDirectory: string;
}) => Promise<void>;