Skip to content

Commit

Permalink
Add mix as an ale linter and fixter (braintreeps#143)
Browse files Browse the repository at this point in the history
This shows compilation errors inline and formats on save.
  • Loading branch information
pgr0ss authored Sep 4, 2019
1 parent bcb1847 commit 4f13c63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,13 @@ let g:ale_linters_explicit = 1 " Only run linters that are explicitly
let g:ale_set_highlights = 0 " Disable highlighting as it interferes with readability and accessibility
let g:ale_linters = {}
let g:ale_linters['puppet'] = ['puppetlint']
let g:ale_linters['elixir'] = ['mix']
if filereadable(expand(".rubocop.yml"))
let g:ale_linters['ruby'] = ['rubocop']
endif

let g:ale_fixers = {}
let g:ale_fixers['elixir'] = ['mix_format']
let g:ale_fix_on_save = 1

let black = system('grep -q black Pipfile')
Expand Down

0 comments on commit 4f13c63

Please sign in to comment.