mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-19 10:41:13 +08:00
Merge pull request #1129 from aliou/rubocop-cop-as-error-code
#852 - Capture error codes for Rubocop
This commit is contained in:
@@ -12,28 +12,32 @@ Execute(The rubocop handler should parse lines correctly):
|
||||
\ 'lnum': 83,
|
||||
\ 'col': 29,
|
||||
\ 'end_col': 35,
|
||||
\ 'text': 'Prefer single-quoted strings... [Style/SomeCop]',
|
||||
\ 'text': 'Prefer single-quoted strings...',
|
||||
\ 'code': 'Style/SomeCop',
|
||||
\ 'type': 'W',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 12,
|
||||
\ 'col': 2,
|
||||
\ 'end_col': 2,
|
||||
\ 'text': 'Some error [Style/SomeOtherCop]',
|
||||
\ 'text': 'Some error',
|
||||
\ 'code': 'Style/SomeOtherCop',
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 10,
|
||||
\ 'col': 5,
|
||||
\ 'end_col': 12,
|
||||
\ 'text': 'Regular warning [Style/WarningCop]',
|
||||
\ 'text': 'Regular warning',
|
||||
\ 'code': 'Style/WarningCop',
|
||||
\ 'type': 'W',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 11,
|
||||
\ 'col': 1,
|
||||
\ 'end_col': 1,
|
||||
\ 'text': 'Another error [Style/SpaceBeforeBlockBraces]',
|
||||
\ 'text': 'Another error',
|
||||
\ 'code': 'Style/SpaceBeforeBlockBraces',
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ ],
|
||||
|
||||
Reference in New Issue
Block a user