Plugin goals need the plugin declared in Gradle, Leiningen and sbt

Aberta
#579 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
build-system, tooling

Direção de pesquisa

Start by reading the checks that handle Maven plugin declarations and the Gradle, Leiningen, and sbt task cases described in the issue; compare them with the behavior added in PR #499. Reproduce each listed case with a small fixture and check that it reports no run with the missing plugin named, while applied core Gradle plugins such as jacoco still count.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Problem

#499 made Maven plugin goals and Mix tasks count only when the plugin or dependency is declared. Other build tools still credit undeclared plugins:

  • Gradle jacocoTestReport, pitest, dependencyCheckAnalyze and spotbugsMain with only id 'java';
  • lein cloverage with no plugin in project.clj;
  • sbt coverage with no project/plugins.sbt.

Expected

The same check as Maven's: the goal counts only when the build file declares the plugin that provides it. Gradle tasks that come with a core plugin (jacoco) count when that plugin is applied.

Done when

Each case above is no run, with the missing plugin named.

Split from #476. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Linguagem predominante
Python
Estrelas
4
Forks
1
Merge médio
6h 31min
PRs com merge (30d)
238

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de cpp-best-practices/project_validator

Todas as issues de cpp-best-practices/project_validator

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.