Skip to content

Commit aef2077

Browse files
committed
Merge pull request #24 from codeclimate/nd/fix-path-replacement
Fix path replacement
2 parents 7790bb7 + 601304c commit aef2077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
'description' => $phpcs_issue_data['message'],
4343
'categories' => array('Style'),
4444
'location' => array(
45-
'path' => str_replace('/code/', '', $phpcs_file),
45+
'path' => preg_replace('/^\/code\//', '', $phpcs_file),
4646
'lines' => array(
4747
'begin' => $phpcs_issue_data['line'],
4848
'end' => $phpcs_issue_data['line']

0 commit comments

Comments
 (0)