Coding style.

This commit is contained in:
Andrew Hamilton 2019-07-10 11:54:38 +10:00
parent 653ba646d9
commit 23f5533860
2 changed files with 5 additions and 11 deletions

View file

@ -384,17 +384,6 @@ def bandit(path):
return status, fill3.Text(text_without_timestamp)
def _perl_version(path):
# stdout, stderr, returncode = _do_command(["perl", "-c", path])
# return "perl6" if "Perl v6.0.0 required" in stderr else "perl"
return "perl"
@deps(deps={"perl"}, url="https://en.wikipedia.org/wiki/Perl")
def perl_syntax(path):
return _run_command([_perl_version(path), "-c", path])
@deps(deps={"perl-doc"}, url="http://perldoc.perl.org/",
executables={"perldoc"})
def perldoc(path):

View file

@ -72,6 +72,11 @@ tools_for_extensions = [
command = "python3.7 -m modulefinder"
success_status = "normal"
[perl_syntax]
dependencies = ["perl"]
url = "https://en.wikipedia.org/wiki/Perl"
command = "perl -c"
[dis]
dependencies = []
url = "https://docs.python.org/3/library/dis.html"