Add rubocop as default ruby formatter

This commit is contained in:
Frank LENORMAND 2016-03-10 15:07:08 +02:00
parent fcd3437fac
commit 326421c810

View File

@ -109,6 +109,11 @@ hook global WinSetOption filetype=ruby %{
set window comment_line_chars '#'
set window comment_selection_chars '^begin=:^=end'
# Rubocop requires a filepath that will be used when generating the errors summary,
# even though it's reading anonymous data on stdin
# It also leaves an ugly separator on the first line on the output
set window formatcmd 'rubocop --auto-correct --stdin - -o /dev/null | sed 1d'
}
hook global WinSetOption filetype=(?!ruby).* %{