#852 - Capture error codes for checkstyle

This commit is contained in:
w0rp
2017-11-18 18:29:12 +00:00
parent 49ccfb1a00
commit 7455e2e97d
2 changed files with 15 additions and 22 deletions

View File

@@ -9,17 +9,20 @@ Execute(The checkstyle handler should parse lines correctly):
\ [
\ {
\ 'lnum': 101,
\ 'text': "'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]",
\ 'col': 0,
\ 'text': '''method def rcurly'' has incorrect indentation level 4, expected level should be 2.',
\ 'code': 'Indentation',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 63,
\ 'col': 3,
\ 'text': "Missing a Javadoc comment. [JavadocMethod]",
\ 'text': 'Missing a Javadoc comment.',
\ 'code': 'JavadocMethod',
\ 'type': 'W',
\ },
\ ],
\ ale_linters#java#checkstyle#Handle(666, [
\ "[WARN] whatever:101: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]",
\ "[WARN] whatever:63:3: Missing a Javadoc comment. [JavadocMethod]",
\ '[WARN] whatever:101: ''method def rcurly'' has incorrect indentation level 4, expected level should be 2. [Indentation]',
\ '[WARN] whatever:63:3: Missing a Javadoc comment. [JavadocMethod]',
\ ])