New Rules

Rule IDCategorySeverityNotes
LuceneDev1007DesignWarningGeneric Dictionary<TKey, TValue> indexer should not be used to retrieve values because it may throw KeyNotFoundException (value type value)
LuceneDev1008DesignWarningGeneric Dictionary<TKey, TValue> indexer should not be used to retrieve values because it may throw KeyNotFoundException (reference type value)
LuceneDev6000UsageInfoIDictionary indexer may be used to retrieve values, but must be checked for null before using the value
LuceneDev6001UsageErrorMissing StringComparison argument in String overloads of StartsWith/EndsWith/IndexOf/LastIndexOf; must use Ordinal/OrdinalIgnoreCase
LuceneDev6002UsageErrorInvalid StringComparison value in String overloads of StartsWith/EndsWith/IndexOf/LastIndexOf; only Ordinal/OrdinalIgnoreCase allowed
LuceneDev6003UsageWarningRedundant StringComparison.Ordinal argument in Span overloads of StartsWith/EndsWith/IndexOf/LastIndexOf; should be removed
LuceneDev6004UsageErrorInvalid StringComparison value in Span overloads of StartsWith/EndsWith/IndexOf/LastIndexOf; only Ordinal or OrdinalIgnoreCase allowed
LuceneDev6005UsageInfoSingle-character string arguments should use the char overload of StartsWith/EndsWith/IndexOf/LastIndexOf instead of a string