mirror of https://github.com/zulip/zulip.git
lint: Explain the purpose of target_langs.
Tweaked by tabbott to be a longer docstring.
This commit is contained in:
parent
7225b7bdf8
commit
99b004942f
|
@ -688,6 +688,13 @@ def run():
|
|||
return func
|
||||
|
||||
def external_linter(name, command, target_langs=[]):
|
||||
"""Registers an external linter program to be run as part of the
|
||||
linter. This program will be passed the subset of files being
|
||||
linted that have extensions in target_langs. If there are no
|
||||
such files, exits without doing anything.
|
||||
|
||||
If target_langs is empty, just runs the linter unconditionally.
|
||||
"""
|
||||
# type: (str, List[str], List[str]) -> None
|
||||
def run_linter():
|
||||
# type: () -> int
|
||||
|
|
Loading…
Reference in New Issue