Skip to content

Commit e6d773d

Browse files
Update CLAUDE.md
Rubocop's -A option (unsafe autocorrect) is much trouble than it's worth. It's better to let the AI fix it than to run the unsafe autocorrect. Signed-off-by: David A. Wheeler <[email protected]>
1 parent c4ef7e2 commit e6d773d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CLAUDE.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ For specific files:
3939
- `mdl FILENAME.md` - Markdownlint only the file `FILENAME.md`
4040
- `rubocop FILENAME.rb` - Run rubocop on just `FILENAME.rb`
4141

42-
Don't run `rails_best_practices` to analyze individual files, as
43-
it needs the full context to do its best.
42+
Don't run `rails_best_practices` to analyze individual files.
43+
The `rails_best_practices` program needs the full context of all files
44+
to do its best.
45+
46+
You may run `rubocop -a` (safe autocorrect), but
47+
do NOT run `rubocop -A` (unsafe autocorrect) without express approval
48+
and WARN that `-A` is unsafe. Rubocop's unsafe autocorrect makes many mistakes
49+
and in nearly all cases should be avoided.
4450

4551
### Workflow
4652

0 commit comments

Comments
 (0)