tools: Convert more tools to use the yaml file.
This commit is contained in:
parent
bb475bfb2a
commit
79aef0a9d7
2 changed files with 12 additions and 11 deletions
|
|
@ -508,11 +508,6 @@ def perltidy(path):
|
|||
# perl6_syntax.deps={"rakudo"}
|
||||
|
||||
|
||||
@deps(deps={"gcc"}, url="https://gcc.gnu.org/", executables={"gcc"})
|
||||
def c_syntax_gcc(path):
|
||||
return _run_command(["gcc", "-fsyntax-only", path])
|
||||
|
||||
|
||||
@deps(deps={"splint"}, url="splint", executables={"splint"})
|
||||
def splint(path):
|
||||
stdout, stderr, returncode = _do_command(["splint", "-preproc", path])
|
||||
|
|
@ -613,12 +608,6 @@ def uncrustify(path):
|
|||
return status, _syntax_highlight_using_path(stdout, path)
|
||||
|
||||
|
||||
@deps(deps={"php7.2-cli"}, url="https://en.wikipedia.org/wiki/PHP",
|
||||
executables={"php7.2"})
|
||||
def php7_syntax(path):
|
||||
return _run_command(["php7.2", "--syntax-check", path])
|
||||
|
||||
|
||||
def _pil_pixels(pil_image):
|
||||
data = list(pil_image.getdata())
|
||||
width = pil_image.width
|
||||
|
|
|
|||
|
|
@ -1,4 +1,16 @@
|
|||
|
||||
c_syntax_gcc:
|
||||
deps: [gcc g++-6]
|
||||
url: https://gcc.gnu.org/
|
||||
executables: [gcc]
|
||||
command: gcc -fsyntax-only
|
||||
|
||||
php7_syntax:
|
||||
deps: [php7.2-cli]
|
||||
url: https://en.wikipedia.org/wiki/PHP
|
||||
executables: [php7.2]
|
||||
command: php7.2 --syntax-check
|
||||
|
||||
shellcheck:
|
||||
deps: [shellcheck]
|
||||
url: shellcheck
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue