mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Allow cppcheck suppress individual defects by default
This commit is contained in:
@ -91,6 +91,10 @@ class CppcheckCheckTool(CheckToolBase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
flags = self.get_flags("cppcheck")
|
flags = self.get_flags("cppcheck")
|
||||||
|
if not flags:
|
||||||
|
# by default user can suppress reporting individual defects
|
||||||
|
# directly in code // cppcheck-suppress warningID
|
||||||
|
cmd.append("--inline-suppr")
|
||||||
if not self.is_flag_set("--platform", flags):
|
if not self.is_flag_set("--platform", flags):
|
||||||
cmd.append("--platform=unspecified")
|
cmd.append("--platform=unspecified")
|
||||||
if not self.is_flag_set("--enable", flags):
|
if not self.is_flag_set("--enable", flags):
|
||||||
|
Reference in New Issue
Block a user