Categories: None [Edit]
rubocop-constable
The companion RuboCop extension for Constable, the opinionated Rails testing gem.
Constable's second principle is that nondeterminism is caught by the linter, not
discovered in CI. These seven cops are that linter: bare `sleep`, unfrozen
`Time.now`, unstubbed HTTP, class-level shared state, assertions hidden behind a
branch, retry and eventually helpers, and an `unsafe` block that never says why.
Every cop is scoped to native `Constable::Case` files. Cold cases -- untouched
RSpec or Minitest files running through `Constable::ColdCase::*` -- are exempt by
design, because the whole point of the adoption story is that taking the on-ramp
costs nothing.
Install it alongside `constable-rails` and add `require: rubocop-constable` to
`.rubocop.yml`.
Total
Ranking: 117,997 of 196,881
Downloads: 6,403
Daily
Ranking: 15,340 of 196,850
Downloads: 14
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 | 750,536,518 | rubocop |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | raymond_hughes |