You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system : Win64 v11 PlatformIO Version (platformio --version) : 6.1.11
Description of problem
when using a check_src_filters flag this works only when there is only one environment. As soon as a second [env] is created, the cppcheck only checks the files in folder 'src'
Steps to Reproduce
set up a simple, single [env] and configure the static code checking
When moving the static code check settings to [env], the check_src_filters flag does work as expected
[env]
check_tool = cppcheck
check_flags = --enable=all
check_src_filters =
+<test/test_*/*>
+<src/*>
[env:another]
[env:native]
; Environment for testing things without hardware.
platform = native
when extending/overriding general settings from [env] in the [env:native], this has no effect, ie. the [env:native] settings do not overrule the [env] settings
[env]
check_tool = cppcheck
check_flags = --enable=all
check_src_filters =
+<src/*>
[env:another]
[env:native]
; Environment for testing things without hardware.
platform = native
check_src_filters =
+<test/test_*/*>
+<src/*>
files in test folders are not being included in cppcheck
[x] PlatformIO Core.
Configuration
Operating system : Win64 v11
PlatformIO Version (
platformio --version
) : 6.1.11Description of problem
when using a check_src_filters flag this works only when there is only one environment. As soon as a second [env] is created, the cppcheck only checks the files in folder 'src'
Steps to Reproduce
run
pio check --environment native
and it works, checking code in src and test foldersnow add a second environment [env:another]
run
pio check --environment native
and it will only check source in 'src', no longer in test foldersActual Results
does not include files in folders set by check_src_filters
Expected Results
should include files in folders set by check_src_filters, independent of how many environments there are or settings in unselected environments
The text was updated successfully, but these errors were encountered: