objectionary / objectionary/lints
`excessive-visibility` lint doesn't flag unused public methods
Open
@yegor256 is already working on this.
Since Aug 26, 2026.
enhancement
good-title
help wanted
- Dominant language
- Java
- Stars
- 14
- Forks
- 39
- Avg merge
- 22h 54m
- Merged PRs (30d)
- 90
Description
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 (>>).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.