Skip to content

Commit

Permalink
PHPLintBear: Be more liberal in finding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Jun 20, 2019
1 parent 006b398 commit 845f613
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bears/php/PHPLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@


@linter(executable='php',
use_stderr=True,
output_format='regex',
output_regex=r'(?P<severity>Parse|Fatal) error: (?P<message>.*) in '
r'.* on line (?P<line>\d+)',
output_regex=r'(?P<severity>Parse|Fatal) error: (?P<message>.*)'
r'( in .* on line (?P<line>\d+))?',
severity_map={'Parse': RESULT_SEVERITY.MAJOR,
'Fatal': RESULT_SEVERITY.MAJOR})
class PHPLintBear:
Expand Down

0 comments on commit 845f613

Please sign in to comment.