-
Notifications
You must be signed in to change notification settings - Fork 0
[DVT-701] Implementa análise incremental do CodeNarc com filtro de arquivos específicos #58
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
Conversation
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.
Pull Request Overview
This PR implements incremental CodeNarc analysis by filtering to process only specified Groovy files instead of analyzing the entire project. The change adds conditional logic that uses the INPUT_SOURCE_FILES variable to limit analysis to modified files via the -includes parameter, improving CI/CD pipeline efficiency. When no Groovy files need analysis, the process exits early without running CodeNarc unnecessarily.
- Adds conditional execution based on
INPUT_SOURCE_FILESvariable - Introduces
-basedirand-includesparameters for targeted file analysis - Implements early exit when no Groovy files are present
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
🏷️ [bumpr] |
… os arquivos alterados
|
🚀 [bumpr] Bumped! |
Impacto
Este PR tem como objetivo implementar uma análise incremental do CodeNarc que processa apenas os arquivos Groovy especificados ao invés de analisar todo o projeto. A mudança adiciona uma verificação condicional da variável
INPUT_SOURCE_FILESque, quando definida, utiliza o parâmetro-includespara limitar a análise apenas aos arquivos alterados, resultando em execuções mais rápidas e eficientes. Quando não há arquivos Groovy para analisar, o processo termina sem executar a análise desnecessariamente, otimizando recursos computacionais e tempo de execução em pipelines de CI/CD.Link da tarefa no JIRA
https://asaasdev.atlassian.net/browse/DVT-707
Cenários testados
Realizado diversos testes das regras do CodeNarc utilizando um PR de teste, foram observados o devido comportamento das análises do CodeNarc.