Skip to content

Commit 3463ade

Browse files
committed
Use an opinionated set of rules for Rubocop
Most projects that thoughtbot is working on currently did not start here. The "Use standard" recommendation comes from a time that that wasn't true. There are a few reasons not to use Standard in existing projects: - A large project does not already use Standard and retrofitting would be costly - Need or want Rubocop rules other than Standard's opinionated set
1 parent 383a792 commit 3463ade

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ruby/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
[Sample 1](sample_1.rb) [Sample 2](sample_2.rb)
44

5-
- Use [standard]
5+
- Use an opinionated set of rules for Rubocop. Prefer [standard] for new projects.
6+
- Having an already decided configuration removes bikeshedding on what a Rubocop configuration should be.
67
- Avoid conditional modifiers (lines that end with conditionals). [36491dbb9]
78
- Avoid multiple assignments per line (`one, two = 1, 2`). [#109]
89
- Avoid organizational comments (`# Validations`). [#63]

0 commit comments

Comments
 (0)