excessive-visibility reports atom record types whose annotation lists field types
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start with excessive-visibility.xsl and inspect how the types variable collects @atom and @type values before comparing them with @loc. Update the normalization so atom annotations with field type lists match the record type name. Run the excessive-visibility checks against the reported EO examples; done means these records are no longer falsely reported while ordinary visibility checks still work.
Written by the indexing model from the issue text.
Description
excessive-visibility is meant to leave alone a formation that an atom names as its return type. It collects those names in excessive-visibility.xsl:
<xsl:variable name="types" select="(//o/@atom, for $t in //o/@type return replace($t, '\?$', ''))"/>
...
and not(@loc = $types)
In EO the atom annotation now also lists the types of the record's fields:
[] > readdir /Q.posix.dir-return(Q.number,Q.string)
[cde nme] > dir-return
posix.dir-return > called
The parser keeps that whole annotation in @atom, as atom="Φ.posix.dir-return(Φ.number,Φ.string)", while the formation's @loc is Φ.posix.dir-return. They never compare equal, so every such record is reported:
posix:41 The attribute "dir-return" is public, but no unit test refers to it; obfuscate it with >> instead of > (excessive-visibility/S)
eo-runtime gets ten of these, dir-return, getenv-return, stat-return and status-return in posix.eo, plus those and search-return and time-return in win32.eo. Following the advice would break the build, since the runtime finds these records through their absolute names.
The type should be cut at the first ( before it is compared, as in replace($t, '\(.*$|\?$', '') applied to @atom as well as to @type.
- Dominant language
- Java
- Stars
- 14
- Forks
- 43
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 166
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from objectionary/lints
-
excessive-visibility misses test calls on a literal, a void or a local bound to another expressionOpenbug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
objectionary/lints#1870 ·
Maintainers usually reply within 1 day
-
`unlint-non-existing-defect` benchmark lacks coverage for documents with `+unlint` metas, potentially missing regressionsPossibly taken @VasilevNStas claimed this 100 days ago. Openenhancement good-title
Difficulty 3/5 1-2 days Newbie friendliness 68/100
objectionary/lints#1284 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
composite @base attributes must be mandatory, if possiblePossibly taken @Marat-Tim claimed this 583 days ago. Openenhancement good first issue help wanted
objectionary/lints#256 · 12 comments · 2 assignees ·
Maintainers usually reply within 1 day
-
`@pos` may not be larger than the amount of characters in the lineMay be free again @h1alexbel claimed this 694 days ago, and no pull request is open. Openenhancement good first issue help wanted
objectionary/lints#120 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
embed list of lints into the README file on every push to masterMay be free again @Marat-Tim claimed this 718 days ago, and no pull request is open. Openenhancement good first issue help wanted
objectionary/lints#65 · 13 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in objectionary/lints
Similar issues
-
Android Bug Core Drape
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
organicmaps/organicmaps#14449 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openhab/openhab-addons#22512 ·
Maintainers usually reply within 1 day
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
apache/maven-war-plugin#694 ·
Maintainers usually reply within 1 day
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-resolver-ant-tasks#219 ·
Maintainers usually reply within 1 day
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/maven-project-info-reports-plugin#704 ·
Maintainers usually reply within 1 day