guibranco/CrispyWaffle

View on GitHub

Showing 45 of 121 total issues

File ServiceLocator.cs has 538 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
Severity: Major
Found in Src/CrispyWaffle/Composition/ServiceLocator.cs - About 1 day to fix

    File CacheManager.cs has 391 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Linq;
    using CrispyWaffle.Composition;
    Severity: Minor
    Found in Src/CrispyWaffle/Cache/CacheManager.cs - About 5 hrs to fix

      File LogConsumer.cs has 373 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      using System;
      using System.Collections.Generic;
      using System.Collections.ObjectModel;
      using System.ComponentModel;
      using System.Diagnostics;
      Severity: Minor
      Found in Src/CrispyWaffle/Log/LogConsumer.cs - About 4 hrs to fix

        File ConversionExtensions.cs has 352 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        using System;
        using System.Collections.Generic;
        using System.Globalization;
        using System.Linq;
        using System.Reflection;
        Severity: Minor
        Found in Src/CrispyWaffle/Extensions/ConversionExtensions.cs - About 4 hrs to fix

          Class ServiceLocator has 34 methods (exceeds 20 allowed). Consider refactoring.
          Open

              public static class ServiceLocator
              {
                  /// <summary>
                  /// The locks.
                  /// </summary>
          Severity: Minor
          Found in Src/CrispyWaffle/Composition/ServiceLocator.cs - About 4 hrs to fix

            File StringExtensions.cs has 344 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            using System;
            using System.Collections.Generic;
            using System.Diagnostics.Contracts;
            using System.IO;
            using System.Linq;
            Severity: Minor
            Found in Src/CrispyWaffle/Extensions/StringExtensions.cs - About 4 hrs to fix

              Class LogConsumer has 30 methods (exceeds 20 allowed). Consider refactoring.
              Open

                  public static class LogConsumer
                  {
                      /// <summary>
                      /// The log providers
                      /// </summary>
              Severity: Minor
              Found in Src/CrispyWaffle/Log/LogConsumer.cs - About 3 hrs to fix

                Class StringExtensions has 27 methods (exceeds 20 allowed). Consider refactoring.
                Open

                    public static class StringExtensions
                    {
                        /// <summary>
                        /// Replaces the non alphanumeric.
                        /// </summary>
                Severity: Minor
                Found in Src/CrispyWaffle/Extensions/StringExtensions.cs - About 3 hrs to fix

                  File RedisCacheRepository.cs has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  using System;
                  using System.Collections.Generic;
                  using System.Globalization;
                  using CrispyWaffle.Cache;
                  using CrispyWaffle.Log;
                  Severity: Minor
                  Found in Src/CrispyWaffle.Redis/Cache/RedisCacheRepository.cs - About 2 hrs to fix

                    Class ConversionExtensions has 23 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                        public static class ConversionExtensions
                        {
                            /// <summary>
                            /// An IEnumerable&lt;String&gt; extension method that converts a binary representation
                            /// string to the bytes.
                    Severity: Minor
                    Found in Src/CrispyWaffle/Extensions/ConversionExtensions.cs - About 2 hrs to fix

                      Class CacheManager has 22 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                          public static class CacheManager
                          {
                              /// <summary>
                              /// The repositories
                              /// </summary>
                      Severity: Minor
                      Found in Src/CrispyWaffle/Cache/CacheManager.cs - About 2 hrs to fix

                        Class RollingTextFileLogAdapter has 22 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                            public sealed class RollingTextFileLogAdapter : ITextFileLogAdapter
                            {
                                /// <inheritdoc />
                                public void Dispose()
                                {
                        Severity: Minor
                        Found in Src/CrispyWaffle/Log/Adapters/RollingTextFileLogAdapter.cs - About 2 hrs to fix

                          Method CreateInstanceInternal has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  private static object CreateInstanceInternal(Type implementationType)
                                  {
                                      if (_dependenciesCache.TryGetValue(implementationType, out var dependencies))
                                      {
                                          return Activator.CreateInstance(
                          Severity: Minor
                          Found in Src/CrispyWaffle/Composition/ServiceLocator.cs - About 1 hr to fix

                            Method GetEnumByInternalValueAttribute has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    public static T GetEnumByInternalValueAttribute<T>(string internalValue)
                                    {
                                        var type = typeof(T);
                                        if (!type.IsEnum)
                                        {
                            Severity: Minor
                            Found in Src/CrispyWaffle/Extensions/EnumExtensions.cs - About 1 hr to fix

                              Method CreateInternal has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      private bool CreateInternal(string path, byte[] bytes)
                                      {
                                          var result = false;
                                          try
                                          {
                              Severity: Minor
                              Found in Src/CrispyWaffle.Utils/Communications/FtpClient.cs - About 1 hr to fix

                                Method ExistsInternal has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        private bool ExistsInternal(string path)
                                        {
                                            try
                                            {
                                                LogConsumer.Info(
                                Severity: Minor
                                Found in Src/CrispyWaffle.Utils/Communications/FtpClient.cs - About 1 hr to fix

                                  Method GetEnumByHumanReadableAttribute has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          public static T GetEnumByHumanReadableAttribute<T>(string humanReadableValue)
                                          {
                                              var type = typeof(T);
                                              if (!type.IsEnum)
                                              {
                                  Severity: Minor
                                  Found in Src/CrispyWaffle/Extensions/EnumExtensions.cs - About 1 hr to fix

                                    Method TryToDateTime has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            public static bool TryToDateTime(this string input, out DateTime value)
                                            {
                                                value = DateTime.MinValue;
                                                if (string.IsNullOrWhiteSpace(input))
                                                {
                                    Severity: Minor
                                    Found in Src/CrispyWaffle/Extensions/ConversionExtensions.cs - About 1 hr to fix

                                      Method SendAsync has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              public async Task SendAsync()
                                              {
                                                  var cacheKey = TypeExtensions.GetCallingMethod();
                                      
                                                  string eml;
                                      Severity: Minor
                                      Found in Src/CrispyWaffle.Utils/Communications/SmtpMailer.cs - About 1 hr to fix

                                        Method GetSerializer has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                [Pure]
                                                private static SerializerConverter<T> GetSerializer<T>(T obj, SerializerAttribute attribute)
                                                    where T : class
                                                {
                                                    switch (attribute.Format)
                                        Severity: Minor
                                        Found in Src/CrispyWaffle/Serialization/SerializerFactory.cs - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language