UNPKG

1.23 kBTypeScriptView Raw
1import { CloneOptions } from "@atomist/automation-client/lib/spi/clone/DirectoryManager";
2import { AutoInspectRegistration } from "../../registration/AutoInspectRegistration";
3import { ReviewListenerRegistration } from "../../registration/ReviewListenerRegistration";
4import { Goal } from "../Goal";
5import { FulfillableGoalDetails, FulfillableGoalWithRegistrationsAndListeners } from "../GoalWithFulfillment";
6/**
7 * Options to configure the behavior of the AutoCodeInspection goal.
8 */
9export interface AutoCodeInspectionOptions {
10 /**
11 * Report code inspection results to slack
12 */
13 reportToSlack?: boolean;
14 /**
15 * In case more Git history is required for running the code inspection, pass
16 * appropriate CloneOptions
17 * By default only a shallow clone with depth push.commits.length + 1 is executed
18 */
19 cloneOptions?: CloneOptions;
20}
21/**
22 * Goal that runs code inspections
23 */
24export declare class AutoCodeInspection extends FulfillableGoalWithRegistrationsAndListeners<AutoInspectRegistration<any, any>, ReviewListenerRegistration> {
25 constructor(details?: FulfillableGoalDetails & AutoCodeInspectionOptions, ...dependsOn: Goal[]);
26}
27//# sourceMappingURL=AutoCodeInspection.d.ts.map
\No newline at end of file