mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-14 18:58:31 +08:00
#2132 - Replace command_chain and chain_with with ale#command#Run
This commit is contained in:
@@ -60,7 +60,7 @@ Execute(The -x option should be added when the version is new enough):
|
||||
\ b:prefix . ale#Escape('shellcheck') . b:suffix,
|
||||
\]
|
||||
|
||||
WithChainResults [
|
||||
GivenCommandOutput [
|
||||
\ 'ShellCheck - shell script analysis tool',
|
||||
\ 'version: 0.4.4',
|
||||
\ 'license: GNU General Public License, version 3',
|
||||
@@ -72,14 +72,13 @@ Execute(The -x option should be added when the version is new enough):
|
||||
\]
|
||||
|
||||
" We should cache the version check
|
||||
WithChainResults []
|
||||
GivenCommandOutput []
|
||||
AssertLinter 'shellcheck', [
|
||||
\ '',
|
||||
\ b:prefix . ale#Escape('shellcheck') . ' -x' . b:suffix,
|
||||
\]
|
||||
|
||||
Execute(The -x option should not be added when the version is too old):
|
||||
WithChainResults [
|
||||
GivenCommandOutput [
|
||||
\ 'ShellCheck - shell script analysis tool',
|
||||
\ 'version: 0.3.9',
|
||||
\ 'license: GNU General Public License, version 3',
|
||||
@@ -91,7 +90,7 @@ Execute(The -x option should not be added when the version is too old):
|
||||
\]
|
||||
|
||||
Execute(The version check shouldn't be run again for old versions):
|
||||
WithChainResults [
|
||||
GivenCommandOutput [
|
||||
\ 'ShellCheck - shell script analysis tool',
|
||||
\ 'version: 0.3.9',
|
||||
\ 'license: GNU General Public License, version 3',
|
||||
@@ -102,6 +101,5 @@ Execute(The version check shouldn't be run again for old versions):
|
||||
\ b:prefix . ale#Escape('shellcheck') . b:suffix,
|
||||
\]
|
||||
AssertLinter 'shellcheck', [
|
||||
\ '',
|
||||
\ b:prefix . ale#Escape('shellcheck') . b:suffix,
|
||||
\]
|
||||
|
||||
Reference in New Issue
Block a user