Merge pull request #132 from koculu/codex/rename-isdroppping-flag #296
Annotations
10 warnings
build:
src/ZoneTree/Core/TypeExtensions.cs#L13
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'Tenray.ZoneTree.Core.TypeExtensions.SimplifiedFullName(System.Type)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
build:
src/ZoneTree/Core/TypeExtensions.cs#L34
Use 'StringBuilder.Append(char)' instead of 'StringBuilder.Append(string)' when the input is a constant unit string (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834)
|
build:
src/ZoneTree/Core/TypeExtensions.cs#L23
Use 'StringBuilder.Append(char)' instead of 'StringBuilder.Append(string)' when the input is a constant unit string (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834)
|
build:
src/ZoneTree/AbstractFileStream/InMemoryFileStreamProvider.cs#L121
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Tenray.ZoneTree.AbstractFileStream.InMemoryFileStreamProvider.GetDirectories(string)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
build:
src/ZoneTree/AbstractFileStream/InMemoryFileStreamProvider.cs#L107
Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1854)
|
build:
src/ZoneTree/AbstractFileStream/InMemoryFileStreamProvider.cs#L103
Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1854)
|
build:
src/ZoneTree/AbstractFileStream/InMemoryFileStreamProvider.cs#L73
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Tenray.ZoneTree.AbstractFileStream.InMemoryFileStreamProvider.DeleteDirectory(string, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
build:
src/ZoneTree/Core/ZoneTreeMaintainer.cs#L41
Member 'ThresholdForMergeOperationStart' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
build:
src/ZoneTree/Segments/Disk/CircularCache.cs#L27
Member 'statsCacheMiss' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
build:
src/ZoneTree/Segments/Disk/CircularCache.cs#L25
Member 'statsCacheHit' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|