You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2025/10/07 06:48:43 UTC
(lucenenet-codeanalysis-dev) branch main updated: Reserved LuceneDev1007, LuceneDev1008, and LuceneDev6000 for https://github.com/apache/lucenenet/issues/1168 (#12)
This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucenenet-codeanalysis-dev.git
The following commit(s) were added to refs/heads/main by this push:
new 159656b Reserved LuceneDev1007, LuceneDev1008, and LuceneDev6000 for https://github.com/apache/lucenenet/issues/1168 (#12)
159656b is described below
commit 159656b983b6af003c87a16402f5e82bc19e1b71
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Tue Oct 7 13:48:38 2025 +0700
Reserved LuceneDev1007, LuceneDev1008, and LuceneDev6000 for https://github.com/apache/lucenenet/issues/1168 (#12)
---
DiagnosticCategoryAndIdRanges.txt | 6 +++---
src/Lucene.Net.CodeAnalysis.Dev/AnalyzerReleases.Unshipped.md | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/DiagnosticCategoryAndIdRanges.txt b/DiagnosticCategoryAndIdRanges.txt
index a184bda..311d5e2 100644
--- a/DiagnosticCategoryAndIdRanges.txt
+++ b/DiagnosticCategoryAndIdRanges.txt
@@ -13,14 +13,14 @@
# In the event of conflict in step 3, make sure you discard your changes, pull latest, and try again.
# DO NOT remove ID ranges already defined or merge this file in git.
#
-Design: LuceneDev1000-LuceneDev1006
+Design: LuceneDev1000-LuceneDev1008
Globalization:
Mobility:
Performance:
Security:
-Usage:
+Usage: LuceneDev6000
Naming:
Interoperability:
-Maintainability:
+Maintainability:
Reliability:
Documentation:
diff --git a/src/Lucene.Net.CodeAnalysis.Dev/AnalyzerReleases.Unshipped.md b/src/Lucene.Net.CodeAnalysis.Dev/AnalyzerReleases.Unshipped.md
index bcb2c83..188612b 100644
--- a/src/Lucene.Net.CodeAnalysis.Dev/AnalyzerReleases.Unshipped.md
+++ b/src/Lucene.Net.CodeAnalysis.Dev/AnalyzerReleases.Unshipped.md
@@ -2,3 +2,6 @@
Rule ID | Category | Severity | Notes
---------------|----------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------
+ LuceneDev1007 | Design | Warning | Generic Dictionary<TKey, TValue> indexer should not be used to retrieve values because it may throw KeyNotFoundException (value type value)
+ LuceneDev1008 | Design | Warning | Generic Dictionary<TKey, TValue> indexer should not be used to retrieve values because it may throw KeyNotFoundException (reference type value)
+ LuceneDev6000 | Usage | Info | IDictionary indexer may be used to retrieve values, but must be checked for null before using the value