Skip to content

Commit 9b1017a

Browse files
committed
docs(staged): remove unmatched behavior details
1 parent 8a18cbb commit 9b1017a

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

website/docs/en/guide/cli/staged.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,3 @@ define.staged({
100100
'*.{json,md,mdx,css,html}': 'rs fmt',
101101
});
102102
```
103-
104-
When `rs staged` runs an `rs fmt` task, the formatter exits successfully if none of the provided paths match or if all matching files are ignored. Direct `rs fmt` commands remain strict; use [`--no-error-on-unmatched-pattern`](./fmt#--no-error-on-unmatched-pattern) to enable the same behavior in other integrations.

website/docs/zh/guide/cli/staged.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,3 @@ define.staged({
100100
'*.{json,md,mdx,css,html}': 'rs fmt',
101101
});
102102
```
103-
104-
`rs staged` 运行 `rs fmt` 任务时,如果传入的路径均未匹配或所有匹配文件均被忽略,formatter 会成功退出。直接运行 `rs fmt` 时仍保持严格行为;在其他集成中,可以通过 [`--no-error-on-unmatched-pattern`](./fmt#--no-error-on-unmatched-pattern) 启用相同行为。

0 commit comments

Comments
 (0)