Elffuss BraidHub

kikocis/continue public

explicit alwaysApply example
Changesetbe26cc4523c94901d9cd910cb7aa828d666cd03c3b97eb2010a3d95fc081b14d
AuthorBrian 'bdougie' Douglas <brian@opensauced.pizza> · 2025-06-10 15:28 -07:00
CommitterBrian 'bdougie' Douglas <brian@opensauced.pizza> · 2025-06-10 15:28 -07:00
Parents2b64f41d7009

Browse the files at this changeset

1 file changed

modified docs/docs/customize/deep-dives/rules.mdx +3 −1
@@ -62,8 +62,10 @@
6262 Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
6363
6464 - `name` (**required** for YAML): A display name/title for the rule
65-- `alwaysApply` (optional): Always include the rule, regardless of file context
6665 - `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`).
66+- `alwaysApply`: true - Always include the rule, regardless of file context
67+- `alwaysApply`: false - Only include if globs exist AND match file context
68+- `alwaysApply`: undefined - Default behavior: include if no globs exist OR globs exist and match
6769
6870 <Tabs groupId="rules-example">
6971 <TabItem value="md" label="Markdown">