mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Compare commits
2 Commits
366de225fd
...
baaca9a5d7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
baaca9a5d7 | ||
|
|
aac34cd45a |
@@ -22,7 +22,7 @@ function! ale#fixers#clangformat#Fix(buffer) abort
|
||||
let l:use_local_file = ale#Var(a:buffer, 'c_clangformat_use_local_file')
|
||||
|
||||
if l:style_option isnot# ''
|
||||
let l:style_option = '-style=' . "'" . l:style_option . "'"
|
||||
let l:style_option = '-style=' . ale#Escape(l:style_option)
|
||||
endif
|
||||
|
||||
if l:use_local_file
|
||||
|
||||
@@ -11,6 +11,7 @@ let s:linters = {}
|
||||
" NOTE: Update the g:ale_linter_aliases documentation when modifying this.
|
||||
let s:default_ale_linter_aliases = {
|
||||
\ 'Dockerfile': 'dockerfile',
|
||||
\ 'bash': 'sh',
|
||||
\ 'csh': 'sh',
|
||||
\ 'javascriptreact': ['javascript', 'jsx'],
|
||||
\ 'plaintex': 'tex',
|
||||
|
||||
@@ -1735,6 +1735,7 @@ g:ale_linter_aliases
|
||||
|
||||
{
|
||||
\ 'Dockerfile': 'dockerfile',
|
||||
\ 'bash': 'sh',
|
||||
\ 'csh': 'sh',
|
||||
\ 'javascriptreact': ['javascript', 'jsx'],
|
||||
\ 'plaintex': 'tex',
|
||||
|
||||
@@ -45,7 +45,8 @@ Execute(The clangformat callback should include style options as well):
|
||||
\ {
|
||||
\ 'command': ale#Escape(g:ale_c_clangformat_executable)
|
||||
\ . ' --assume-filename=' . ale#Escape(bufname(bufnr('')))
|
||||
\ . ' --some-option' . " -style='{BasedOnStyle: Microsoft, ColumnLimit:80,}'",
|
||||
\ . ' --some-option'
|
||||
\ . ' -style=' . ale#Escape(g:ale_c_clangformat_style_option)
|
||||
\ },
|
||||
\ ale#fixers#clangformat#Fix(bufnr(''))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user