Robocop supports hierarchical configuration. You can place different configuration files (e.g., pyproject.toml) in different subdirectories to apply specific rules or exclusions to those specific directories.
Files in a subdirectory will use the configuration closest to them. For example, a pyproject.toml in a subdir/ will apply to files within that subdirectory, allowing you to override or extend the project-level configuration.
Note: Settings that affect the entire run (such as --persistent, --exit-zero, or report generation) are only loaded from the configuration file closest to the current working directory or from the CLI, not from nested files.
project/
file1.robot # uses project/pyproject.toml
pyproject.toml # config1
subdir/
file1.robot # uses project/subdir/pyproject.toml
file2.robot # uses project/subdir/pyproject.toml
pyproject.toml # config2