Add perl6 syntax checking.
Still need to determine if pl, pm or t files are perl5 or perl6.
This commit is contained in:
parent
0f182df53f
commit
0239c19e7e
2 changed files with 9 additions and 1 deletions
2
TODO
2
TODO
|
|
@ -152,7 +152,7 @@ A-syntax, B-tests, C-auto docs, D-lint, E-coverage, F-profile, G-tidy, H-import
|
|||
python * s * * * * s *
|
||||
python3 * s * * * * s *
|
||||
perl * s s
|
||||
perl6
|
||||
perl6 *
|
||||
html s - - - s
|
||||
css -
|
||||
c s s
|
||||
|
|
|
|||
8
tools.py
8
tools.py
|
|
@ -377,6 +377,11 @@ def perltidy(path):
|
|||
perltidy.dependencies = {"perltidy"}
|
||||
|
||||
|
||||
def perl6_syntax(path):
|
||||
return _run_command(path, ["perl6", "-c", path])
|
||||
perl6_syntax.dependencies = {"perl6"}
|
||||
|
||||
|
||||
def _jlint_tool(tool_type, path):
|
||||
stdout, stderr, returncode = _do_command([tool_type, path])
|
||||
status = (Status.success
|
||||
|
|
@ -536,6 +541,9 @@ def tools_for_extension():
|
|||
"pyc": [disassemble_pyc],
|
||||
"pl": [perl_syntax, perldoc, perltidy],
|
||||
"pm": [perl_syntax, perldoc, perltidy],
|
||||
"t": [perl_syntax, perldoc, perltidy],
|
||||
"p6": [perl6_syntax],
|
||||
"pm6": [perl6_syntax],
|
||||
"java": [antic, uncrustify],
|
||||
"class": [jlint],
|
||||
"c": [splint, uncrustify],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue