Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/problem-matcher > IProblemPattern

IProblemPattern interface

VS Code style problem matcher pattern definition.

Signature:

export interface IProblemPattern 

Remarks

This mirrors the shape used in VS Code's problemMatcher.pattern entries. Reference: https://code.visualstudio.com/docs/editor/tasks\#\_defining-a-problem-matcher

Properties

Property

Modifiers

Type

Description

code?

number

(Optional) Match index for the problem code.

column?

number

(Optional) Match index for the starting column number.

endColumn?

number

(Optional) Match index for the ending column number.

endLine?

number

(Optional) Match index for the ending line number.

file?

number

(Optional) Match index for the file path.

line?

number

(Optional) Match index for the starting line number.

location?

number

(Optional) Match index for the location.

loop?

boolean

(Optional) If true, the last pattern in a multi-line matcher may repeat (loop) producing multiple problems

message

number

Match index for the problem message.

regexp

string

A regular expression used to match the problem.

severity?

number

(Optional) Match index for the severity level.