From cf3d93512b6e62fb3bc4751786513f7bf12c93c4 Mon Sep 17 00:00:00 2001 From: Scott Moeller Date: Tue, 27 Apr 2021 10:38:54 -0400 Subject: [PATCH] Update problem-matchers.md (#735) --- docs/problem-matchers.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/problem-matchers.md b/docs/problem-matchers.md index e5ee0abe..01caaf5b 100644 --- a/docs/problem-matchers.md +++ b/docs/problem-matchers.md @@ -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).