mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +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(
|
tool_options = dict(
|
||||||
verbose=verbose,
|
verbose=verbose,
|
||||||
silent=silent,
|
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"),
|
flags=flags or env_options.get("check_flags"),
|
||||||
severity=[DefectItem.SEVERITY_LABELS[DefectItem.SEVERITY_HIGH]]
|
severity=[DefectItem.SEVERITY_LABELS[DefectItem.SEVERITY_HIGH]]
|
||||||
if silent
|
if silent
|
||||||
|
@ -134,7 +134,7 @@ class CheckToolBase(object): # pylint: disable=too-many-instance-attributes
|
|||||||
return
|
return
|
||||||
result.append(os.path.abspath(path))
|
result.append(os.path.abspath(path))
|
||||||
|
|
||||||
for pattern in self.options["pattern"]:
|
for pattern in self.options["patterns"]:
|
||||||
for item in glob.glob(pattern):
|
for item in glob.glob(pattern):
|
||||||
if not os.path.isdir(item):
|
if not os.path.isdir(item):
|
||||||
_add_file(item)
|
_add_file(item)
|
||||||
|
@ -537,7 +537,7 @@ ProjectOptions = OrderedDict(
|
|||||||
),
|
),
|
||||||
ConfigEnvOption(
|
ConfigEnvOption(
|
||||||
group="check",
|
group="check",
|
||||||
name="check_pattern",
|
name="check_patterns",
|
||||||
description=(
|
description=(
|
||||||
"Configure a list of target files or directories for checking "
|
"Configure a list of target files or directories for checking "
|
||||||
"(Unix shell-style wildcards)"
|
"(Unix shell-style wildcards)"
|
||||||
|
Reference in New Issue
Block a user