LiteralStringKeyPath is triggered for Core Animation Key-Value Coding Extensions (no easy solution here)

Create issue
Issue #56 closed
Ben Asher created an issue

There aren't any selectors available for these keys/key paths, so we can't fix this rule by doing the usual NSStringFromSelector(@selector(keyPath)).

Core Animation Key-Value Coding Extensions

Example case that would trigger this warning:

[CABasicAnimation animationWithKeyPath:@"transform.translation.x"];

I think a good solution for this rule would be to ignore key paths that contain keys from the Core Animation Key-Value Coding Extensions.

Comments (5)

  1. Log in to comment