From 5e144a2c98c6c63ec4ec4fc25b8dc054af355fa8 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 23 Sep 2019 21:57:31 +0300 Subject: [PATCH] Add PIO Check to changelog --- HISTORY.rst | 11 ++++++++++- platformio/commands/check/command.py | 2 +- platformio/commands/check/tools/__init__.py | 2 +- platformio/commands/check/tools/base.py | 2 +- platformio/commands/check/tools/clangtidy.py | 2 +- platformio/commands/check/tools/cppcheck.py | 3 +-- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index b4fd0ac6..d381bdd3 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,9 +9,18 @@ PlatformIO Core 4.0 4.1.0 (2019-??-??) ~~~~~~~~~~~~~~~~~~ +* `PIO Check `__ – automated code analysis without hassle: + + - Potential NULL pointer dereferences + - Possible indexing beyond array bounds + - Suspicious assignments + - Reads of potentially uninitialized objects + - Unused variables or functions + - Out of scope memory usage. + * Extend project environment configuration in "platformio.ini" with other sections using a new `extends `__ option (`issue #2953 `_) -* New ``--no-ansi`` flag for `PIO Core `__ to disable ANSI control characters * Generate ``.ccls`` LSP file for `Emacs `__ cross references, hierarchies, completion and semantic highlighting +* Added ``--no-ansi`` flag for `PIO Core `__ to disable ANSI control characters * Fixed an issue with project generator for `CLion IDE `__ when 2 environments were used (`issue #2824 `_) * Fixed default PIO Unified Debugger configuration for `J-Link probe `__ diff --git a/platformio/commands/check/command.py b/platformio/commands/check/command.py index 52b7c339..28c4431d 100644 --- a/platformio/commands/check/command.py +++ b/platformio/commands/check/command.py @@ -24,8 +24,8 @@ import click from tabulate import tabulate from platformio import exception, fs, util -from platformio.commands.check.tools import CheckToolFactory from platformio.commands.check.defect import DefectItem +from platformio.commands.check.tools import CheckToolFactory from platformio.compat import dump_json_to_unicode from platformio.project.config import ProjectConfig from platformio.project.helpers import (find_project_dir_above, diff --git a/platformio/commands/check/tools/__init__.py b/platformio/commands/check/tools/__init__.py index 9853b595..e76cf48b 100644 --- a/platformio/commands/check/tools/__init__.py +++ b/platformio/commands/check/tools/__init__.py @@ -13,8 +13,8 @@ # limitations under the License. from platformio import exception -from platformio.commands.check.tools.cppcheck import CppcheckCheckTool from platformio.commands.check.tools.clangtidy import ClangtidyCheckTool +from platformio.commands.check.tools.cppcheck import CppcheckCheckTool class CheckToolFactory(object): diff --git a/platformio/commands/check/tools/base.py b/platformio/commands/check/tools/base.py index e2a9ccb9..7d6224b2 100644 --- a/platformio/commands/check/tools/base.py +++ b/platformio/commands/check/tools/base.py @@ -16,7 +16,7 @@ import click from platformio import fs, proc from platformio.commands.check.defect import DefectItem -from platformio.project.helpers import (get_project_dir, load_project_ide_data) +from platformio.project.helpers import get_project_dir, load_project_ide_data class CheckToolBase(object): # pylint: disable=too-many-instance-attributes diff --git a/platformio/commands/check/tools/clangtidy.py b/platformio/commands/check/tools/clangtidy.py index 94baacc3..843d02dc 100644 --- a/platformio/commands/check/tools/clangtidy.py +++ b/platformio/commands/check/tools/clangtidy.py @@ -15,8 +15,8 @@ import re from os.path import join -from platformio.commands.check.tools.base import CheckToolBase from platformio.commands.check.defect import DefectItem +from platformio.commands.check.tools.base import CheckToolBase from platformio.managers.core import get_core_package_dir diff --git a/platformio/commands/check/tools/cppcheck.py b/platformio/commands/check/tools/cppcheck.py index b7e3a3e0..e74031bd 100644 --- a/platformio/commands/check/tools/cppcheck.py +++ b/platformio/commands/check/tools/cppcheck.py @@ -16,9 +16,8 @@ from os import remove from os.path import isfile, join from tempfile import NamedTemporaryFile - -from platformio.commands.check.tools.base import CheckToolBase from platformio.commands.check.defect import DefectItem +from platformio.commands.check.tools.base import CheckToolBase from platformio.managers.core import get_core_package_dir from platformio.project.helpers import get_project_core_dir