Skip to content

Extend xct_specific_matcher rule to cover === -> XCTAssertIdentical #5849

@akuzminskyi

Description

@akuzminskyi

New Issue Checklist

Feature or Enhancement Proposal

Extend xct_specific_matcher rule to cover scenarios for for comparing === in XCAssert to XCTAssertIdentical and XCTAssertNotIdentical for !==.

XCAssertTrue(val1 === val2) -> XCTAssertIdentical(val1, val2)
XCAssert(val1 === val2) -> XCTAssertIdentical(val1, val2)

XCAssertTrue(val1 !== val2) -> XCTAssertNotIdentical(val1, val2)
XCAssert(val1 !== val2) -> XCTAssertNotIdentical(val1, val2)

Describe you idea or proposal here. This can be a new feature, an enhancement to an existing feature, or a change to the
project's behavior. Be sure to include the rationale behind the proposal and any relevant context or examples.

Metadata

Metadata

Assignees

Labels

enhancementIdeas for improvements of existing features and rules.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions