From 95c1b0214c4ca3c18b28ce6d9774c078ce6dd666 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 7 Nov 2019 15:24:47 +0200 Subject: [PATCH] Rename "check_pattern" to "check_patterns" --- docs | 2 +- platformio/commands/check/command.py | 2 +- platformio/commands/check/tools/base.py | 2 +- platformio/project/options.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs b/docs index 8086fc8c..35356aec 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 8086fc8c6ac06666b9afb6407c2d21f60fccfe18 +Subproject commit 35356aeca0786029398c9adf6c7aad209279cad7 diff --git a/platformio/commands/check/command.py b/platformio/commands/check/command.py index 9761c863..24575436 100644 --- a/platformio/commands/check/command.py +++ b/platformio/commands/check/command.py @@ -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 diff --git a/platformio/commands/check/tools/base.py b/platformio/commands/check/tools/base.py index 6a0d10b2..59951288 100644 --- a/platformio/commands/check/tools/base.py +++ b/platformio/commands/check/tools/base.py @@ -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) diff --git a/platformio/project/options.py b/platformio/project/options.py index 3294084d..b4c1814f 100644 --- a/platformio/project/options.py +++ b/platformio/project/options.py @@ -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)"