dolittle/DotNET.SDK

View on GitHub
Source/Protobuf/ArtifactExtensions.cs

Summary

Maintainability
A
2 hrs
Test Coverage
C
73%

Method TryTo has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static bool TryTo<TArtifact, TId>(this PbArtifact source, [NotNullWhen(true)] out TArtifact? artifact, [NotNullWhen(false)] out Exception? error)
        where TArtifact : Artifact<TId>
        where TId : ArtifactId
    {
        artifact = default;
Severity: Minor
Found in Source/Protobuf/ArtifactExtensions.cs - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                return true;
    Severity: Major
    Found in Source/Protobuf/ArtifactExtensions.cs - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return false;
      Severity: Major
      Found in Source/Protobuf/ArtifactExtensions.cs - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status