MiniDigger/Hangar

View on GitHub
apiV2/app/models/querymodels/apiV2QueryModels.scala

Summary

Maintainability
C
7 hrs
Test Coverage

Constructor has 22 arguments (exceeds 4 allowed). Consider refactoring.
Open

    createdAt: LocalDateTime,
    pluginId: String,
    name: String,
    namespace: ProjectNamespace,
    recommendedVersion: Option[String],
Severity: Major
Found in apiV2/app/models/querymodels/apiV2QueryModels.scala - About 2 hrs to fix

    Function asProtocol has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      ): APIV2.Project = {
        val iconPath = projectFiles.getIconPath(namespace.ownerName, name)
        val iconUrl =
          if (iconPath.isDefined)
            controllers.project.routes.Projects.showIcon(namespace.ownerName, namespace.slug).absoluteURL()
    Severity: Minor
    Found in apiV2/app/models/querymodels/apiV2QueryModels.scala - About 1 hr to fix

      Constructor has 12 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          createdAt: LocalDateTime,
          name: String,
          dependenciesIds: List[String],
          visibility: Visibility,
          description: Option[String],
      Severity: Major
      Found in apiV2/app/models/querymodels/apiV2QueryModels.scala - About 1 hr to fix

        Constructor has 10 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            pluginId: String,
            name: String,
            namespace: ProjectNamespace,
            recommendedVersion: Option[String],
            recommendedVersionTags: Option[List[APIV2QueryVersionTag]],
        Severity: Major
        Found in apiV2/app/models/querymodels/apiV2QueryModels.scala - About 1 hr to fix

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

              createdAt: LocalDateTime,
              name: String,
              tagline: Option[String],
              joinDate: Option[LocalDateTime],
              roles: List[Role]
          Severity: Minor
          Found in apiV2/app/models/querymodels/apiV2QueryModels.scala - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status