Skip to content

Commit

Permalink
Update problem-matchers.md (actions#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
electronjoe authored Apr 27, 2021
1 parent 3512925 commit cf3d935
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/problem-matchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ The eslint-stylish problem matcher defined below catches that output, and create
The first pattern matches the `test.js` line and records the file information. This line is not decorated in the UI.
The second pattern loops through the remaining lines with `loop: true` until it fails to find a match, and surfaces these lines prominently in the UI.

Note that the pattern matches must be on consecutive lines. The following would not result in any match findings.

```
test.js
extraneous log line of no interest
1:0 error Missing "use strict" statement strict
5:10 error 'addOne' is defined but never used no-unused-vars
✖ 2 problems (2 errors, 0 warnings)
```

## Adding and Removing Problem Matchers

Problem Matchers are enabled and removed via the toolkit [commands](commands.md#problem-matchers).
Expand Down

0 comments on commit cf3d935

Please sign in to comment.