Skip to content

Commit ebcd356

Browse files
committed
Add problem matchers for Yapf and other programs
Add problem matchers for gcc, pytest, and yapf. These programs are used in CI.
1 parent 965e17d commit ebcd356

4 files changed

Lines changed: 78 additions & 2 deletions

File tree

.github/problem-matchers/README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,26 @@ This directory contains Problem Matchers used by the GitHub Actions workflows in
66

77
The following problem matcher JSON files found in this directory were copied from the [Home Assistant](https://github.com/home-assistant/core) project on GitHub. The Home Assistant project is licensed under the Apache 2.0 open-source license. The version of the files at the time they were copied was 2025.1.2.
88

9-
- [`pylint.json`](https://github.com/home-assistant/core/blob/dev/.github/workflows/matchers/pylint.json)
10-
- [`yamllint.json`](https://github.com/home-assistant/core/blob/dev/.github/workflows/matchers/yamllint.json)
9+
* [`pylint.json`](https://github.com/home-assistant/core/blob/dev/.github/workflows/matchers/pylint.json)
10+
* [`yamllint.json`](https://github.com/home-assistant/core/blob/dev/.github/workflows/matchers/yamllint.json)
11+
12+
The Pytest problem matcher originally came from the
13+
[gh-problem-matcher-wrap](https://github.com/liskin/gh-problem-matcher-wrap/tree/master/problem-matchers)
14+
repository (copied 2025-03-04, version 3.0.0), and was subsequently modified by
15+
Michael Hucka. The original JSON file is Copyright © 2020 Tomáš Janoušek and
16+
made available under the terms of the MIT license.
17+
18+
* [`pytest.json`](https://github.com/liskin/gh-problem-matcher-wrap/blob/master/problem-matchers/pytest.json)
19+
20+
The following problem matcher for gcc came from the [Microsoft
21+
vscode-cpptools](https://github.com/microsoft/vscode-cpptools) repository as it appeared on
22+
2025-12-04. The last commit was by user michelleangela on 2020-01-09. The file is licensed under the
23+
MIT license.
24+
25+
* [`gcc.json`](https://github.com/microsoft/vscode-cpptools/blob/acdd5ca9d21cb1dda535594bee461beb9e8a5f06/Extension/package.json)
26+
27+
The following problem matcher for yapf came from the [Google
28+
SCAAML](https://github.com/google/scaaml) repository as it appeared on 2025-12-08. The last commit
29+
was by user jmichelp on 2022-07-03. The file is licensed under the Apache 2.0 license.
30+
31+
* [`yapf.json`](https://github.com/google/scaaml/blob/6d9c3a42c527212ef77f2877419dd8f6e77eb442/.github/python_matcher.json)

.github/problem-matchers/gcc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "gcc",
5+
"pattern": [
6+
{
7+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"severity": 4,
12+
"message": 5
13+
}
14+
]
15+
}
16+
]
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "pytest",
5+
"severity": "error",
6+
"pattern": [
7+
{
8+
"regexp": "^(\\S+):(\\d+): (.*)$",
9+
"file": 1,
10+
"line": 2,
11+
"message": 3
12+
}
13+
]
14+
}
15+
]
16+
}

.github/problem-matchers/yapf.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "yapf-diff",
5+
"pattern": [
6+
{
7+
"regexp": "^---\\s*([^\\s]*)\\s*\\(original\\)$",
8+
"file": 1
9+
},
10+
{
11+
"regexp": "^\\+\\+\\+\\s*([^\\s]*)\\s*\\((.*)\\)$",
12+
"message": 2
13+
},
14+
{
15+
"regexp": "^@@\\s*-(\\d+),(\\d+)\\s*\\+(\\d+),(\\d+)\\s*@@$",
16+
"line": 1
17+
}
18+
]
19+
},
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)