mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Rename "check_pattern" to "check_patterns"
This commit is contained in:
2
docs
2
docs
Submodule docs updated: 8086fc8c6a...35356aeca0
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)"
|
||||
|
Reference in New Issue
Block a user