summaryrefslogtreecommitdiff
path: root/ale_linters/ruby/rubocop.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/ruby/rubocop.vim')
-rw-r--r--ale_linters/ruby/rubocop.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/ale_linters/ruby/rubocop.vim b/ale_linters/ruby/rubocop.vim
index e13309c9..7ed91f4a 100644
--- a/ale_linters/ruby/rubocop.vim
+++ b/ale_linters/ruby/rubocop.vim
@@ -7,9 +7,8 @@ let g:loaded_ale_linters_ruby_rubocop = 1
function! ale_linters#ruby#rubocop#Handle(buffer, lines)
" Matches patterns line the following:
"
- " <text>:47:14: Missing trailing comma. [Warning/comma-dangle]
- " <text>:56:41: Missing semicolon. [Error/semi]
- " let pattern = '.*_:\(\d\+\):\(\d\+\): \(.\) \(.\+\)'
+ " <path>/_:47:14: 83:29: C: Prefer single-quoted strings when you don't
+ " need string interpolation or special symbols.
let pattern = '\v_:(\d+):(\d+): (.): (.+)'
let output = []