Settings behind an opt-in or environment guard count only when CI opts in

Offen
#589 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, python, ruby, rust
Bereich
ci-cd, tooling

Rechercherichtung

Read ecosystems/ruby/tools.py around lines 256–282 and ecosystems/rust/tools.py around lines 182 and 302–309, then trace the existing checks and their fixtures. Make the environment-guarded SimpleCov and non-opted-in Cargo workspace lint cases report WARN while opted-in forms still pass; the issue names no specific test files.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Problem

  • SimpleCov enable_coverage :branch inside a block guarded by ENV['COVERAGE'], which no CI job sets, earns branch coverage (sinatra). ecosystems/ruby/tools.py:256-282 matches it anywhere in the file.
  • A Cargo [workspace.lints] table earns clippy credit when no crate sets lints.workspace = true (tauri-nextjs-template). ecosystems/rust/tools.py:182, 302-309 reads it unconditionally.

Expected

One rule: a setting behind a guard counts when CI sets the variable or the crates opt in. Otherwise it is in place but not enforced.

Done when

Both cases above are WARN, and the opted-in forms still pass.

Split from #481. 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

Vorherrschende Sprache
Python
Sterne
4
Forks
1
Ø Merge
6 Std. 31 Min.
Gemergte PRs (30 T.)
238

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cpp-best-practices/project_validator

Alle Issues in cpp-best-practices/project_validator

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.