Skip to content

Commit 159656b

Browse files
authored
Reserved LuceneDev1007, LuceneDev1008, and LuceneDev6000 for apache/lucenenet#1168 (#12)
1 parent d58325d commit 159656b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

DiagnosticCategoryAndIdRanges.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
# In the event of conflict in step 3, make sure you discard your changes, pull latest, and try again.
1414
# DO NOT remove ID ranges already defined or merge this file in git.
1515
#
16-
Design: LuceneDev1000-LuceneDev1006
16+
Design: LuceneDev1000-LuceneDev1008
1717
Globalization:
1818
Mobility:
1919
Performance:
2020
Security:
21-
Usage:
21+
Usage: LuceneDev6000
2222
Naming:
2323
Interoperability:
24-
Maintainability:
24+
Maintainability:
2525
Reliability:
2626
Documentation:

src/Lucene.Net.CodeAnalysis.Dev/AnalyzerReleases.Unshipped.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22

33
Rule ID | Category | Severity | Notes
44
---------------|----------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------
5+
LuceneDev1007 | Design | Warning | Generic Dictionary<TKey, TValue> indexer should not be used to retrieve values because it may throw KeyNotFoundException (value type value)
6+
LuceneDev1008 | Design | Warning | Generic Dictionary<TKey, TValue> indexer should not be used to retrieve values because it may throw KeyNotFoundException (reference type value)
7+
LuceneDev6000 | Usage | Info | IDictionary indexer may be used to retrieve values, but must be checked for null before using the value

0 commit comments

Comments
 (0)