SonarCloudにBugだと言われているCDicMgrの問題に対処する #1606
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR の目的
SonarCloudの警告を減らすことが目的です。
カテゴリ
PR の背景
SonarCloudで以下のBugレベル警告が検出されています。
超訳:コピーコンストラクタとムーブコンストラクタとコピー演算子とムーブ演算子が、コンパイラにより意図しない形で自動生成されることを防ぐため、これらを明示的に定義してください。
これと似たようなBugsレベル警告が他に79件あります。 👈 詳細は #1605 参照。
PR のメリット
SonarCloudの警告が、たぶん減ります。
PR のデメリット (トレードオフとかあれば)
この修正でSonarColudの警告が減るかどうか分かりません。(本当に Fault Positive な可能性があります。)
CDicMgrクラスのデストラクタに処理を入れたくなったときに、枠を書き直す手間が増えます。
仕様・動作説明
アプリの機能や仕様とは関係ない変更です。
PR の影響範囲
影響はないと考えられます。
テスト内容
対策したい警告は、普通に作成したレポジトリでは検出されないため、テスト不能です。
関連 issue, PR
#1605
#1504
参考資料