Categories: None [Edit]
rubocop-sane_conditionals
Ruby is a beautiful language. It is expressive, elegant, and reads almost like
English. This is exactly the problem.
At some point, someone decided that because Ruby can read like English, it
should read like English - and then they implemented the wrong kind of
English. The kind where the subject comes last.
This gem provides RuboCop cops that ban `unless` and multiline modifier
conditionals, replacing them with explicit `if` forms that are easier to
read, reason about, and review without mentally untangling a sentence that
somebody wrote backwards and then had the nerve to commit.
Total
Ranking: 189,007 of 192,137
Downloads: 463
Daily
Ranking: 38,280 of 192,103
Downloads: 4
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 56 | 678,687,791 | rubocop |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | federicojm |