Added in version 6.1.7.

check_src_filters

Type: String (Templates) | Multiple: Yes

This option allows one to specify which files should be included or excluded from the check process. The filter supports two templates:

  • +<PATH> include template

  • -<PATH> exclude template

PATH is relative to src_dir. All patterns will be applied in their order of definition. GLOB Patterns are allowed.

By default, check_src_filters is predefined to include ALL files from the src_dir and include_dir folders.

Example

[env:check_src_filters]
platform = ...
board = ...
check_src_filters =
  -<src/*>
  +<src/spi/spi.cpp>
  -<tests/>
  +<tests/test_embedded/*.c*>