From 2f72a3ed1972d23a5ef50c78715ec68f090932e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6tz=20Christ?= Date: Fri, 17 Sep 2021 03:55:28 -0500 Subject: [YAML] CircleCI: skip checking for new tool version (#3902) This way the tool runs a bit faster and we don't create unneeded network requests. Don't know if there are other network requests still occurring. --- ale_linters/yaml/circleci.vim | 2 +- test/linter/test_circleci.vader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ale_linters/yaml/circleci.vim b/ale_linters/yaml/circleci.vim index 3df61459..20835454 100644 --- a/ale_linters/yaml/circleci.vim +++ b/ale_linters/yaml/circleci.vim @@ -28,7 +28,7 @@ endfunction call ale#linter#Define('yaml', { \ 'name': 'circleci', \ 'executable': {b -> expand('#' . b . ':p') =~? '\.circleci' ? 'circleci' : ''}, -\ 'command': 'circleci config validate - < %s', +\ 'command': 'circleci --skip-update-check config validate - < %s', \ 'callback': 'ale_linters#yaml#circleci#Handle', \ 'output_stream': 'stderr', \ 'lint_file': 1, diff --git a/test/linter/test_circleci.vader b/test/linter/test_circleci.vader index f63cc513..000a77ec 100644 --- a/test/linter/test_circleci.vader +++ b/test/linter/test_circleci.vader @@ -10,4 +10,4 @@ Execute(The linter should not run for every YAML file): Execute(The linter should for YAML files in a .circleci directory): call ale#test#SetFilename('../test-files/.circleci/config.yml') - AssertLinter 'circleci', 'circleci config validate - < %s' + AssertLinter 'circleci', 'circleci --skip-update-check config validate - < %s' -- cgit v1.2.3