/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { BaseCommand } from "../../library/index.js"; /** * This tool enforces policies across the code base via a series of handler functions. The handler functions are * associated with a regular expression, and all files matching that expression. * * This command supports piping. * * i.e. `git ls-files -co --exclude-standard --full-name | flub check policy --stdin --verbose` */ export declare class CheckPolicy extends BaseCommand { static readonly description = "Checks and applies policies to the files in the repository, such as ensuring a consistent header comment in files, assert tagging, etc."; static readonly flags: { readonly fix: import("@oclif/core/interfaces").BooleanFlag; readonly handler: import("@oclif/core/interfaces").OptionFlag; readonly excludeHandler: import("@oclif/core/interfaces").OptionFlag; readonly path: import("@oclif/core/interfaces").OptionFlag; readonly stdin: import("@oclif/core/interfaces").BooleanFlag; readonly listHandlers: import("@oclif/core/interfaces").BooleanFlag; }; private processed; private count; run(): Promise; private executePolicy; /** * Routes files to their handlers and resolvers by regex testing their full paths. If a file fails a policy that has a * resolver, the resolver will be invoked as well. Synchronizes the output, exit codes, and resolve * decision for all handlers. */ private routeToHandlers; private logStats; /** * Given a string that represents a path to a file in the repo, determines if the file should be checked, and if so, * routes the file to the appropriate handlers. */ private checkOrExcludeFile; } //# sourceMappingURL=policy.d.ts.map