File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ MARKDOWN_LINTER ?= remark
130130# Define the linter to use when linting shell script files:
131131SHELL_LINTER ?= shellcheck
132132
133+ # Define the linter to use when linting C files:
134+ C_LINTER ?= cppcheck
135+
133136
134137# COMMANDS #
135138
@@ -564,3 +567,15 @@ DEPS_SHELLCHECK_BUILD_OUT ?= $(DEPS_BUILD_DIR)/shellcheck_$(deps_shellcheck_vers
564567
565568# Host platform:
566569DEPS_SHELLCHECK_PLATFORM := $(shell command -v $(NODE ) >/dev/null 2>&1 && $(NODE_HOST_PLATFORM ) )
570+
571+ # Define the cppcheck version:
572+ DEPS_CPPCHECK_VERSION ?= 2.5
573+
574+ # Generate a version slug:
575+ deps_cppcheck_version_slug := $(subst .,_,$(DEPS_CPPCHECK_VERSION ) )
576+
577+ # Define the output path when building cppcheck:
578+ DEPS_CPPCHECK_BUILD_OUT ?= $(DEPS_BUILD_DIR ) /cppcheck_$(deps_cppcheck_version_slug )
579+
580+ # Host platform:
581+ DEPS_CPPCHECK_PLATFORM := $(shell command -v $(NODE ) >/dev/null 2>&1 && $(NODE_HOST_PLATFORM ) )
You can’t perform that action at this time.
0 commit comments