Skip to content

Commit

Permalink
chore(ci): update checkstyle annotation
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Oct 19, 2023
1 parent e1c998a commit af64147
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/checkstyle-annotate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
with:
distribution: 'temurin'
java-version: '11'
- uses: kiancross/checkstyle-annotations-action@v1
- name: create annotation
run: echo "::add-matcher::${{ github.workspace }}/ci/github/problem-matcher.json"
- name: run checkstyle
uses: gradle/gradle-build-action@v2
with:
Expand Down
15 changes: 15 additions & 0 deletions ci/github/problem-matcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@
"code": 1
}
]
},
{
"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
}
]
}
]
}

0 comments on commit af64147

Please sign in to comment.