Prefer Nimble
Prefer Nimble matchers over XCTAssert functions
- Identifier:
prefer_nimble
- Enabled by default: No
- Supports autocorrection: No
- Kind: idiomatic
- Analyzer rule: No
- Minimum Swift compiler version: 5.0.0
- Default configuration:
Key Value severity warning
Non Triggering Examples
expect(foo) == 1
expect(foo).to(equal(1))
Triggering Examples
↓XCTAssertTrue(foo)
↓XCTAssertEqual(foo, 2)
↓XCTAssertNotEqual(foo, 2)
↓XCTAssertNil(foo)
↓XCTAssert(foo)
↓XCTAssertGreaterThan(foo, 10)