mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Add blank lines to conform the coding standards
This commit is contained in:
@@ -6,9 +6,11 @@ call ale#Set('c_cquery_cache_directory', expand('~/.cache/cquery'))
|
|||||||
|
|
||||||
function! ale_linters#c#cquery#GetProjectRoot(buffer) abort
|
function! ale_linters#c#cquery#GetProjectRoot(buffer) abort
|
||||||
let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json')
|
let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json')
|
||||||
|
|
||||||
if empty(l:project_root)
|
if empty(l:project_root)
|
||||||
let l:project_root = ale#path#FindNearestFile(a:buffer, '.cquery')
|
let l:project_root = ale#path#FindNearestFile(a:buffer, '.cquery')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return !empty(l:project_root) ? fnamemodify(l:project_root, ':h') : ''
|
return !empty(l:project_root) ? fnamemodify(l:project_root, ':h') : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,11 @@ call ale#Set('cpp_cquery_cache_directory', expand('~/.cache/cquery'))
|
|||||||
|
|
||||||
function! ale_linters#cpp#cquery#GetProjectRoot(buffer) abort
|
function! ale_linters#cpp#cquery#GetProjectRoot(buffer) abort
|
||||||
let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json')
|
let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json')
|
||||||
|
|
||||||
if empty(l:project_root)
|
if empty(l:project_root)
|
||||||
let l:project_root = ale#path#FindNearestFile(a:buffer, '.cquery')
|
let l:project_root = ale#path#FindNearestFile(a:buffer, '.cquery')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return !empty(l:project_root) ? fnamemodify(l:project_root, ':h') : ''
|
return !empty(l:project_root) ? fnamemodify(l:project_root, ':h') : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user