-
Confiabilidad
-
$([ \"$RELIABILITY_RATING\" = \"1.0\" ] && echo \"A\" || echo \"B+\")
-
Esfuerzo: $RELIABILITY_EFFORT min
+
+
Confiabilidad
+
A
+
Esfuerzo: $RELIABILITY_EFFORT min
-
-
Mantenibilidad
-
$([ \"$MAINTAINABILITY_RATING\" = \"1.0\" ] && echo \"A\" || echo \"B+\")
-
Deuda: $TECH_DEBT min
+
+
Mantenibilidad
+
A
+
Deuda: $TECH_DEBT min
-
- Última actualización: __$(date "+%Y-%m-%d %H:%M:%S")__
+
+ Última actualización: $(date \"+%Y-%m-%d %H:%M:%S\")
" > public/sonar/index.html
- # Reemplazar los valores
- sed -i "s/__COVERAGE__/$COVERAGE/g" public/sonar/index.html
- sed -i "s/__BUGS__/$BUGS/g" public/sonar/index.html
- sed -i "s/__CODE_SMELLS__/$CODE_SMELLS/g" public/sonar/index.html
- sed -i "s/__DUPLICATION__/$DUPLICATION/g" public/sonar/index.html
- sed -i "s/__COMPLEXITY__/$COMPLEXITY/g" public/sonar/index.html
- sed -i "s/__LINES__/$LINES/g" public/sonar/index.html
- sed -i "s/__COGNITIVE_COMPLEXITY__/$COGNITIVE_COMPLEXITY/g" public/sonar/index.html
- sed -i "s/__COMMENT_DENSITY__/$COMMENT_DENSITY/g" public/sonar/index.html
- sed -i "s/__SECURITY_RATING__/$SECURITY_RATING/g" public/sonar/index.html
- sed -i "s/__RELIABILITY_RATING__/$RELIABILITY_RATING/g" public/sonar/index.html
- sed -i "s/__MAINTAINABILITY_RATING__/$MAINTAINABILITY_RATING/g" public/sonar/index.html
- sed -i "s/__DEVELOPMENT_COST__/$DEVELOPMENT_COST/g" public/sonar/index.html
- sed -i "s/__SECURITY_EFFORT__/$SECURITY_EFFORT/g" public/sonar/index.html
- sed -i "s/__RELIABILITY_EFFORT__/$RELIABILITY_EFFORT/g" public/sonar/index.html
- sed -i "s/__TECH_DEBT__/$TECH_DEBT/g" public/sonar/index.html
- sed -i "s/__CONFIRMED_ISSUES__/$CONFIRMED_ISSUES/g" public/sonar/index.html
- sed -i "s/__EFFORT_TO_A__/$EFFORT_TO_A/g" public/sonar/index.html
-
- name: Verify Sonar Report
run: |
echo "Verificando reporte de Sonar..."