jasonwoods-7/Vandelay

View on GitHub

Showing 5 of 19 total issues

File ModuleWeaver.ReferenceFinder.cs has 410 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using Vandelay.Fody.Extensions;

namespace Vandelay.Fody;

class Import
Severity: Minor
Found in Vandelay.Fody/ModuleWeaver.ReferenceFinder.cs - About 5 hrs to fix

    Method InjectConstructor has 60 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      MethodDefinition InjectConstructor(
        IReadOnlyCollection<string> searchPatterns)
      {
        const MethodAttributes methodAttributes = MethodAttributes.SpecialName |
          MethodAttributes.RTSpecialName | MethodAttributes.HideBySig |
    Severity: Major
    Found in Vandelay.Fody/ModuleWeaver.Retriever.cs - About 2 hrs to fix

      Method GetInstructions has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        IEnumerable<Instruction> GetInstructions()
        {
          // var compositionBatch = new CompositionBatch();
          yield return Instruction.Create(OpCodes.Newobj,
            _import!.System.ComponentModel.Composition.Hosting.CompositionBatch.Constructor);
      Severity: Major
      Found in Vandelay.Fody/ModuleWeaver.CompositionBatch.cs - About 2 hrs to fix

        Method InjectSearchPatterns has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          void InjectSearchPatterns(MethodDefinition constructor,
            IReadOnlyCollection<string> searchPatterns)
          {
            if (searchPatterns.Count == 0)
            {
        Severity: Minor
        Found in Vandelay.Fody/ModuleWeaver.Retriever.cs - About 1 hr to fix

          Method InjectUsingStatement has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            void InjectUsingStatement(MethodBody methodBody, Instruction bodyStart,
              OpCode loadLocation, Instruction handlerEnd, Instruction leave)
          Severity: Minor
          Found in Vandelay.Fody/ModuleWeaver.Retriever.cs - About 35 mins to fix
            Severity
            Category
            Status
            Source
            Language