Showing 45 of 121 total issues
File ServiceLocator.cs
has 538 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
File CacheManager.cs
has 391 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using CrispyWaffle.Composition;
File LogConsumer.cs
has 373 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
File ConversionExtensions.cs
has 352 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
Class ServiceLocator
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public static class ServiceLocator
{
/// <summary>
/// The locks.
/// </summary>
File StringExtensions.cs
has 344 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.IO;
using System.Linq;
Class LogConsumer
has 30 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public static class LogConsumer
{
/// <summary>
/// The log providers
/// </summary>
Class StringExtensions
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public static class StringExtensions
{
/// <summary>
/// Replaces the non alphanumeric.
/// </summary>
File RedisCacheRepository.cs
has 285 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Globalization;
using CrispyWaffle.Cache;
using CrispyWaffle.Log;
Class ConversionExtensions
has 23 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public static class ConversionExtensions
{
/// <summary>
/// An IEnumerable<String> extension method that converts a binary representation
/// string to the bytes.
Class CacheManager
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public static class CacheManager
{
/// <summary>
/// The repositories
/// </summary>
Class RollingTextFileLogAdapter
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public sealed class RollingTextFileLogAdapter : ITextFileLogAdapter
{
/// <inheritdoc />
public void Dispose()
{
Method CreateInstanceInternal
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static object CreateInstanceInternal(Type implementationType)
{
if (_dependenciesCache.TryGetValue(implementationType, out var dependencies))
{
return Activator.CreateInstance(
Method GetEnumByInternalValueAttribute
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static T GetEnumByInternalValueAttribute<T>(string internalValue)
{
var type = typeof(T);
if (!type.IsEnum)
{
Method CreateInternal
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private bool CreateInternal(string path, byte[] bytes)
{
var result = false;
try
{
Method ExistsInternal
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private bool ExistsInternal(string path)
{
try
{
LogConsumer.Info(
Method GetEnumByHumanReadableAttribute
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static T GetEnumByHumanReadableAttribute<T>(string humanReadableValue)
{
var type = typeof(T);
if (!type.IsEnum)
{
Method TryToDateTime
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static bool TryToDateTime(this string input, out DateTime value)
{
value = DateTime.MinValue;
if (string.IsNullOrWhiteSpace(input))
{
Method SendAsync
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task SendAsync()
{
var cacheKey = TypeExtensions.GetCallingMethod();
string eml;
Method GetSerializer
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Pure]
private static SerializerConverter<T> GetSerializer<T>(T obj, SerializerAttribute attribute)
where T : class
{
switch (attribute.Format)