diff --git a/platformio/commands/check/command.py b/platformio/commands/check/command.py index 24575436..9761c863 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, - patterns=pattern or env_options.get("check_patterns", default_patterns), + pattern=pattern or env_options.get("check_pattern", 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 59951288..6a0d10b2 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["patterns"]: + for pattern in self.options["pattern"]: for item in glob.glob(pattern): if not os.path.isdir(item): _add_file(item)