objectionary / objectionary/lints

`excessive-visibility` lint doesn't flag unused public methods

Open
#1,207 1 comment 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.