Skip to content

Commit e13bfab

Browse files
neilvcarvalhovburzynski
authored andcommitted
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 e7efd88 commit e13bfab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)