Categories: None [Edit]

rubocop-constable

https://rubygems.org/gems/rubocop-constable
https://github.com/Ray-Hughes/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

Depended by

RankDownloadsName

Depends on

RankDownloadsName
56750,536,518rubocop

Owners

#GravatarHandle
1iconraymond_hughes