Validate the `config` input before scanning
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 76/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, javascript
Línea de trabajo
Read src/action.js and src/config.js to trace how parsed config reaches analyze, then inspect test/config.test.js and the core CLI’s validation for parity. Add coverage for the listed invalid inputs and a valid config; done when invalid configs exit 2 with clear messages and the valid config remains unchanged. Run npm test -- test/config.test.js.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
The action parses the config with JSON.parse and passes the result to analyze. An unknown key or an inverted range is accepted silently, unlike the core CLI, which validates it.
Scope
src/action.jssrc/config.jstest/config.test.js
Acceptance criteria
- Unknown keys, inverted ranges, non-integer bounds and unknown ignore ids exit
2with a clear message. - The validation logic matches
codepact-coreand is covered by parity tests. - A valid config is unchanged.
Verification
npm test -- test/config.test.js
Complexity
Medium (3-4 hours)
Part of Stellar Wave. Comment to claim this issue before starting.
- Lenguaje dominante
- JavaScript
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 7 h 28 min
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 codepacct/codepact-action
-
documentation good first issue wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
codepacct/codepact-action#68 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
codepacct/codepact-action#67 ·
Los mantenedores suelen responder en 1 día
-
good first issue tests wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
codepacct/codepact-action#66 ·
Los mantenedores suelen responder en 1 día
-
good first issue tests wave
Dificultad 1/5 1-3 horas Aptitud para principiantes 79/100
codepacct/codepact-action#65 ·
Los mantenedores suelen responder en 1 día
-
good first issue tests wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
codepacct/codepact-action#64 ·
Los mantenedores suelen responder en 1 día
Todos los issues de codepacct/codepact-action
Issues similares
-
bug security
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
IbrahimHafez1/loadwise#251 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
erkamyaman/unslop-anything#421 ·
Los mantenedores suelen responder en 1 día