CachéQuality: two new rules
Hello community!
Two new rules have been implemented:
OS0061: unsafe namespace switch
This rule detects when the body of a method contains two or more of the following statements:
set $namespace = something
, orznspace something
.
If this is the case, it then checks whether there is a new $namespace
prior to those two declarations; if not, it raises a warning.
List of issues currently found here:
OS0062: confusing identifiers
This rule detects whether either of a method argument, or a local variable, differ only by case (for instance, foo
and Foo
). It detects all of "conflicting" arguments (after all, you can declare method m(a, A)
), arguments vs vars, or vars. List of issues currently found here:
More rules to come :)