Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Fix analyzer warnings in Benchmarking and Examples projects

Aperta Adatta ai principianti
#167 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
csharp
Ambito
tooling

Direzione di ricerca

Inizia eseguendo la build CI o l’analizzatore e ispeziona le posizioni indicate in HdrHistogram.Benchmarking/Program.cs, HdrHistogram.Examples/Program.cs e LeadingZeroCountBenchmarkBase.cs. Risolvi gli avvisi CA1852, CA1707 e CA1829 preservando l’intento dei nomi delle implementazioni comparative BBarry, quindi verifica che tutti e 10 gli avvisi siano scomparsi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

The CI build reports 10 analyzer warnings in the HdrHistogram.Benchmarking and HdrHistogram.Examples projects.
These are pre-existing and not introduced by any recent PR.

Warnings

CA1852 — Type can be sealed (×2)
  • HdrHistogram.Benchmarking/Program.cs#L9
  • HdrHistogram.Examples/Program.cs#L3
CA1707 — Remove underscores from member/type names (×6)
  • LeadingZeroCountBenchmarkBase.BBarry_imp1() — line 189
  • LeadingZeroCountBenchmarkBase.BBarry_imp2() — line 199
  • LeadingZeroCountBenchmarkBase.BBarry_imp3() — line 209
  • LeadingZeroCountBenchmarkBase.BBarry_imp4() — line 219
  • BBarry32BitIfShiftLookupWith64BitShiftBranch_2 — line 46
  • BBarry32BitIfShiftLookupWith64BitShiftBranch_3 — line 79
CA1829 — Use Length instead of Count() (×1)
  • LeadingZeroCountBenchmarkBase.cs#L42

Notes

All warnings are in the benchmarking and examples projects, not the main library.
The underscore names (BBarry_imp*) reference a contributor's implementation variants used for comparative benchmarking — renaming should preserve the intent of identifying the author/variant.

Reference

  • Observed in PR #164 build annotations
Lingua principale
C#
Stelle
185
Fork
31
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HdrHistogram/HdrHistogram.NET

Tutte le issue di HdrHistogram/HdrHistogram.NET

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.