mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Move "check" command to the root
This commit is contained in:
@ -26,8 +26,8 @@ import click
|
|||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
|
|
||||||
from platformio import app, exception, fs, util
|
from platformio import app, exception, fs, util
|
||||||
from platformio.commands.check.defect import DefectItem
|
from platformio.check.defect import DefectItem
|
||||||
from platformio.commands.check.tools import CheckToolFactory
|
from platformio.check.tools import CheckToolFactory
|
||||||
from platformio.project.config import ProjectConfig
|
from platformio.project.config import ProjectConfig
|
||||||
from platformio.project.helpers import find_project_dir_above, get_project_dir
|
from platformio.project.helpers import find_project_dir_above, get_project_dir
|
||||||
|
|
@ -13,9 +13,9 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from platformio import exception
|
from platformio import exception
|
||||||
from platformio.commands.check.tools.clangtidy import ClangtidyCheckTool
|
from platformio.check.tools.clangtidy import ClangtidyCheckTool
|
||||||
from platformio.commands.check.tools.cppcheck import CppcheckCheckTool
|
from platformio.check.tools.cppcheck import CppcheckCheckTool
|
||||||
from platformio.commands.check.tools.pvsstudio import PvsStudioCheckTool
|
from platformio.check.tools.pvsstudio import PvsStudioCheckTool
|
||||||
|
|
||||||
|
|
||||||
class CheckToolFactory(object):
|
class CheckToolFactory(object):
|
@ -19,7 +19,7 @@ import tempfile
|
|||||||
import click
|
import click
|
||||||
|
|
||||||
from platformio import fs, proc
|
from platformio import fs, proc
|
||||||
from platformio.commands.check.defect import DefectItem
|
from platformio.check.defect import DefectItem
|
||||||
from platformio.package.manager.core import get_core_package_dir
|
from platformio.package.manager.core import get_core_package_dir
|
||||||
from platformio.package.meta import PackageSpec
|
from platformio.package.meta import PackageSpec
|
||||||
from platformio.project.helpers import load_build_metadata
|
from platformio.project.helpers import load_build_metadata
|
@ -15,8 +15,8 @@
|
|||||||
import re
|
import re
|
||||||
from os.path import join
|
from os.path import join
|
||||||
|
|
||||||
from platformio.commands.check.defect import DefectItem
|
from platformio.check.defect import DefectItem
|
||||||
from platformio.commands.check.tools.base import CheckToolBase
|
from platformio.check.tools.base import CheckToolBase
|
||||||
|
|
||||||
|
|
||||||
class ClangtidyCheckTool(CheckToolBase):
|
class ClangtidyCheckTool(CheckToolBase):
|
@ -17,8 +17,8 @@ import os
|
|||||||
import click
|
import click
|
||||||
|
|
||||||
from platformio import proc
|
from platformio import proc
|
||||||
from platformio.commands.check.defect import DefectItem
|
from platformio.check.defect import DefectItem
|
||||||
from platformio.commands.check.tools.base import CheckToolBase
|
from platformio.check.tools.base import CheckToolBase
|
||||||
|
|
||||||
|
|
||||||
class CppcheckCheckTool(CheckToolBase):
|
class CppcheckCheckTool(CheckToolBase):
|
@ -20,8 +20,8 @@ from xml.etree.ElementTree import fromstring
|
|||||||
import click
|
import click
|
||||||
|
|
||||||
from platformio import proc
|
from platformio import proc
|
||||||
from platformio.commands.check.defect import DefectItem
|
from platformio.check.defect import DefectItem
|
||||||
from platformio.commands.check.tools.base import CheckToolBase
|
from platformio.check.tools.base import CheckToolBase
|
||||||
from platformio.compat import IS_WINDOWS
|
from platformio.compat import IS_WINDOWS
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ from os.path import isfile, join
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from platformio import fs
|
from platformio import fs
|
||||||
from platformio.commands.check.command import cli as cmd_check
|
from platformio.check.cli import cli as cmd_check
|
||||||
|
|
||||||
DEFAULT_CONFIG = """
|
DEFAULT_CONFIG = """
|
||||||
[env:native]
|
[env:native]
|
||||||
|
Reference in New Issue
Block a user