SonarCloudにBugだと言われているCOutlinePythonの初期化漏れに対処する #1602
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 の目的
SonarScanで検出されたBugsレベル警告に対処します。
カテゴリ
PR の背景
SonarScanで以下のようなBugsレベル警告が検出されています。
Bugs(Critical)
要約:コンストラクタで初期化してないメンバーがあります。
PR のメリット
SonarCloudのBugsレベル警告が減少します。
PR のデメリット (トレードオフとかあれば)
アウトライン解析に関するコードであるため、単体テストを書けません。
意図しない不具合を作り込んでしまっている可能性があります。
仕様・動作説明
必要がなければ独自のコンストラクタ・デストラクタを実装すべきではない。
必要があって独自のコンストラクタ・デストラクタを実装するときは5種類セットで書くべきだ。
PR の影響範囲
Pythonのアウトライン解析に影響する修正です。
テスト内容
ビルド確認のみです。
関連 issue, PR
#1504
参考資料