Integrate gitlint via ale into Neovim for writing commit message

This is only done for one customer yet, as this customer has clean rules
which are already provided as community rules via gitlint.
This commit is contained in:
Daniel Siepmann 2022-03-29 11:50:01 +02:00
parent 939f80dba9
commit 3b3f2d0588
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 2 additions and 0 deletions

View file

@ -333,6 +333,7 @@ in {
+ ''
let g:ale_xml_xmllint_executable = '${pkgs.libxml2}/bin/xmllint'
let g:ale_gitcommit_gitlint_executable = '${pkgs.gitlint}/bin/gitlint'
'';
}

View file

@ -3,6 +3,7 @@ augroup reuterFolder
autocmd BufEnter **/emoto2/**/Unit/** execute "call ReuterSetupPhpUnitUnit()"
autocmd BufEnter **/emoto2/**/Functional/** execute "call ReuterSetupPhpUnitFunctional()"
autocmd BufEnter **/microservices/cms/**/*.js :setlocal tabstop=2 shiftwidth=2
autocmd BufEnter **/emoto2/**/.git/COMMIT_EDITMSG let b:ale_gitcommit_gitlint_options = '-c general.contrib=contrib-title-conventional-commits'
augroup END
" As long as we use older phpunit which does not provider proper testdox output