From 3dd2d9deddd68edd24bbe3f6b089a10c302c961e Mon Sep 17 00:00:00 2001 From: Filip Vavera Date: Thu, 11 Oct 2018 11:00:10 +0200 Subject: Fix Credo message types (#1963) * Add more Credo message types * Add tests --- ale_linters/elixir/credo.vim | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'ale_linters/elixir/credo.vim') diff --git a/ale_linters/elixir/credo.vim b/ale_linters/elixir/credo.vim index 6e949677..d778471c 100644 --- a/ale_linters/elixir/credo.vim +++ b/ale_linters/elixir/credo.vim @@ -11,10 +11,18 @@ function! ale_linters#elixir#credo#Handle(buffer, lines) abort let l:type = l:match[3] let l:text = l:match[4] - if l:type is# 'C' - let l:type = 'E' - elseif l:type is# 'R' + " Refactoring opportunities + if l:type is# 'F' + let l:type = 'W' + " Consistency + elseif l:type is# 'C' let l:type = 'W' + " Software Design + elseif l:type is# 'D' + let l:type = 'I' + " Code Readability + elseif l:type is# 'R' + let l:type = 'I' endif call add(l:output, { -- cgit v1.2.3