Skip to content

Commit

Permalink
chore: ci: add problem-matcher.json
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed May 16, 2024
1 parent d74b8a3 commit 26e0c3d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/spotbugs-annotate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
distribution: 'temurin'
java-version: '11'
- name: create annotation
run: echo "::add-matcher::${{ github.workspace }}/ci/github/problem-matcher.json"
run: echo "::add-matcher::${{ github.workspace }}/ci/problem-matcher.json"
- name: run spotbugs
uses: gradle/actions/setup-gradle@v3
with:
Expand Down
54 changes: 54 additions & 0 deletions ci/problem-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"problemMatcher": [
{
"owner": "spotbugs",
"pattern": [
{
"regexp": "^.*((?:H|M|L)\\s+(?:[A-Z])\\s+(?:[A-Z0-9_]+\\s+)?(?:[A-Za-z0-9]+)):\\s+(.*)\\s+(?:a|A)t\\s+([A-Za-z0-9_]+\\.java):\\[line(s)? (\\d+(?:-\\d+))\\]$",
"file": 3,
"line": 4,
"message": 2,
"code": 1
}
]
},
{
"owner": "spotbugs-OBL",
"pattern": [
{
"regexp": "^.*(M X (?:[A-Z0-9_]+\\s+)?(?:[A-Za-z0-9]+)):\\s+((?:.*)\\s+(?:a|A)t\\s+([A-Za-z0-9_]+\\.java):\\[line (\\d+)\\] is not discharged)$",
"file": 3,
"line": 4,
"message": 2,
"code": 1
}
]
},
{
"owner": "spotbugs-no-line-number",
"pattern": [
{
"regexp": "^.*((?:H|M|L)\\s+(?:[A-Z])\\s+(?:[A-Z0-9_]+\\s+)?(?:[A-Za-z0-9]+)):\\s+(.*)\\s+In\\s+([A-Za-z0-9_]+\\.java)$",
"file": 3,
"message": 2,
"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 26e0c3d

Please sign in to comment.