Skip to content

Config: Flatten .herb.yml structure and add rule-level patterns#755

Merged
marcoroth merged 5 commits intomainfrom
config-improvments
Oct 31, 2025
Merged

Config: Flatten .herb.yml structure and add rule-level patterns#755
marcoroth merged 5 commits intomainfrom
config-improvments

Conversation

@marcoroth
Copy link
Owner

This pull request restructures the .herb.yml schema to use a flat structure for linter and formatter file patterns, moving from the nested files.patterns/exclude/extensions format to a simpler files.include/exclude format.

The change also introduces new include, exclude, and only options for rule-level configuration, allowing rules to specify additional file patterns in an additive manner similar to tool-level includes.

The rule pattern system now supports three distinct configuration options with clear precedence rules. When only is specified, it restricts the rule to those specific patterns and ignores any include settings. When only is absent but include is present, the rule applies only to files matching the include patterns. The exclude option is always applied regardless of other pattern settings.

@marcoroth marcoroth changed the title Config: Flatten .herb.yml structure and add rule-level include Config: Flatten .herb.yml structure and add rule-level patterns Oct 31, 2025
@marcoroth marcoroth merged commit 433ead7 into main Oct 31, 2025
9 checks passed
@marcoroth marcoroth deleted the config-improvments branch October 31, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant