Start adding hyperlinks to the tool's homepages.

This commit is contained in:
Andrew Hamilton 2016-11-19 16:47:05 +01:00
parent be71ddadde
commit 1028f74de9
3 changed files with 10 additions and 2 deletions

View file

@ -27,7 +27,7 @@ e.g. After cloning do:
Extensions | Tools
---------- | -----
.py | python_syntax • python_unittests • pydoc • mypy • python_coverage • python_profile • pycodestyle • pyflakes • pylint • python_gut • python_modulefinder • python_mccabe • bandit
.py | python_syntax • python_unittests • pydoc • mypy • python_coverage • python_profile • pycodestyle • pyflakes • pylint • python_gut • python_modulefinder • python_mccabe • [bandit](http://wiki.openstack.org/wiki/Security/Project/Bandit)
.pyc | disassemble_pyc
.pl .pm .t | perl_syntax • perldoc • perltidy
.pod .pod6 | perldoc

View file

@ -8,6 +8,13 @@
import tools
def tool_markup(tool):
try:
return "[%s](%s)" % (tool.__name__, tool.url)
except AttributeError:
return tool.__name__
print("""\
# Vigil Code Monitor
@ -40,4 +47,4 @@ Extensions | Tools
---------- | -----""")
for extensions, tools_ in tools.TOOLS_FOR_EXTENSIONS:
print("%s | %s" % (" ".join("." + extension for extension in extensions),
"".join(tool.__name__ for tool in tools_)))
"".join(tool_markup(tool) for tool in tools_)))

View file

@ -460,6 +460,7 @@ def bandit(path):
text_without_timestamp = "".join(text.splitlines(keepends=True)[2:])
return status, fill3.Text(text_without_timestamp)
bandit.dependencies = {"python-bandit", "python3-bandit"}
bandit.url = "http://wiki.openstack.org/wiki/Security/Project/Bandit"
def _perl_version(path):