[DVT-701] Implementa análise incremental do CodeNarc com filtro de arquivos específicos#58
Merged
felipeeffting merged 9 commits intomainfrom Oct 22, 2025
Merged
[DVT-701] Implementa análise incremental do CodeNarc com filtro de arquivos específicos#58felipeeffting merged 9 commits intomainfrom
felipeeffting merged 9 commits intomainfrom
Conversation
There was a problem hiding this comment.
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.
Contributor
|
🏷️ [bumpr] |
felipeeffting
requested changes
Oct 22, 2025
… os arquivos alterados
thalesase
approved these changes
Oct 22, 2025
felipeeffting
approved these changes
Oct 22, 2025
Contributor
|
🚀 [bumpr] Bumped! |
This file contains hidden or 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
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.
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.