a package with a `bin` entry: console output is the product, not debug logging (M2)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
Línea de trabajo
Start with centralized-logging.ts around lines 21-39 and compare its TypeScript handling with the Python PY_ALLOWED behavior. Trace the package.json bin entry into the command layer and inspect the cited src/cli/*, audit-engine.ts, and hooks/installer.ts output. Keep library logging violations visible; done means CLI log/info/warn output is exempted while debug/trace remains counted and logging sink modules are recognized or configurable.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found in the 8.0.0 self-audit triage: RoC 7.29.1 (npm, 5fc54afe) on a clean clone of develop at 2d2fa9a, with typescript resolvable (verdict compliance, 0 failed / 46 warnings). The bucket method and per-law tables are kept by QA; counts are from that run.
What happens
Absolute Zero Tolerance (console template, 15 of 20 false) and Centralized Logging (10 of 18 false) count every console.* call as stray logging. In a CLI, console.log/info/warn in the command layer and report renderer is the user interface: src/cli/*, the report rendering in audit-engine.ts (about 70 of its 84 calls), hooks/installer.ts progress output. The Python branch of Centralized Logging already exempts CLI entry points (PY_ALLOWED); the TypeScript branch does not (centralized-logging.ts:37-39). The logger allowlist accepts only files named logger.service.ts|main.ts (:21-22), so a project's own logging module (logging-utils.ts) is flagged too.
Real debt remains and should stay visible: library code that bypasses the project's logger (e.g. a cache write warning, [DEBUG] output in a discovery helper, a console.log inside a law service during an audit).
Suggested direction
When package.json declares bin, treat console.log/info/warn in the modules reachable from the bin entry's command layer as product output and keep counting console.debug/trace; recognise a logging sink module (logger., logging, log.ts) or make it configurable.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 38 min
- PR fusionados (30 d)
- 96
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 Rule-Of-Code/RoC
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Rule-Of-Code/RoC#436 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Rule-Of-Code/RoC#439 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 49/100
Rule-Of-Code/RoC#438 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 53/100
Rule-Of-Code/RoC#437 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
Rule-Of-Code/RoC#435 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Rule-Of-Code/RoC
Issues similares
-
ready-for-agent
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
LucasSantana-Dev/Lucky#3257 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
XiaomiMiMo/MiMo-Code#2849 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
danielmiessler/LifeOS#2894 ·
Los mantenedores suelen responder en 5 días
-
enhancement frontend good first issue help wanted testing-infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días
-
enhancement follow-up
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día