1 | import { Severity } from "@atomist/automation-client/lib/operations/review/ReviewResult";
|
2 | import { PushTest } from "../../../api/mapping/PushTest";
|
3 | import { ReviewerRegistration } from "../../../api/registration/ReviewerRegistration";
|
4 |
|
5 |
|
6 |
|
7 | export interface AntiPattern {
|
8 | name: string;
|
9 | antiPattern: RegExp | string;
|
10 | comment: string;
|
11 | }
|
12 | export interface PatternMatchReviewerOptions {
|
13 | |
14 |
|
15 |
|
16 | pushTest?: PushTest;
|
17 | |
18 |
|
19 |
|
20 | globPattern: string;
|
21 | category?: string;
|
22 | subcategory?: string;
|
23 | severity?: Severity;
|
24 | }
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare function patternMatchReviewer(name: string, opts: PatternMatchReviewerOptions, ...antiPatterns: AntiPattern[]): ReviewerRegistration;
|
33 |
|
\ | No newline at end of file |