Skip to content

Commit cf3d935

Browse files
authored
Update problem-matchers.md (#735)
1 parent 3512925 commit cf3d935

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/problem-matchers.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ The eslint-stylish problem matcher defined below catches that output, and create
110110
The first pattern matches the `test.js` line and records the file information. This line is not decorated in the UI.
111111
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.
112112

113+
Note that the pattern matches must be on consecutive lines. The following would not result in any match findings.
114+
115+
```
116+
test.js
117+
extraneous log line of no interest
118+
1:0 error Missing "use strict" statement strict
119+
5:10 error 'addOne' is defined but never used no-unused-vars
120+
✖ 2 problems (2 errors, 0 warnings)
121+
```
122+
113123
## Adding and Removing Problem Matchers
114124

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

0 commit comments

Comments
 (0)