Consider this object:
[t] > phrase
pos.gte 0 > multi-words
t.index-of " " > pos
(book "Object Thinking").multi-words ++> can-find-space-in-name
Here, the pos is not used by any tests. It can and should be made private:
[t] > phrase
pos.gte 0 > multi-words
t.index-of " " >> pos
^^^^
here
Let's create a lint that would catch this. If no tests refer to a method, it must be private/obfuscated (>>).
Consider this object:
Here, the
posis not used by any tests. It can and should be made private:Let's create a lint that would catch this. If no tests refer to a method, it must be private/obfuscated (
>>).