github / github/codeql

LGTM.com - false positive - [cs/dereferenced-value-may-be-null]

オープン
#8,505 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
C# false-positive
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

**Description of the false positive**

Alert does not consider the order of events in the LINQ query; the value cannot be null.

**URL to the alert on the project page on LGTM.com**
https://lgtm.com/projects/g/DaveSkender/Stock.Indicators/snapshot/71ad67e9bc0c1c073362dc811972e76e48d98902/files/src/a-d/Dpo/Dpo.Utilities.cs?sort=name&dir=ASC&mode=heatmap#x73013381c2ffa1bb:1

```csharp
return results
.Where(x => x.Dpo != null)
.Select(x => new Quote
{
Date = x.Date,
Open = (decimal)x.Dpo,
High = (decimal)x.Dpo,
Low = (decimal)x.Dpo,
Close = (decimal)x.Dpo,
Volume = (decimal)x.Dpo
})
.ToList();
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。