eslint
ESLint's `line:col error rule-name` entries and its `N problems` summary footer.
jslinttoolmatcher
Install: ci-doctor matchers add official/eslint
matchers/js/eslint/matcher.yaml
id: eslintrole: toolclassification: [js, lint]description: ESLint's `line:col error rule-name` entries and its `N problems` summary footer.pattern: ^\s*\d+:\d+\s+error\s+|✖ \d+ problems?before: 2after: 6
In bundles
Fixtures
Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.
eslint_errorsOpen in playground
1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: eslint_errors
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run npm ci --no-audit --no-fund
35npm ci --no-audit --no-fund
36npx eslint src --max-warnings=0
37shell: /usr/bin/bash -e {0}
38##[endgroup]
39added 1284 packages in 19s
40
41/builds/team/web/src/checkout/total.js
42 14:9 error 'discount' is assigned a value but never used no-unused-vars
43 22:5 error Unexpected console statement no-console
44
45/builds/team/web/src/cart/index.js
46 8:1 error 'lodash' should be listed in the dependencies import/no-extraneous-dependencies
47 31:18 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
48
49✖ 4 problems (3 errors, 1 warning)
50 2 errors and 0 warnings potentially fixable with the `--fix` option.
51##[error]Process completed with exit code 1.
52##[group]Post Run actions/checkout@v4
53##[endgroup]
54/usr/bin/git version
55git version 2.54.0
56##[group]Post Run actions/upload-artifact@v4
57##[endgroup]
58Artifact upload complete.
59##[warning]eslint-report.json: no matching files. Ensure that the artifact path is relative to the working directory
60Post job cleanup.
61Cleaning up orphan processes
1Running with gitlab-runner 16.10.0 (be4e0e33)
2 on green-4.saas-linux-medium-amd64 Kd8f2Lp1, system ID: s_9f8e7d6c5b4a
3Preparing the "docker+machine" executor
4 Using Docker executor with image node:20-alpine ...
5Using Docker executor with image node:20-alpine ...
6Using docker image sha256:1122334455aa for node:20-alpine with digest node@sha256:ffee...
7Preparing environment
8Running on runner-kd8f2lp1-project-88-concurrent-1...
9Fetching changes...
10Checking out 1ce4407b as detached HEAD...
11Checking cache for node-modules-20-default...
12Successfully extracted cache
13$ npm ci --no-audit --no-fund
14added 1284 packages in 19s
15$ npx eslint src --max-warnings=0
16
17/builds/team/web/src/checkout/total.js
18 14:9 error 'discount' is assigned a value but never used no-unused-vars
19 22:5 error Unexpected console statement no-console
20
21/builds/team/web/src/cart/index.js
22 8:1 error 'lodash' should be listed in the dependencies import/no-extraneous-dependencies
23 31:18 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
24
25✖ 4 problems (3 errors, 1 warning)
26 2 errors and 0 warnings potentially fixable with the `--fix` option.
27Running after_script
28$ echo "lint failed"
29lint failed
30Uploading artifacts for failed job
31WARNING: eslint-report.json: no matching files. Ensure that the artifact path is relative to the working directory
32ERROR: Job failed: exit code 1