Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Rule Request: Prefer specific matcher over `XCTAssertEqual`/`XCTAssertNotEqual` #1874
New Issue Checklist
// triggers XCTAssertEqual(foo, true) XCTAssertEqual(foo, false) XCTAssertNotEqual(foo, false) XCTAssertEqual(foo, nil) XCTAssertNotEqual(foo, nil) // doesn't trigger XCTAssertFalse(foo) XCTAssertTrue(foo) XCTAssertNil(foo) XCTAssertNotNil(foo) XCTAssertEqual(foo, 2) XCTAssertNotEqual(foo, "false")
Probably as a default rule, even though there's a risk of false positives.