feat: SmartRAG v1.0.0 ready for NuGet release [release] #4
Annotations
10 warnings
|
Build:
src/SmartRAG/Services/DocumentService.cs#L150
Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
|
|
Build:
src/SmartRAG/Services/DocumentService.cs#L119
Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
|
|
Build:
src/SmartRAG/Services/AIService.cs#L68
Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
|
|
Build:
src/SmartRAG/Services/AIService.cs#L58
Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
|
|
Build:
src/SmartRAG/Services/DocumentService.cs#L37
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'SmartRAG.Services.DocumentService.UploadDocumentAsync(System.IO.Stream, string, string, string)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
|
Build:
src/SmartRAG/Models/SmartRagOptions.cs#L53
Member 'EnableFallbackProviders' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
|
Build:
src/SmartRAG/Models/RedisConfig.cs#L20
Member 'EnableSsl' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
|
Build:
src/SmartRAG/Models/RedisConfig.cs#L14
Member 'Database' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
|
Build:
src/SmartRAG/Models/QdrantConfig.cs#L6
Member 'UseHttps' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
|
Build:
src/SmartRAG/Services/DocumentService.cs#L712
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
Loading