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
LuceneDev6001UsageErrorString overloads of StartsWith/EndsWith/IndexOf/LastIndexOf must be called with StringComparison.Ordinal or StringComparison.OrdinalIgnoreCase
LuceneDev6002UsageWarningSpan overloads of StartsWith/EndsWith/IndexOf/LastIndexOf should not pass non-Ordinal StringComparison
LuceneDev6003UsageInfoSingle-character string arguments should use the char overload of StartsWith/EndsWith/IndexOf/LastIndexOf instead of a string