All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 runtime ale_linters/crystal/ameba.vim
6 call ale#linter#Reset()
8 Execute(The ameba handler should parse lines correctly):
15 \ 'text': 'Trailing whitespace detected',
16 \ 'code': 'Layout/TrailingWhitespace',
20 \ ale_linters#crystal#ameba#HandleAmebaOutput(123, [
21 \ '{"sources":[{"path":"my_file_with_issues.cr","issues":[{"rule_name":"Layout/TrailingWhitespace","message":"Trailing whitespace detected","location":{"line":24,"column":28},"end_location":{"line":null,"column":null}}]},{"path":"my_file_without_issues.cr","issues":[]}],"metadata":{"ameba_version":"0.8.1","crystal_version":"0.26.1"},"summary":{"target_sources_count":2,"issues_count":1}}'
24 Execute(The ameba handler should handle when files are checked and no offenses are found):
27 \ ale_linters#crystal#ameba#HandleAmebaOutput(123, [
28 \ '{"sources":[{"path":"my_file_with_issues.cr",issues":[]},{"path":"my_file_without_issues.cr",issues":[]}],"metadata":{ameba_version":"0.8.1",crystal_version":"0.26.1"},"summary":{target_sources_count":2,issues_count":0}}'
31 Execute(The ameba handler should handle when no files are checked):
34 \ ale_linters#crystal#ameba#HandleAmebaOutput(123, [
35 \ '{"sources":[],"metadata":{ameba_version":"0.8.1",crystal_version":"0.26.1"},"summary":{target_sources_count":0,issues_count":0}}'
38 Execute(The ameba handler should handle blank output without any errors):
41 \ ale_linters#crystal#ameba#HandleAmebaOutput(123, ['{}'])
44 \ ale_linters#crystal#ameba#HandleAmebaOutput(123, [])