ACR Rules

⌘K
  1. Home
  2. Docs
  3. ACR Rules
  4. Reliability (41)
  5. Lists operations should be passed different arguments

Lists operations should be passed different arguments

Introduced in version: 1.3 (29 Jan 2020)

When list operations “Change list/Remove”, “Change list/Replace”, “Union”, “Intersect” “Subtract”, “Contains” or “Equals” are called with the same list for both arguments then the result is trivial.
For example, when doing a union of a list with itself the result is the same list. When checking if a list contains itself the result is always true. When removing a list from itself the result is an empty list.

This is most likely a bug and some other argument was intended to be passed.

Noncompliant example:

Compliant example: