Showing 90 of 368 total issues
Method CreateEntity
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static TableEntity CreateEntity(AuditEvent auditEntityEvent, JToken changes, bool expandValuesInTableColumns)
{
EnsureArg.IsNotNull(auditEntityEvent, nameof(auditEntityEvent));
// Need to turn the identity into a string key (if is an int, pad to 10 digits)
Method Build
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Expression<Func<T, bool>>? Build(
IReadOnlyDictionary<string, IReadOnlyCollection<string>> query,
CombineTypes combineType = CombineTypes.AND)
{
EnsureArg.IsNotNull(query, nameof(query));
Method GetEqualsExpressionForType
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static Expression GetEqualsExpressionForType(
Expression propertyExpression,
ConstantExpression someValue)
{
switch (propertyExpression.Type.IsEnum ? "Enum" : propertyExpression.Type.Name)
Method EnsurePropertiesOverrideFuncAttrCache
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static Dictionary<string, AuditPropertyValueProviderAttribute> EnsurePropertiesOverrideFuncAttrCache(Type type)
{
if (!_propertiesOverrideFuncAttrCache.ContainsKey(type))
{
var overrideProps = new Dictionary<string, AuditPropertyValueProviderAttribute>();
Method ComplexReplacementCase
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Fact]
public void ComplexReplacementCase()
{
ITemplateRenderer renderer = new HandleBarsTemplateRenderer();
Method IsNumeric
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static bool IsNumeric(this Type type)
{
EnsureArg.IsNotNull(type, nameof(type));
switch (Type.GetTypeCode(type))
Method Execute
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override T Execute<T>(ISyncExecution<T> execution)
{
using (var saveChangesCall = InterceptSaveChangesCall(execution))
{
var entityDomainEvents = default(EntityDomainEventList);
Method Throwing_When_Existing_Queue_With_Sessions_Accessed_Without_SessionId_In_Options
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[TestMethod]
public async Task Throwing_When_Existing_Queue_With_Sessions_Accessed_Without_SessionId_In_Options()
{
if (_connectionString.IsNullOrEmpty())
{
Method MissingVariablesShouldBeRemoved
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Fact]
public void MissingVariablesShouldBeRemoved()
{
ITemplateRenderer renderer = new HandleBarsTemplateRenderer();
Method ToEntityProperty
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static object ToEntityProperty(this JToken value)
{
switch (value.Type)
{
case JTokenType.Boolean:
Method AddManyToManyNavigationChanges
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IEnumerable<EventEntry> allChanges,
AuditEvent auditEventEntity,
CollectionEntry navigation,
string navigationName,
Type navigationType,
Method ReadJson
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public override TEnum ReadJson(JsonReader reader, Type objectType, TEnum existingValue, bool hasExistingValue, JsonSerializer serializer)
Method ListAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Expression<Func<TEntity, TResultDto>> projection,
Expression<Func<TEntity, bool>>? filter = null,
Paging? paging = null,
IReadOnlyCollection<Sorting<TEntity>>? sortings = null,
CancellationToken cancellationToken = default)
Method ReadJson
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public override TEnum ReadJson(JsonReader reader, Type objectType, TEnum? existingValue, bool hasExistingValue, JsonSerializer serializer)
Method ListAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Expression<Func<TEntity, TResultDto>> projection,
Expression<Func<TEntity, bool>>? filter = default,
Paging? paging = default,
IReadOnlyCollection<Sorting<TEntity>>? sortings = default,
CancellationToken cancellationToken = default);
Method ReadJson
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
JsonReader reader,
Type objectType,
TimeZoneInfo? existingValue,
bool hasExistingValue,
JsonSerializer serializer)
Method ListAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Expression<Func<TEntity, bool>>? filter = default,
Includes<TEntity>? includes = default,
Paging? paging = default,
IReadOnlyCollection<Sorting<TEntity>>? sortings = default,
CancellationToken cancellationToken = default);
Method GetEventsByIdAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TEntityId id,
DateTimeOffset? dateFrom = null,
DateTimeOffset? dateTo = null,
Paging paging = null,
CancellationToken cancellationToken = default)
Method ListAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Expression<Func<TEntity, bool>>? preFilter,
Expression<Func<TResultDto, bool>>? filter = default,
Paging? paging = default,
IReadOnlyCollection<Sorting<TResultDto>>? sortings = default,
CancellationToken cancellationToken = default);
Method ListAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Expression<Func<TEntity, bool>>? preFilter,
Expression<Func<TResultDto, bool>>? filter = null,
Paging? paging = null,
IReadOnlyCollection<Sorting<TResultDto>>? sortings = null,
CancellationToken cancellationToken = default)