mirror of https://github.com/ArduPilot/ardupilot
actions: add problem matcher to lua checks
This commit is contained in:
parent
cb6907992b
commit
ccf4407d44
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"owner": "Luacheck-problem-matcher",
|
||||||
|
"fileLocation": [ "relative", "${GITHUB_WORKSPACE}" ],
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "^( *)(.+.lua):(\\d+):(\\d+): (.*)$",
|
||||||
|
"file": 2,
|
||||||
|
"line": 3,
|
||||||
|
"column": 4,
|
||||||
|
"message": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"owner": "Lua-language-server-problem-matcher",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "^(.+.lua):(\\d+):(\\d+)",
|
||||||
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"column": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"regexp": "^(.*)",
|
||||||
|
"message": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -29,6 +29,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
|
||||||
|
- name: Register lua problem matcher
|
||||||
|
run: echo "::add-matcher::.github/problem-matchers/Lua.json"
|
||||||
|
|
||||||
- name: Lua Linter
|
- name: Lua Linter
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue