Примеры ошибок, обнаруженных с помощью диагностики V3130
V3130. Priority of the '&&' operator is higher than that of the '||' operator. Possible missing parentheses.
Media Portal 2
V3130 Priority of the '&&' operator is higher than that of the '||' operator. Possible missing parentheses. BinaryCacheProvider.cs 495
return config.EpisodesLoaded || !checkEpisodesLoaded &&
config.BannersLoaded || !checkBannersLoaded &&
config.ActorsLoaded || !checkActorsLoaded;
WolvenKit
V3130 Priority of the '&&' operator is higher than that of the '||' operator. Possible missing parentheses. ChunkViewModel.cs 3053
private bool InsertArrayItem(IRedArray ira, int index, IRedType item)
{
var iraType = ira.GetType();
if (iraType.IsGenericType)
{
var arrayType = iraType.GetGenericTypeDefinition();
if ( arrayType == typeof(CArray<>)
|| arrayType == typeof(CStatic<>)
&& ira.Count < ira.MaxSize)
{
....
}
}
}