From 9bc4b468c20e91350cf1a6d3739f91f504e230ed Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Fri, 22 Jan 2021 23:51:29 +0900 Subject: [PATCH] Fix linter error --- ale_linters/openapi/ibm_validator.vim | 2 +- doc/ale-openapi.txt | 6 +++--- doc/ale-supported-languages-and-tools.txt | 2 +- doc/ale.txt | 2 +- supported-tools.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ale_linters/openapi/ibm_validator.vim b/ale_linters/openapi/ibm_validator.vim index c54741d2..446931a2 100644 --- a/ale_linters/openapi/ibm_validator.vim +++ b/ale_linters/openapi/ibm_validator.vim @@ -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', diff --git a/doc/ale-openapi.txt b/doc/ale-openapi.txt index a1137ed8..1fc41add 100644 --- a/doc/ale-openapi.txt +++ b/doc/ale-openapi.txt @@ -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'] \} < diff --git a/doc/ale-supported-languages-and-tools.txt b/doc/ale-supported-languages-and-tools.txt index 57eb71dc..13538b03 100644 --- a/doc/ale-supported-languages-and-tools.txt +++ b/doc/ale-supported-languages-and-tools.txt @@ -323,7 +323,7 @@ Notes: * `ocp-indent` * `ols` * OpenApi - * `ibm-validator` + * `ibm_validator` * `prettier` * `yamllint` * Pawn diff --git a/doc/ale.txt b/doc/ale.txt index b2cea4cd..cfb5beb4 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -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| diff --git a/supported-tools.md b/supported-tools.md index df9071f8..0cea2a1b 100644 --- a/supported-tools.md +++ b/supported-tools.md @@ -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