Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/problem-matcher > IProblemMatcher > exec

IProblemMatcher.exec() method

Attempt to match a problem for the provided line of console output.

Signature:

exec(line: string): IProblem | false;

Parameters

Parameter

Type

Description

line

string

A single line of text, always terminated with a newline character (\n).

Returns:

IProblem | false

A problem if recognized, otherwise false.