mirror of https://github.com/dense-analysis/ale
Merge pull request #57 from jwilliams108/linter-phpcs
updating config option format and adding to doc
This commit is contained in:
commit
983485bc14
|
@ -11,8 +11,8 @@ function! ale_linters#php#phpcs#GetCommand(buffer)
|
||||||
let command = 'phpcs -s --report=emacs --stdin-path=%s'
|
let command = 'phpcs -s --report=emacs --stdin-path=%s'
|
||||||
|
|
||||||
" This option can be set to change the standard used by phpcs
|
" This option can be set to change the standard used by phpcs
|
||||||
if exists('g:ale_linters_php_phpcs_standard')
|
if exists('g:ale_php_phpcs_standard')
|
||||||
let command .= ' --standard=' . g:ale_linters_php_phpcs_standard
|
let command .= ' --standard=' . g:ale_php_phpcs_standard
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return command
|
return command
|
||||||
|
|
13
doc/ale.txt
13
doc/ale.txt
|
@ -11,6 +11,7 @@ CONTENTS *ale-contents*
|
||||||
3. Global Options.................................|ale-options|
|
3. Global Options.................................|ale-options|
|
||||||
4. Linter Specific Options........................|ale-linter-options|
|
4. Linter Specific Options........................|ale-linter-options|
|
||||||
4.1. eslint................................ ....|ale-linter-options-eslint|
|
4.1. eslint................................ ....|ale-linter-options-eslint|
|
||||||
|
4.2. phpcs......................................|ale-linter-options-phpcs|
|
||||||
5. API............................................|ale-api|
|
5. API............................................|ale-api|
|
||||||
6. Contact........................................|ale-contact|
|
6. Contact........................................|ale-contact|
|
||||||
|
|
||||||
|
@ -236,6 +237,18 @@ Default: `'eslint'`
|
||||||
This variable can be changed to change the path to eslint. If you have
|
This variable can be changed to change the path to eslint. If you have
|
||||||
eslint_d installed, you can set this option to use eslint_d instead.
|
eslint_d installed, you can set this option to use eslint_d instead.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
4.2. phpcs *ale-linter-options-phpcs*
|
||||||
|
|
||||||
|
g:ale_php_phpcs_standard *g:ale_php_phpcs_standard*
|
||||||
|
|
||||||
|
Type: |String|
|
||||||
|
Default: `''`
|
||||||
|
|
||||||
|
This variable can be set to specify the coding standard used by phpcs. If
|
||||||
|
no coding standard is specified, phpcs will default to checking against the
|
||||||
|
PEAR coding standard, or the standard you have set as the default.
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
5. API *ale-api*
|
5. API *ale-api*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue