DOC: Shorten two code comments that break the comment style rules
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- cpp
調査の方向性
ConvertOrientationsToVertexGeometryFilter.cpp と test/GeometryTest.cpp にある、指定された2つのコメントブロックを読みます。各文がプロジェクトの25語制限と短縮形のルールに従っているか確認し、指摘された誤字を修正します。両方のコメントが簡潔で正確になり、コードの動作が変わらなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C++
- スター
- 18
- フォーク
- 15
- 平均マージ
- 4日 20時間
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
BlueQuartzSoftware/simplnx のほかの issue
-
bug Filter
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
BlueQuartzSoftware/simplnx#1891 ·
メンテナーはふだん 4 日以内に返信
-
DOC: Compute Feature Phases Binary describes a per-Cell output, but writes one value per Featureオープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
BlueQuartzSoftware/simplnx#1886 ·
メンテナーはふだん 4 日以内に返信
-
bug Filter
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BlueQuartzSoftware/simplnx#1860 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BlueQuartzSoftware/simplnx#1846 ·
メンテナーはふだん 4 日以内に返信
-
bug Filter
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BlueQuartzSoftware/simplnx#1844 ·
メンテナーはふだん 4 日以内に返信
BlueQuartzSoftware/simplnx の issue をすべて見る
似ている issue
-
launch-client --save-creds creates creds/<account>/ with mode 755, not 700対応中かも @metis-sprock が今日担当しました。 オープンbacklog bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
EchoTools/nevr-runtime#1471 ·
メンテナーはふだん 1 日以内に返信
-
.NET ep:WebGPU platform:web
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/onnxruntime#33755 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
grumpycoders/pcsx-redux#2530 ·
-
A-tools P-medium S-ready-to-start studio task
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Status: Needs confirmation Status: Needs triage Type: Code Quality
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信