id: expect_not-1
language: r
severity: warning
rule:
  all:
    - pattern: expect_true(!$COND)
    - not:
        regex: '^expect_true\(!!'
fix: expect_false(~~COND~~)
message: expect_false(x) is better than expect_true(!x), and vice versa.

---

id: expect_not-2
language: r
severity: warning
rule:
  all:
    - pattern: expect_false(!$COND)
    - not:
        regex: '^expect_false\(!!'
fix: expect_true(~~COND~~)
message: expect_false(x) is better than expect_true(!x), and vice versa.
