Coding style.
This commit is contained in:
parent
653ba646d9
commit
23f5533860
2 changed files with 5 additions and 11 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue