Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit e5deed9

Browse files
authored
fix problem matcher regexp (#3)
for cases where there is no basepath in phpcs.xml
1 parent d69478c commit e5deed9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'PHP CodeSniffer Check'
1+
name: 'PHP_CodeSniffer Check'
22
description: 'PHPCS checker with annotations out of the box'
33
author: 'Ilya Chekalsky'
44
inputs:

problem-matcher.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"severity": "error",
66
"pattern": [
77
{
8-
"regexp": "^<file name=\"(.*)\">$",
8+
"regexp": "^<file name=\"(?:\\/github\\/workspace\\/)?(.*)\">$",
99
"file": 1
1010
},
1111
{

0 commit comments

Comments
 (0)