rustfmt matcher

This commit is contained in:
svartalf 2019-10-22 14:08:29 +03:00
parent 2daac5e246
commit 40ef48bb22
3 changed files with 15 additions and 2 deletions

12
.matchers/rustfmt.json Normal file
View file

@ -0,0 +1,12 @@
{
"problemMatcher": [
{
"owner": "rustfmt",
"pattern": {
"regexp": "^Diff in (\\S+) at line (\\d+):$",
"file": 1,
"line": 2
}
}
]
}

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -25,7 +25,8 @@ export async function run(actionInput: input.Input): Promise<void> {
async function main(): Promise<void> { async function main(): Promise<void> {
const matchersPath = path.join(__dirname, '.matchers'); const matchersPath = path.join(__dirname, '.matchers');
console.log(`##[add-matcher]${path.join(matchersPath, 'rust.json')}`); console.log(`::[add-matcher]${path.join(matchersPath, 'rust.json')}`);
console.log(`::[add-matcher]${path.join(matchersPath, 'rustfmt.json')}`);
const actionInput = input.get(); const actionInput = input.get();