rjmurillo/moq.analyzers

View on GitHub
src/Common/WellKnown/WellKnownTypeProvider.cs

Summary

Maintainability
A
0 mins
Test Coverage

Method ValueFactory has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

        [SuppressMessage("Design", "MA0051:Method is too long", Justification = "Forked from upstream. Avoiding refactoring to reduce divergence.")]
        INamedTypeSymbol? ValueFactory(string fullyQualifiedMetadataName, string fullTypeName)
        {
            // Caching null results is intended.

Severity: Minor
Found in src/Common/WellKnown/WellKnownTypeProvider.cs - About 1 hr to fix

    Method IsIdentifierPartCharacter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

        private static bool IsIdentifierPartCharacter(char ch)
        {
            // identifier-part-character:
            //   letter-character
            //   decimal-digit-character
    Severity: Minor
    Found in src/Common/WellKnown/WellKnownTypeProvider.cs - About 1 hr to fix

      Avoid too many return statements within this method.
      Wontfix

              return cat switch
      Severity: Major
      Found in src/Common/WellKnown/WellKnownTypeProvider.cs - About 30 mins to fix

        Unexpected tabs found.
        Invalid

        // Forked from https://github.com/dotnet/roslyn-analyzers/blob/5dd0dd5db8fa79932517f153854c0f2c24ac98a3/src/Utilities/Compiler/WellKnownTypeProvider.cs

        There are no issues that match your filters.

        Category
        Status