Skip to content

Fix add allowed types #19

Fix add allowed types

Fix add allowed types #19

Triggered via pull request January 19, 2024 10:48
Status Success
Total duration 2m 22s
Artifacts

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
tests: src/Transactions/MongoTransactionDatabase.cs#L224
All 'DropCollection' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
tests: src/Transactions/MongoTransactionDatabase.cs#L247
All 'DropCollectionAsync' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
tests: src/Transactions/MongoTransactionCollection.cs#L685
Rename parameter 'cancellationToken' to '_cancellationToken' to match the interface declaration. (https://rules.sonarsource.com/csharp/RSPEC-927)
tests: src/Prime.Extensions/MongoCollectionExtensions.cs#L122
'FindOptionsBase.Modifiers' is obsolete: 'Use individual properties instead.'
tests: src/Prime.Extensions/MongoCollectionExtensions.cs#L133
'FindOptionsBase.Modifiers' is obsolete: 'Use individual properties instead.'
tests: src/Prime.Extensions/MongoCollectionFindExtensions.cs#L100
The type 'TId' cannot be used as type parameter 'TKey' in the generic type or method 'ConcurrentDictionary<TKey, TValue>'. Nullability of type argument 'TId' doesn't match 'notnull' constraint.
tests: src/Prime.Extensions/MongoCollectionFindExtensions.cs#L146
The type 'TId' cannot be used as type parameter 'TKey' in the generic type or method 'AsyncCursorSourceExtensions.ToDictionaryAsync<TDocument, TKey>(IAsyncCursorSource<TDocument>, Func<TDocument, TKey>, CancellationToken)'. Nullability of type argument 'TId' doesn't match 'notnull' constraint.
tests: src/Prime.Extensions/MongoCollectionFindExtensions.cs#L89
Method has 8 parameters, which is greater than the 7 authorized. (https://rules.sonarsource.com/csharp/RSPEC-107)
tests: src/Context/Extensions/TypeExtensions.cs#L22
Possible null reference return.
tests: src/Context/MongoOptions.cs#L12
Non-nullable property 'ConnectionString' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.