mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Don't append --checks=* when the --config or --config-file flags are set (#4210)
Appending --checks=* causes clang-tidy to ignore the flags --config and --config-file, which breaks the ability to use a clang-tidy file
This commit is contained in:
@ -60,7 +60,9 @@ class ClangtidyCheckTool(CheckToolBase):
|
|||||||
|
|
||||||
cmd = [tool_path, "--quiet"]
|
cmd = [tool_path, "--quiet"]
|
||||||
flags = self.get_flags("clangtidy")
|
flags = self.get_flags("clangtidy")
|
||||||
if not self.is_flag_set("--checks", flags):
|
if not (
|
||||||
|
self.is_flag_set("--checks", flags) or self.is_flag_set("--config", flags)
|
||||||
|
):
|
||||||
cmd.append("--checks=*")
|
cmd.append("--checks=*")
|
||||||
|
|
||||||
project_files = self.get_project_target_files(self.options["patterns"])
|
project_files = self.get_project_target_files(self.options["patterns"])
|
||||||
|
Reference in New Issue
Block a user