[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.
This commit is contained in:
Götz Christ 2021-09-17 03:55:28 -05:00 committed by GitHub
parent dca56dd772
commit 2f72a3ed19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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'