RubyGems Navigation menu

rubocop-sane_conditionals 1.0.2

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.

Gemfile:
=

安装:
=

版本列表:

  1. 1.0.2 March 30, 2026 (9.0 KB)
  2. 1.0.1 March 30, 2026 (9.0 KB)
  3. 1.0.0 March 11, 2026 (9.0 KB)

Runtime 依赖 (1):

rubocop ~> 1.0

所有者:

推送者:

作者:

  • Federico

SHA 256 校验和:

=

下载总量 368

这个版本 125

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 3.0

新的版本需要开启多因素验证(MFA): true

使用多因素验证(MFA)发布的版本: true

链接: