Static Code Analysis can be configured from “platformio.ini” (Project Configuration File) using the next options:
You can also override some options using pio check command.
Custom tool version can be configured using platform_packages option. Check PlatformIO Registry for the available versions.
Example
[env:myenv]
platform = ...
board = ...
check_tool = cppcheck
platform_packages = tool-cppcheck@1.260.0