Skip to content

Conversation

@NunesErick
Copy link
Contributor

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_FILES que, quando definida, utiliza o parâmetro -includes para 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.

Copy link

Copilot AI left a 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_FILES variable
  • Introduces -basedir and -includes parameters 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.

@github-actions
Copy link
Contributor

🏷️ [bumpr]
Next version:2.3.0
Changes:2.2.0...asaasdev:DVT701

@felipeeffting felipeeffting merged commit ec2147b into main Oct 22, 2025
7 checks passed
@felipeeffting felipeeffting deleted the DVT701 branch October 22, 2025 18:18
@github-actions
Copy link
Contributor

🚀 [bumpr] Bumped!
New version:2.3.0
Changes:2.2.0...2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants