diff options
author | w0rp <devw0rp@gmail.com> | 2019-04-07 15:34:39 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-04-07 15:34:39 +0100 |
commit | e85eb824016a0ca4217d41cc2ec603ff22a3b74d (patch) | |
tree | 46e5ffc641820d765bc5c8898fe56154b23e9eeb /ale_linters/ruby | |
parent | 3bebcb5d48a7150f5a318952ee309acb67fb376d (diff) | |
download | ale-e85eb824016a0ca4217d41cc2ec603ff22a3b74d.zip |
#2132 - Implement feature tests with ale#Has
Diffstat (limited to 'ale_linters/ruby')
-rw-r--r-- | ale_linters/ruby/rails_best_practices.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/ruby/rails_best_practices.vim b/ale_linters/ruby/rails_best_practices.vim index 680cc364..a94fb671 100644 --- a/ale_linters/ruby/rails_best_practices.vim +++ b/ale_linters/ruby/rails_best_practices.vim @@ -30,8 +30,8 @@ function! ale_linters#ruby#rails_best_practices#GetCommand(buffer) abort endif let l:executable = ale#Var(a:buffer, 'ruby_rails_best_practices_executable') - let l:output_file = ale#Has('win32') ? '%t ' : '/dev/stdout ' - let l:cat_file = ale#Has('win32') ? '; type %t' : '' + let l:output_file = has('win32') ? '%t ' : '/dev/stdout ' + let l:cat_file = has('win32') ? '; type %t' : '' return ale#handlers#ruby#EscapeExecutable(l:executable, 'rails_best_practices') \ . ' --silent -f json --output-file ' . l:output_file |