mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-18 12:01:27 +08:00
Fix #257 in preparation for #427, standardise options with fallbacks, and make it so every value can be computed dynamically
This commit is contained in:
1 parent
2f009690c3
commit
706dd050f2
16 files changed
+69
-36
No files matched your search
@@ -52,12 +52,16 @@ function! ale_linters#fortran#gcc#Handle(buffer, lines) abort
|
||||
return l:output
|
||||
endfunction
|
||||
|
||||
function! ale_linters#fortran#gcc#GetCommand(buffer) abort
|
||||
return 'gcc -S -x f95 -fsyntax-only -ffree-form '
|
||||
\ . g:ale_fortran_gcc_options
|
||||
\ . ' -'
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('fortran', {
|
||||
\ 'name': 'gcc',
|
||||
\ 'output_stream': 'stderr',
|
||||
\ 'executable': 'gcc',
|
||||
\ 'command': 'gcc -S -x f95 -fsyntax-only -ffree-form '
|
||||
\ . g:ale_fortran_gcc_options
|
||||
\ . ' -',
|
||||
\ 'command_callback': 'ale_linters#fortran#gcc#GetCommand',
|
||||
\ 'callback': 'ale_linters#fortran#gcc#Handle',
|
||||
\})
|
||||
Reference in new issue
Block a user