cppcheck 1.0.3__tar.gz → 1.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.pre-commit-config.yaml +1 -8
- {cppcheck-1.0.3 → cppcheck-1.1.2}/PKG-INFO +1 -1
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/ports/cppcheck/portfile.cmake +18 -1
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/ports/cppcheck/vcpkg.json +7 -1
- {cppcheck-1.0.3 → cppcheck-1.1.2}/src/cppcheck/__init__.py +3 -6
- {cppcheck-1.0.3 → cppcheck-1.1.2}/src/cppcheck/_version.py +2 -2
- cppcheck-1.1.2/tests/test_package.py +19 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/vcpkg.json +6 -1
- cppcheck-1.0.3/tests/test_package.py +0 -14
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.clang-format +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.clang-tidy +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.copier-answers.yml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.cppcheck-suppressions.txt +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.devcontainer/devcontainer.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.editorconfig +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.gitattributes +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.github/codecov.yml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.github/codeql-config.yml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.github/matchers/pylint.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.github/workflows/cd.yml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.github/workflows/ci.yml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.github/workflows/codeql.yml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.github/workflows/renovate.yml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.github/workflows/semantic-release.yml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.gitignore +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.markdownlint.yaml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.releaserc.js +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.renovaterc.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.vscode/launch.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/.vscode/settings.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/CMakeLists.txt +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/CMakePresets.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/LICENSE +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/README.md +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/ConfigureWarningsAndHardening.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/arch/x64.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/base.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/compilers/gcc.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/compilers/llvm.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/compilers/mingw.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/compilers/msvc.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/default.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/generators/ninja.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/os/darwin.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/os/linux.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/os/windows.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/toolchains/vcpkg.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/triplets/x64-linux.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/triplets/x64-mingw-static.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/triplets/x64-osx.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/triplets/x64-windows.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/x64-linux-gcc.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/x64-linux-llvm.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/x64-osx-gcc.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/x64-osx-llvm.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/x64-windows-llvm.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/presets/x64-windows-msvc.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/ports/README.md +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/ports/python3/portfile.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/ports/python3/vcpkg.json +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/scripts/build_type.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/triplets/README.md +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/vcpkg.toolchain.cmake +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/docs/api/index.md +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/docs/conf.py +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/docs/index.md +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/noxfile.py +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/pyproject.toml +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/src/CMakeLists.txt +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/src/cppcheck/__main__.py +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/src/cppcheck/_version.pyi +0 -0
- {cppcheck-1.0.3 → cppcheck-1.1.2}/src/cppcheck/py.typed +0 -0
|
@@ -37,14 +37,6 @@ repos:
|
|
|
37
37
|
- id: requirements-txt-fixer
|
|
38
38
|
- id: trailing-whitespace
|
|
39
39
|
|
|
40
|
-
# Check RST
|
|
41
|
-
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
42
|
-
rev: v1.10.0
|
|
43
|
-
hooks:
|
|
44
|
-
- id: rst-backticks
|
|
45
|
-
- id: rst-directive-colons
|
|
46
|
-
- id: rst-inline-touching-normal
|
|
47
|
-
|
|
48
40
|
# Strong lint from ruff
|
|
49
41
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
50
42
|
rev: v0.1.14
|
|
@@ -62,6 +54,7 @@ repos:
|
|
|
62
54
|
args: []
|
|
63
55
|
additional_dependencies:
|
|
64
56
|
- pytest
|
|
57
|
+
- importlib_metadata
|
|
65
58
|
|
|
66
59
|
# Check yaml
|
|
67
60
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
@@ -15,7 +15,24 @@ vcpkg_replace_string("${SOURCE_PATH}/cmake/compilerDefinitions.cmake"
|
|
|
15
15
|
[[]]
|
|
16
16
|
)
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
if(VCPKG_TARGET_IS_LINUX)
|
|
19
|
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
20
|
+
message(STATUS "Disable automatic elf rpath fixup for ${VCPKG_TARGET_ARCHITECTURE} linux")
|
|
21
|
+
set(VCPKG_FIXUP_ELF_RPATH OFF)
|
|
22
|
+
endif()
|
|
23
|
+
endif()
|
|
24
|
+
|
|
25
|
+
vcpkg_check_features(
|
|
26
|
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
27
|
+
FEATURES
|
|
28
|
+
have_rules HAVE_RULES
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
vcpkg_cmake_configure(
|
|
32
|
+
SOURCE_PATH "${SOURCE_PATH}"
|
|
33
|
+
OPTIONS
|
|
34
|
+
${FEATURE_OPTIONS}
|
|
35
|
+
)
|
|
19
36
|
|
|
20
37
|
vcpkg_cmake_install()
|
|
21
38
|
vcpkg_copy_pdbs()
|
|
@@ -15,15 +15,12 @@ import sys
|
|
|
15
15
|
from pathlib import Path
|
|
16
16
|
from typing import Iterable
|
|
17
17
|
|
|
18
|
+
from importlib_metadata import distribution
|
|
19
|
+
|
|
18
20
|
from ._version import version as __version__
|
|
19
21
|
|
|
20
22
|
__all__ = ["__version__", "cppcheck"]
|
|
21
23
|
|
|
22
|
-
if sys.version_info < (3, 8):
|
|
23
|
-
from importlib_metadata import distribution
|
|
24
|
-
else:
|
|
25
|
-
from importlib.metadata import distribution
|
|
26
|
-
|
|
27
24
|
|
|
28
25
|
@functools.lru_cache(maxsize=None)
|
|
29
26
|
def _get_cppcheck() -> Path:
|
|
@@ -31,7 +28,7 @@ def _get_cppcheck() -> Path:
|
|
|
31
28
|
assert package_files is not None, f"There must exist {__package__} files"
|
|
32
29
|
for file in package_files:
|
|
33
30
|
if str(file).startswith(f"{__package__}/Cppcheck"):
|
|
34
|
-
resolved_file = Path(file.locate()).resolve(strict=True)
|
|
31
|
+
resolved_file = Path(str(file.locate())).resolve(strict=True)
|
|
35
32
|
cppcheck_path = resolved_file.parents[1]
|
|
36
33
|
if cppcheck_path.exists():
|
|
37
34
|
return cppcheck_path
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import subprocess
|
|
4
|
+
|
|
5
|
+
import pytest
|
|
6
|
+
from importlib_metadata import version
|
|
7
|
+
|
|
8
|
+
import cppcheck as m
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def test_version():
|
|
12
|
+
assert version("cppcheck") == m.__version__
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@pytest.mark.parametrize("testcase", [("--version", f"{m.__version__}")])
|
|
16
|
+
def test_cppcheck(testcase):
|
|
17
|
+
test_input, test_output = testcase
|
|
18
|
+
output = subprocess.run(["cppcheck", test_input], capture_output=True, check=True)
|
|
19
|
+
assert test_output in str(output.stdout.rstrip())
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
"builtin-baseline": "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3",
|
|
6
6
|
"homepage": "https://github.com/msclock/cppcheck-wheel",
|
|
7
7
|
"dependencies": [
|
|
8
|
-
|
|
8
|
+
{
|
|
9
|
+
"name": "cppcheck",
|
|
10
|
+
"features": [
|
|
11
|
+
"have-rules"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
9
14
|
"cmake-modules",
|
|
10
15
|
"robotology-cmake-ycm"
|
|
11
16
|
],
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
|
|
5
|
-
if sys.version_info < (3, 8):
|
|
6
|
-
from importlib_metadata import version
|
|
7
|
-
else:
|
|
8
|
-
from importlib.metadata import version
|
|
9
|
-
|
|
10
|
-
import cppcheck as m
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def test_version():
|
|
14
|
-
assert version("cppcheck") == m.__version__
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cppcheck-1.0.3 → cppcheck-1.1.2}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|