summaryrefslogtreecommitdiff
path: root/ale_linters/php/phpmd.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/php/phpmd.vim')
-rw-r--r--ale_linters/php/phpmd.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/php/phpmd.vim b/ale_linters/php/phpmd.vim
index 9426fcc3..02b98306 100644
--- a/ale_linters/php/phpmd.vim
+++ b/ale_linters/php/phpmd.vim
@@ -6,7 +6,7 @@ let g:ale_php_phpmd_ruleset = get(g:, 'ale_php_phpmd_ruleset', 'cleancode,codesi
function! ale_linters#php#phpmd#GetCommand(buffer) abort
return 'phpmd %s text '
- \ . g:ale_php_phpmd_ruleset
+ \ . ale#Var(a:buffer, 'php_phpmd_ruleset')
\ . ' --ignore-violations-on-exit %t'
endfunction