[x] PlatformIO Core.
Configuration
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
[env:native]
platform = native
check_tool = cppcheck
check_flags = --enable=all
check_src_filters =
+<test/test_*/*>
+<src/*>
run pio check --environment native and it works, checking code in src and test folders
now add a second environment [env:another]
[env:another]
[env:native]
platform = native
check_tool = cppcheck
check_flags = --enable=all
check_src_filters =
+<test/test_*/*>
+<src/*>
run pio check --environment native and it will only check source in 'src', no longer in test folders
Actual 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
[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 nativeand it works, checking code in src and test foldersnow add a second environment [env:another]
run
pio check --environment nativeand 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