2022-03-11 14:03:07 +01:00
|
|
|
augroup reuterFolder
|
|
|
|
autocmd!
|
2022-05-25 13:47:16 +02:00
|
|
|
autocmd BufEnter **/microservices/cms/**/*.js :setlocal tabstop=2 shiftwidth=2
|
|
|
|
|
|
|
|
autocmd BufEnter **/reuter/**/Unit/** execute "call ReuterSetupPhpUnitUnit()"
|
|
|
|
autocmd BufEnter **/reuter/**/Functional/** execute "call ReuterSetupPhpUnitFunctional()"
|
|
|
|
autocmd BufEnter **/reuter/**/.git/COMMIT_EDITMSG let b:ale_gitcommit_gitlint_options = '-c general.contrib=contrib-title-conventional-commits'
|
2022-03-11 14:03:07 +01:00
|
|
|
augroup END
|
|
|
|
|
|
|
|
" As long as we use older phpunit which does not provider proper testdox output
|
|
|
|
function! ReuterSetupPhpUnitUnit()
|
|
|
|
let g:test#php#phpunit#options = {
|
2023-04-26 09:24:34 +02:00
|
|
|
\ 'file': '--testdox ',
|
|
|
|
\ 'nearest': '--testdox',
|
2022-03-11 14:03:07 +01:00
|
|
|
\}
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! ReuterSetupPhpUnitFunctional()
|
|
|
|
let g:test#php#phpunit#options = {
|
2023-04-26 09:24:34 +02:00
|
|
|
\ 'file': '--testdox',
|
|
|
|
\ 'nearest': '--testdox',
|
2022-03-11 14:03:07 +01:00
|
|
|
\}
|
2023-04-26 09:24:34 +02:00
|
|
|
" let g:test#php#phpunit#options = {
|
|
|
|
" \ 'file': '--stop-on-error --stop-on-failure --testdox',
|
|
|
|
" \ 'nearest': '--testdox',
|
|
|
|
" \}
|
2022-03-11 14:03:07 +01:00
|
|
|
|
|
|
|
endfunction
|