dense-analysis / dense-analysis/ale
Integration of Makefile formatter mbake
- Dominant language
- Vim Script
- Stars
- 14k
- Forks
- 1.5k
- Avg merge
- 17h 49m
- Merged PRs (30d)
- 1
Description
I'm trying to integrate the Makefile [mbake](https://github.com/EbodShojaei/bake) formatter and validator into ALE to work with Makefiles in Neovim.
I wrote the following custom linter and fixer configuration under ale_linters/make:
```
" Description: linting using mbake
call ale#linter#Define('make', {
\ 'name': 'mbake',
\ 'executable': 'mbake',
\ 'command': 'mbake validate %s',
\ 'callback': 'ale#handlers#unix#HandleAsWarning',
\})
function! FormatMakefile(buffer) abort
return {
\ 'command': 'mbake format %t',
\ 'read_temporary_file': 1,
\}
endfunction
execute ale#fix#registry#Add('mbakefmt', 'FormatMakefile', ['lua'], 'mbake for makefiles')
let g:ale_fixers = {
\ 'makefile': ['mbakefmt']
}
```
Formatter works but linter does not. Seems to have an issue with the colouring
Contributor guide
Assessment
This issue has not been assessed yet.