mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-05 22:54:24 +08:00
[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:
@@ -28,7 +28,7 @@ endfunction
|
|||||||
call ale#linter#Define('yaml', {
|
call ale#linter#Define('yaml', {
|
||||||
\ 'name': 'circleci',
|
\ 'name': 'circleci',
|
||||||
\ 'executable': {b -> expand('#' . b . ':p') =~? '\.circleci' ? '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',
|
\ 'callback': 'ale_linters#yaml#circleci#Handle',
|
||||||
\ 'output_stream': 'stderr',
|
\ 'output_stream': 'stderr',
|
||||||
\ 'lint_file': 1,
|
\ 'lint_file': 1,
|
||||||
|
|||||||
@@ -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):
|
Execute(The linter should for YAML files in a .circleci directory):
|
||||||
call ale#test#SetFilename('../test-files/.circleci/config.yml')
|
call ale#test#SetFilename('../test-files/.circleci/config.yml')
|
||||||
|
|
||||||
AssertLinter 'circleci', 'circleci config validate - < %s'
|
AssertLinter 'circleci', 'circleci --skip-update-check config validate - < %s'
|
||||||
|
|||||||
Reference in New Issue
Block a user