Skip to content

Commit db6a5d5

Browse files
paulirwinclaude
andcommitted
Allow MMapDirectory+Chunk.BasePtr/Length in private-field-name scan
Chunk's basePtr/length fields are internal-readonly and used outside the type, so they were renamed to PascalCase per review. The API scan flags any non-public field that doesn't match camelCase; add an exception regex for these two as suggested in the review. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent baa84d3 commit db6a5d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Lucene.Net.Tests/Support/TestApiConsistency.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public override void TestProtectedFieldNames(Type typeFromTargetAssembly)
3838
[TestCase(typeof(Lucene.Net.Analysis.Analyzer))]
3939
public override void TestPrivateFieldNames(Type typeFromTargetAssembly)
4040
{
41-
base.TestPrivateFieldNames(typeFromTargetAssembly, @"^Lucene\.Net\.Support\.(?:ConcurrentHashSet|PlatformHelper|DateTimeOffsetUtil|Arrays|IO\.FileSupport)|^Lucene\.ExceptionExtensions|^Lucene\.Net\.Util\.Constants\.MaxStackByteLimit|^Lucene\.Net\.Search\.TopDocs\.ShardByteSize|^Lucene\.Net\.Store\.BaseDirectory\.(?:True|False)|CharStackBufferSize$");
41+
base.TestPrivateFieldNames(typeFromTargetAssembly, @"^Lucene\.Net\.Support\.(?:ConcurrentHashSet|PlatformHelper|DateTimeOffsetUtil|Arrays|IO\.FileSupport)|^Lucene\.ExceptionExtensions|^Lucene\.Net\.Util\.Constants\.MaxStackByteLimit|^Lucene\.Net\.Search\.TopDocs\.ShardByteSize|^Lucene\.Net\.Store\.BaseDirectory\.(?:True|False)|^Lucene\.Net\.Store\.MMapDirectory\+Chunk\.(?:BasePtr|Length)$|CharStackBufferSize$");
4242
}
4343

4444
[Test, LuceneNetSpecific]

0 commit comments

Comments
 (0)