LGTM.com - false positive - [cs/dereferenced-value-may-be-null]
- Langage dominant
- CodeQL
- Étoiles
- 10.1k
- Forks
- 2.1k
- Merge moyen
- 2 j 15 h
- PR mergées (30 j)
- 141
Description
**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();
```
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.