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

DOC: Shorten two code comments that break the comment style rules

Aperta Adatta ai principianti
#1,847 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
documentation

Direzione di ricerca

Leggi i due blocchi di commenti indicati in ConvertOrientationsToVertexGeometryFilter.cpp e test/GeometryTest.cpp. Controlla ogni frase rispetto al limite di 25 parole del progetto e alla regola sulle contrazioni, quindi correggi il refuso segnalato. Il lavoro è completato quando entrambi i commenti sono concisi e accurati e il comportamento del codice rimane invariato.

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

Descrizione

documentation

Summary

Two code comments break the project's comment style rules: sentences of at most 25 words, and no contractions. One of them also has a typo.

What is requested: rewrite these two comment blocks in short, plain sentences. The code does not change.

Why it is needed: long run-on comments are hard to read. Both of these explain a non-obvious choice, so a reader needs to understand them at a glance.

How it works now (develop at 2eb6b878f6ff408d1454754d4c0e63edd676d7e0):

  1. ConvertOrientationsToVertexGeometryFilter.cpp lines 167–170 (OrientationAnalysis):

    // We are using the CreateArrayAction here instead of the CopyArrayAction because the
    // CopyArrayAction will have the destination DataArray have the same tuple shape
    // as the source array, but in this case we don't want that. So we use the CreateArrayAction
    // instead and manually update the tuple shape later one.
    

    The first sentence has 36 words and uses "don't". "later one" should be "later on". A possible rewrite:

    // CreateArrayAction allocates the destination with a one-dimensional tuple shape.
    // CopyArrayAction would keep the tuple shape of the source array.
    // Execute copies the values and then updates the destination tuple shape.
    
  2. test/GeometryTest.cpp lines 463–467:

    // RectGridGeom::setBounds validation
    // Covers: valid inputs (positive, negative, zero-straddling, minimum size,
    // null-pointer clear), size rejection (-4006) on each axis, monotonicity
    // rejection (-4007) on each axis, and atomicity (geometry is not modified
    // when any axis fails validation).
    

    The "Covers:" sentence has 35 words. A possible rewrite:

    // RectGridGeom::setBounds validation.
    // Covers positive, negative, zero-straddling and minimum-size inputs, plus clearing with a null pointer.
    // Checks size errors (-4006) and monotonicity errors (-4007) on each axis.
    // The geometry must stay unchanged when validation fails on any axis.
    

Where it applies: the two files above. No behavior, documentation page or test result changes.

Found while reviewing #1838, which edits both files but not these comments.

Lingua principale
C++
Stelle
18
Fork
15
Merge medio
4g 7h
PR unite (30g)
21

Preparare l'ambiente

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 BlueQuartzSoftware/simplnx

Tutte le issue di BlueQuartzSoftware/simplnx

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.