forked from salesagility/SuiteCRM
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement - General - Integrar herramienta Rector #480
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ManuSinergiaCRM
approved these changes
Nov 20, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probado en los siguientes escenario:
- Con la instancia limpia --> No genera el fichero
- Con un módulo recien construido --> No genera el fichero
- Con un módulo recien construido y modificado para tener dos variables con var en vez de public --> Encontrados los dos errores
- Escenario 3 + modificaciones en módulos STIC y SUITE --> Encontrados los dos errores del Escenario 3
AlbertoSTIC
approved these changes
Nov 20, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aprobado
Actions executed at: 2024-11-20 09:57:42. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Descripción
Previo al PR #315 de actualización del core de SuiteCRM, se estima oportuno incluir en SinergiaCRM la herramienta "Rector" con el objetivo de poderla pasar en las instancias y poderse anticipar a posibles errores en el código personalizado de éstas debido al cambio de versión de php
Instalación de Rector
Se ha instalado la herramienta "Rector" en el directorio SticInclude/vendor/rector-standalone, mediante 'composer'
Scripts
Se han creado dos scripts para ejecutar en las instancias:
Características del script:
custom
y en las carpetas demodules
que no estén incluidas en SinergiaCRM, es decir, los módulos propios de cada instanciarectorOutput.html
(no incluirá cambios de formato)adapt-code
modifica el código de los ficheros, aplicando los cambiosRector en custom
Se ha ejecutado el script en el código de la carpeta
custom
. Alguno de los cambios aplicados son de formato en algunas tabulaciones de inicio de líneaPruebas
custom
php SticInclude/rector/UpdateToPhp8RectorCheck.php