Rename "check_pattern" to "check_patterns"

This commit is contained in:
Ivan Kravets
2019-11-07 15:24:47 +02:00
parent 2408c0a4c7
commit 95c1b0214c
4 changed files with 4 additions and 4 deletions

2
docs

Submodule docs updated: 8086fc8c6a...35356aeca0

View File

@ -109,7 +109,7 @@ def cli(
tool_options = dict(
verbose=verbose,
silent=silent,
pattern=pattern or env_options.get("check_pattern", default_patterns),
patterns=pattern or env_options.get("check_patterns", default_patterns),
flags=flags or env_options.get("check_flags"),
severity=[DefectItem.SEVERITY_LABELS[DefectItem.SEVERITY_HIGH]]
if silent

View File

@ -134,7 +134,7 @@ class CheckToolBase(object): # pylint: disable=too-many-instance-attributes
return
result.append(os.path.abspath(path))
for pattern in self.options["pattern"]:
for pattern in self.options["patterns"]:
for item in glob.glob(pattern):
if not os.path.isdir(item):
_add_file(item)

View File

@ -537,7 +537,7 @@ ProjectOptions = OrderedDict(
),
ConfigEnvOption(
group="check",
name="check_pattern",
name="check_patterns",
description=(
"Configure a list of target files or directories for checking "
"(Unix shell-style wildcards)"