diff options
author | Markus Doits <markus.doits@stellenticket.de> | 2017-09-18 12:28:37 +0200 |
---|---|---|
committer | Markus Doits <markus.doits@stellenticket.de> | 2017-09-18 12:29:20 +0200 |
commit | 5a1ebdb633fd72f802923d35c1665096625208d5 (patch) | |
tree | 520cc244f5cc77922aaba810db90e37990ccb42c | |
parent | 8bc66cff39f166562aa1060f4f50e478ebe4dd9b (diff) | |
download | ale-5a1ebdb633fd72f802923d35c1665096625208d5.zip |
fix typo `RUBUCOP` --> `RUBOCOP` for slim lint
this actually makes 6ebd8f355c974cb6b7c5d5aff20603c8c4b38feb work
-rw-r--r-- | ale_linters/slim/slimlint.vim | 6 | ||||
-rw-r--r-- | test/command_callback/test_slimlint_command_callback.vader | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ale_linters/slim/slimlint.vim b/ale_linters/slim/slimlint.vim index 0a98a52d..bb62c731 100644 --- a/ale_linters/slim/slimlint.vim +++ b/ale_linters/slim/slimlint.vim @@ -6,15 +6,15 @@ function! ale_linters#slim#slimlint#GetCommand(buffer) abort let l:rubocop_config = ale#path#FindNearestFile(a:buffer, '.rubocop.yml') - " Set SLIM_LINT_RUBUCOP_CONF variable as it is needed for slim-lint to + " Set SLIM_LINT_RUBOCOP_CONF variable as it is needed for slim-lint to " pick up the rubocop config. " " See https://github.com/sds/slim-lint/blob/master/lib/slim_lint/linter/README.md#rubocop if !empty(l:rubocop_config) if ale#Has('win32') - let l:command = 'set SLIM_LINT_RUBUCOP_CONF=' . ale#Escape(l:rubocop_config) . ' && ' . l:command + let l:command = 'set SLIM_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config) . ' && ' . l:command else - let l:command = 'SLIM_LINT_RUBUCOP_CONF=' . ale#Escape(l:rubocop_config) . ' ' . l:command + let l:command = 'SLIM_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config) . ' ' . l:command endif endif diff --git a/test/command_callback/test_slimlint_command_callback.vader b/test/command_callback/test_slimlint_command_callback.vader index 1bff4288..98fd9a83 100644 --- a/test/command_callback/test_slimlint_command_callback.vader +++ b/test/command_callback/test_slimlint_command_callback.vader @@ -22,7 +22,7 @@ Execute(The command should have the .rubocop.yml prepended as an env var if one call ale#test#SetFilename('../slimlint-test-files/subdir/file.slim') AssertEqual - \ 'SLIM_LINT_RUBUCOP_CONF=''/testplugin/test/slimlint-test-files/.rubocop.yml'' ' . g:default_command, + \ 'SLIM_LINT_RUBOCOP_CONF=''/testplugin/test/slimlint-test-files/.rubocop.yml'' ' . g:default_command, \ ale_linters#slim#slimlint#GetCommand(bufnr('')) Execute(The command should have the .rubocop.yml prepended as an env var if one exists on win32): @@ -31,5 +31,5 @@ Execute(The command should have the .rubocop.yml prepended as an env var if one let g:ale_has_override['win32'] = 1 AssertEqual - \ 'set SLIM_LINT_RUBUCOP_CONF=''/testplugin/test/slimlint-test-files/.rubocop.yml'' && ' . g:default_command, + \ 'set SLIM_LINT_RUBOCOP_CONF=''/testplugin/test/slimlint-test-files/.rubocop.yml'' && ' . g:default_command, \ ale_linters#slim#slimlint#GetCommand(bufnr('')) |