DOC: Shorten two code comments that break the comment style rules
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
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):
-
ConvertOrientationsToVertexGeometryFilter.cpplines 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. -
test/GeometryTest.cpplines 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di BlueQuartzSoftware/simplnx
-
DOC: Compute Feature Phases Binary describes a per-Cell output, but writes one value per FeatureApertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
BlueQuartzSoftware/simplnx#1886 ·
I maintainer di solito rispondono entro 4 giorni
-
bug Filter
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BlueQuartzSoftware/simplnx#1860 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
BlueQuartzSoftware/simplnx#1846 ·
I maintainer di solito rispondono entro 4 giorni
-
bug Filter
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BlueQuartzSoftware/simplnx#1844 ·
I maintainer di solito rispondono entro 4 giorni
-
bug Filter
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
BlueQuartzSoftware/simplnx#1843 ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di BlueQuartzSoftware/simplnx
Issue simili
-
backlog
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
EchoTools/nevr-runtime#1108 ·
I maintainer di solito rispondono entro 1 giorno
-
Status: Needs confirmation Status: Needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
boykopovar/AnyPS5#12124 ·
I maintainer di solito rispondono entro 1 giorno
-
bug-unconfirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno