From 63a2465bac2cc548ea058aa712c141957bfae321 Mon Sep 17 00:00:00 2001 From: valeros Date: Fri, 10 Sep 2021 15:32:30 +0300 Subject: [PATCH] Update check tools to the latest available // Resolve #4041 --- HISTORY.rst | 5 +++-- platformio/__init__.py | 6 +++--- tests/commands/test_check.py | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index d1586986..41f993af 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -40,8 +40,9 @@ PlatformIO Core 5 - Updated analysis tools: - * `Cppcheck `__ v2.4.1 with new checks and MISRA improvements - * `PVS-Studio `__ v7.12 with new diagnostics and extended capabilities for security and safety standards + * `Clang-Tidy `__ v12.0.1 with new modules and extended checks list + * `Cppcheck `__ v2.5.0 with improved code analysis and MISRA improvements + * `PVS-Studio `__ v7.14 with support for intermodular analysis, improved MISRA support and new diagnostics * **Miscellaneous** diff --git a/platformio/__init__.py b/platformio/__init__.py index dc05d601..73d2468e 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -51,9 +51,9 @@ __core_packages__ = { "contrib-pysite": "~2.%d%d.0" % (sys.version_info.major, sys.version_info.minor), "tool-unity": "~1.20500.0", "tool-scons": "~4.40200.0", - "tool-cppcheck": "~1.241.0", - "tool-clangtidy": "~1.100000.0", - "tool-pvs-studio": "~7.12.0", + "tool-cppcheck": "~1.250.0", + "tool-clangtidy": "~1.120001.0", + "tool-pvs-studio": "~7.14.0", } __check_internet_hosts__ = [ diff --git a/tests/commands/test_check.py b/tests/commands/test_check.py index 17f8ed27..98400c17 100644 --- a/tests/commands/test_check.py +++ b/tests/commands/test_check.py @@ -67,9 +67,9 @@ PVS_STUDIO_FREE_LICENSE_HEADER = """ // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com """ -EXPECTED_ERRORS = 4 +EXPECTED_ERRORS = 5 EXPECTED_WARNINGS = 1 -EXPECTED_STYLE = 1 +EXPECTED_STYLE = 2 EXPECTED_DEFECTS = EXPECTED_ERRORS + EXPECTED_WARNINGS + EXPECTED_STYLE