excessive-visibility misses test calls on a literal, a void or a local bound to another expression
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
Línea de trabajo
Read src/main/resources/org/eolang/lints/design/excessive-visibility.xsl and follow how $used matches test-call bases, comparing folded calls with postfix calls. Check existing lint tests for these receiver forms, then add coverage for literal, void, and locally bound receivers. Done means calls whose attribute name is the last segment or the segment before a further dispatch count as references, and the false reports are gone.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
excessive-visibility in src/main/resources/org/eolang/lints/design/excessive-visibility.xsl accepts a test that chains a dotted call onto any expression, such as (phrase "x").multi-words, whatever the receiver is. The parser gives that a .multi-words base, and $used matches it by the attribute name alone. When the receiver is a plain name instead of an expression, the parser folds the call into the base, and the lint then wants the receiver to be the object itself, or a local bound to the object's @loc (#1799). Calls on any other receiver are missed, so these reports from eo-runtime are false, because each method has a test:
# bool.eo, reported: The attribute "or" is public, but no unit test refers to it
true.or false ++> can-disjoin-true-with-false
# chunk.eo, reported for "put" and "get"
eq. ++> can-put-and-get
malloc.of
8
seq * > [c]
c.put 42
c.get
42.as-bytes
# directory.eo, reported for "retried"
mktemp.tmpfile.deleted.as-path.as-dir.made > parent
...
parent.retried
parent.path
42
The bases are Φ.true.or, ξ.v🌵c.put, ξ.v🌵c.get and ξ.parent.retried. true decorates bool, c is a void, and parent is bound to a dispatch chain, so none of them is Φ.bool, Φ.chunk or Φ.directory by name. file.path is reported the same way through ξ.temp.path.
The fix is to treat a folded call the way the lint already treats the postfix one. A base in a test whose last segment, or the segment before a further dispatch, is the attribute name should count as a reference whatever comes before it. The lint is already that lenient with (expr).name, so this only removes the difference between two spellings of the same call.
- Lenguaje dominante
- Java
- Estrellas
- 14
- Forks
- 43
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 166
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de objectionary/lints
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
objectionary/lints#1871 ·
Los mantenedores suelen responder en 1 día
-
`unlint-non-existing-defect` benchmark lacks coverage for documents with `+unlint` metas, potentially missing regressionsPosiblemente ocupada @VasilevNStas la tomó hace 100 días. Abiertoenhancement good-title
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
objectionary/lints#1284 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
composite @base attributes must be mandatory, if possiblePosiblemente ocupada @Marat-Tim la tomó hace 583 días. Abiertoenhancement good first issue help wanted
objectionary/lints#256 · 12 comentarios · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
`@pos` may not be larger than the amount of characters in the lineQuizá libre de nuevo @h1alexbel la tomó hace 694 días y no hay ningún pull request abierto. Abiertoenhancement good first issue help wanted
objectionary/lints#120 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
embed list of lints into the README file on every push to masterQuizá libre de nuevo @Marat-Tim la tomó hace 718 días y no hay ningún pull request abierto. Abiertoenhancement good first issue help wanted
objectionary/lints#65 · 13 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de objectionary/lints
Issues similares
-
Android Bug Core Drape
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
organicmaps/organicmaps#14449 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openhab/openhab-addons#22512 ·
Los mantenedores suelen responder en 1 día
-
help wanted maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/maven-war-plugin#694 ·
Los mantenedores suelen responder en 1 día
-
help wanted maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/maven-resolver-ant-tasks#219 ·
Los mantenedores suelen responder en 1 día
-
help wanted maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
apache/maven-project-info-reports-plugin#704 ·
Los mantenedores suelen responder en 1 día