style: fecs related doc and vim scripts
This commit is contained in:
parent
c820089c44
commit
d4841cedf2
6 changed files with 9 additions and 17 deletions
|
@ -1,9 +1,6 @@
|
||||||
" Author: harttle <yangjvn@126.com>
|
" Author: harttle <yangjvn@126.com>
|
||||||
" Description: fecs for CSS files
|
" Description: fecs for CSS files
|
||||||
|
|
||||||
call ale#Set('css_fecs_executable', 'fecs')
|
|
||||||
call ale#Set('css_fecs_use_global', get(g:, 'ale_use_global_executables', 0))
|
|
||||||
|
|
||||||
call ale#linter#Define('css', {
|
call ale#linter#Define('css', {
|
||||||
\ 'name': 'fecs',
|
\ 'name': 'fecs',
|
||||||
\ 'executable': function('ale#handlers#fecs#GetExecutable'),
|
\ 'executable': function('ale#handlers#fecs#GetExecutable'),
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
" Author: harttle <yangjvn@126.com>
|
" Author: harttle <yangjvn@126.com>
|
||||||
" Description: fecs for HTMl files
|
" Description: fecs for HTMl files
|
||||||
|
|
||||||
call ale#Set('html_fecs_executable', 'fecs')
|
|
||||||
call ale#Set('html_fecs_use_global', get(g:, 'ale_use_global_executables', 0))
|
|
||||||
|
|
||||||
call ale#linter#Define('html', {
|
call ale#linter#Define('html', {
|
||||||
\ 'name': 'fecs',
|
\ 'name': 'fecs',
|
||||||
\ 'executable': function('ale#handlers#fecs#GetExecutable'),
|
\ 'executable': function('ale#handlers#fecs#GetExecutable'),
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
" Author: harttle <yangjvn@126.com>
|
" Author: harttle <yangjvn@126.com>
|
||||||
" Description: Apply fecs format to a file.
|
" Description: Apply fecs format to a file.
|
||||||
|
|
||||||
call ale#Set('html_fecs_executable', 'fecs')
|
|
||||||
call ale#Set('html_fecs_use_global', get(g:, 'ale_use_global_executables', 0))
|
|
||||||
|
|
||||||
function! ale#fixers#fecs#Fix(buffer) abort
|
function! ale#fixers#fecs#Fix(buffer) abort
|
||||||
let l:executable = ale#handlers#fecs#GetExecutable(a:buffer)
|
let l:executable = ale#handlers#fecs#GetExecutable(a:buffer)
|
||||||
|
|
||||||
|
@ -11,10 +8,10 @@ function! ale#fixers#fecs#Fix(buffer) abort
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let l:config_options = ' format --replace=true'
|
let l:config_options = ' format --replace=true %t'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
\ 'command': ale#Escape(l:executable) . l:config_options . ' %t',
|
\ 'command': ale#Escape(l:executable) . l:config_options,
|
||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\}
|
\}
|
||||||
endfunction
|
endfunction
|
||||||
|
|
|
@ -38,9 +38,9 @@ function! ale#handlers#fecs#Handle(buffer, lines) abort
|
||||||
let l:obj.text = l:code_match[1]
|
let l:obj.text = l:code_match[1]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if l:match[1] ==# 'WARN'
|
if l:match[1] is# 'WARN'
|
||||||
let l:obj.type = 'W'
|
let l:obj.type = 'W'
|
||||||
elseif l:match[1] ==# 'ERROR'
|
elseif l:match[1] is# 'ERROR'
|
||||||
let l:obj.type = 'E'
|
let l:obj.type = 'E'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@ ALE CSS Integration *ale-css-options*
|
||||||
===============================================================================
|
===============================================================================
|
||||||
fecs *ale-css-fecs*
|
fecs *ale-css-fecs*
|
||||||
|
|
||||||
`fecs` options for CSS is the same as the options for JavaScript,
|
`fecs` options for CSS is the same as the options for JavaScript, and both of
|
||||||
and both of them reads `./.fecsrc` as the default configuration file.
|
them reads `./.fecsrc` as the default configuration file. See:
|
||||||
See: |ale-javascript-fecs|.
|
|ale-javascript-fecs|.
|
||||||
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
|
|
|
@ -89,6 +89,7 @@ Notes:
|
||||||
* `crystal`!!
|
* `crystal`!!
|
||||||
* CSS
|
* CSS
|
||||||
* `csslint`
|
* `csslint`
|
||||||
|
* `fecs`
|
||||||
* `prettier`
|
* `prettier`
|
||||||
* `stylelint`
|
* `stylelint`
|
||||||
* Cucumber
|
* Cucumber
|
||||||
|
|
Reference in a new issue