diff --git a/.github/checkstyle.json b/.github/checkstyle.json new file mode 100644 index 00000000..c98bac93 --- /dev/null +++ b/.github/checkstyle.json @@ -0,0 +1,19 @@ +{ + "problemMatcher": [ + { + "owner": "checkstyle", + "severity": "warning", + "pattern": [ + { + "regexp": "^.*\\[(ERROR|WARN)\\]\\s+(.*):(\\d+):(\\d+):\\s+(.*)\\s+\\[(.*)\\]$", + "severity": 1, + "file": 2, + "line": 3, + "column": 4, + "message": 5, + "code": 6 + } + ] + } + ] +} diff --git a/src/setup-java.ts b/src/setup-java.ts index 92a86197..3d1791d8 100644 --- a/src/setup-java.ts +++ b/src/setup-java.ts @@ -38,6 +38,7 @@ async function run() { const matchersPath = path.join(__dirname, '..', '..', '.github'); core.info(`##[add-matcher]${path.join(matchersPath, 'java.json')}`); + core.info(`##[add-matcher]${path.join(matchersPath, 'checkstyle.json')}`); await auth.configureAuthentication(); } catch (error) {