Use perldoc on pod and perl6 files.
This commit is contained in:
parent
7c66d6959d
commit
4be818cf25
2 changed files with 6 additions and 4 deletions
2
TODO
2
TODO
|
|
@ -14,7 +14,6 @@ Todo
|
||||||
should still report on the original compressed file.
|
should still report on the original compressed file.
|
||||||
- Cache tools._python_version.
|
- Cache tools._python_version.
|
||||||
- Determine if perl files are perl5 or perl6.
|
- Determine if perl files are perl5 or perl6.
|
||||||
- Use perldoc on pod files.
|
|
||||||
- Add bandit tool for python.
|
- Add bandit tool for python.
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -155,6 +154,7 @@ Done
|
||||||
- Have a sandbox for unsafe (or all) tools.
|
- Have a sandbox for unsafe (or all) tools.
|
||||||
- Simplify coloring of mccabe. Just color functions with complexity greater than 10.
|
- Simplify coloring of mccabe. Just color functions with complexity greater than 10.
|
||||||
- Add rich LSCOLORS if the environment variable is not set.
|
- Add rich LSCOLORS if the environment variable is not set.
|
||||||
|
- Use perldoc on pod files.
|
||||||
|
|
||||||
A-syntax, B-tests, C-auto docs, D-lint, E-coverage, F-profile, G-tidy, H-import deps
|
A-syntax, B-tests, C-auto docs, D-lint, E-coverage, F-profile, G-tidy, H-import deps
|
||||||
A B C D E F G H
|
A B C D E F G H
|
||||||
|
|
|
||||||
8
tools.py
8
tools.py
|
|
@ -388,7 +388,7 @@ perl_syntax.dependencies = {"perl"}
|
||||||
|
|
||||||
|
|
||||||
def perldoc(path):
|
def perldoc(path):
|
||||||
stdout, stderr, returncode = _do_command(["perldoc", path])
|
stdout, stderr, returncode = _do_command(["perldoc", "-t", path])
|
||||||
return ((Status.info, fill3.Text(stdout)) if returncode == 0
|
return ((Status.info, fill3.Text(stdout)) if returncode == 0
|
||||||
else (Status.placeholder, fill3.Text(stderr)))
|
else (Status.placeholder, fill3.Text(stderr)))
|
||||||
perldoc.dependencies = {"perl-doc"}
|
perldoc.dependencies = {"perl-doc"}
|
||||||
|
|
@ -565,8 +565,10 @@ def tools_for_extension():
|
||||||
"pl": [perl_syntax, perldoc, perltidy],
|
"pl": [perl_syntax, perldoc, perltidy],
|
||||||
"pm": [perl_syntax, perldoc, perltidy],
|
"pm": [perl_syntax, perldoc, perltidy],
|
||||||
"t": [perl_syntax, perldoc, perltidy],
|
"t": [perl_syntax, perldoc, perltidy],
|
||||||
"p6": [perl6_syntax],
|
"p6": [perl6_syntax, perldoc],
|
||||||
"pm6": [perl6_syntax],
|
"pm6": [perl6_syntax, perldoc],
|
||||||
|
"pod": [perldoc],
|
||||||
|
"pod6": [perldoc],
|
||||||
"java": [antic, uncrustify],
|
"java": [antic, uncrustify],
|
||||||
"class": [jlint],
|
"class": [jlint],
|
||||||
"c": [splint, uncrustify],
|
"c": [splint, uncrustify],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue