Fix linter error

This commit is contained in:
Horacio Sanson 2021-01-22 23:51:29 +09:00
parent 4aa11cbc05
commit 9bc4b468c2
5 changed files with 7 additions and 7 deletions

View file

@ -51,7 +51,7 @@ function! ale_linters#openapi#ibm_validator#Handle(buffer, lines) abort
endfunction
call ale#linter#Define('openapi', {
\ 'name': 'ibm-validator',
\ 'name': 'ibm_validator',
\ 'executable': {b -> ale#Var(b, 'openapi_ibm_validator_executable')},
\ 'command': function('ale_linters#openapi#ibm_validator#GetCommand'),
\ 'callback': 'ale_linters#openapi#ibm_validator#Handle',

View file

@ -2,7 +2,7 @@
ALE OpenApi Integration *ale-openapi-options*
===============================================================================
ibm-validator *ale-openapi-ibm-validator*
ibm_validator *ale-openapi-ibm-validator*
Website: https://github.com/IBM/openapi-validator
@ -25,12 +25,12 @@ configured for openapi and yaml files or openapi and json files respectively.
For example setting filetype to |openapi.yaml| on a buffer and the following
|g:ale_linters| configuration will enable linting of openapi files using both
|ibm-validator| and |yamlint|:
|ibm_validator| and |yamlint|:
>
let g:ale_linters = {
\ 'yaml': ['yamllint'],
\ 'openapi': ['ibm-validator']
\ 'openapi': ['ibm_validator']
\}
<

View file

@ -323,7 +323,7 @@ Notes:
* `ocp-indent`
* `ols`
* OpenApi
* `ibm-validator`
* `ibm_validator`
* `prettier`
* `yamllint`
* Pawn

View file

@ -2836,7 +2836,7 @@ documented in additional help files.
ocamlformat...........................|ale-ocaml-ocamlformat|
ocp-indent............................|ale-ocaml-ocp-indent|
openapi.................................|ale-openapi-options|
ibm-validator.........................|ale-openapi-ibm-validator|
ibm_validator.........................|ale-openapi-ibm-validator|
prettier..............................|ale-openapi-prettier|
yamllint..............................|ale-openapi-yamllint|
pawn....................................|ale-pawn-options|

View file

@ -332,7 +332,7 @@ formatting.
* [ocp-indent](https://github.com/OCamlPro/ocp-indent)
* [ols](https://github.com/freebroccolo/ocaml-language-server)
* OpenApi
* [ibm-validator](https://github.com/IBM/openapi-validator)
* [ibm_validator](https://github.com/IBM/openapi-validator)
* [prettier](https://github.com/prettier/prettier)
* [yamllint](https://yamllint.readthedocs.io/)
* Pawn