Skip to content

Commit

Permalink
Only run if .rubocop.yml present
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Feb 5, 2019
1 parent 7ddd39d commit 2fc522e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ let g:ale_lint_on_text_changed = 'normal' " Only lint while in normal mode
let g:ale_lint_on_insert_leave = 1 " Automatically lint when leaving insert mode

let g:ale_linters_explicit = 1
let g:ale_linters = {
\ 'ruby': ['rubocop']
\ }
let g:ale_linters = {}
if filereadable(expand(".rubocop.yml"))
let g:ale_linters['ruby'] = ['rubocop']
endif

let html_use_css=1
let html_number_lines=0
Expand Down

0 comments on commit 2fc522e

Please sign in to comment.