Skip to content

Commit 28a4452

Browse files
committed
STREAM_BOTH is the default now. Capturing warnings now.
1 parent 5729c8e commit 28a4452

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

linter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
"""This module exports the Ruby plugin class."""
1212

13-
from SublimeLinter.lint import Linter, util
13+
from SublimeLinter.lint import Linter
1414

1515

1616
class Ruby(Linter):
@@ -20,9 +20,8 @@ class Ruby(Linter):
2020
syntax = 'ruby'
2121
cmd = 'ruby -wc'
2222
regex = (
23-
r'^.+?:(?P<line>\d+):.+?, (?P<message>[^\r\n]+)\r?\n'
23+
r'^.+?:(?P<line>\d+): (?:(?P<error>.*?error)|(?P<warning>warning))[,:] (?P<message>[^\r\n]+)\r?\n'
2424
r'(?:^[^\r\n]+\r?\n^(?P<col>.*?)\^)?'
2525
)
2626
multiline = True
27-
error_stream = util.STREAM_BOTH
2827
comment_re = r'\s*#'

0 commit comments

Comments
 (0)