Showing 5 of 19 total issues
File ModuleWeaver.ReferenceFinder.cs
has 410 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Vandelay.Fody.Extensions;
namespace Vandelay.Fody;
class Import
Method InjectConstructor
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MethodDefinition InjectConstructor(
IReadOnlyCollection<string> searchPatterns)
{
const MethodAttributes methodAttributes = MethodAttributes.SpecialName |
MethodAttributes.RTSpecialName | MethodAttributes.HideBySig |
Method GetInstructions
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
IEnumerable<Instruction> GetInstructions()
{
// var compositionBatch = new CompositionBatch();
yield return Instruction.Create(OpCodes.Newobj,
_import!.System.ComponentModel.Composition.Hosting.CompositionBatch.Constructor);
Method InjectSearchPatterns
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
void InjectSearchPatterns(MethodDefinition constructor,
IReadOnlyCollection<string> searchPatterns)
{
if (searchPatterns.Count == 0)
{
Method InjectUsingStatement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
void InjectUsingStatement(MethodBody methodBody, Instruction bodyStart,
OpCode loadLocation, Instruction handlerEnd, Instruction leave)