diff --git a/.github/maven-style-matcher.json b/.github/maven-style-matcher.json new file mode 100644 index 0000000000..41735617dc --- /dev/null +++ b/.github/maven-style-matcher.json @@ -0,0 +1,17 @@ +{ + "problemMatcher": [ + { + "owner": "maven-checkstyle", + "severity": "error", + "pattern": [ + { + "regexp": "^\\[WARN\\]\\s+(\\S.*\\.java):(\\d+):(?:(\\d+):)?\\s+(.+)$", + "file": 1, + "line": 2, + "column": 3, + "message": 4 + } + ] + } + ] +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c46905dc20..5c770366e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1882,6 +1882,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20.x + - name: Register Checkstyle problem matcher + run: echo "::add-matcher::.github/maven-style-matcher.json" - name: Check code style run: python ./ci/run_ci.py format