asfoury/projmag

View on GitHub
app/src/main/java/com/sdp13epfl2021/projmag/model/ImmutableProject.kt

Summary

Maintainability
B
6 hrs
Test Coverage
A
100%

Method buildCopy has 16 arguments (exceeds 5 allowed). Consider refactoring.
Open

        id: String = this.id,
        name: String = this.name,
        lab: String = this.lab,
        authorId: String = this.authorId,
        teacher: String = this.teacher,

    Method build has 16 arguments (exceeds 5 allowed). Consider refactoring.
    Open

                id: String,
                name: String,
                lab: String,
                authorId: String,
                teacher: String,

      Method buildFromMap has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              /**
               * Build a project from the given map
               *
               * @param map : a map containing all fields of the project
               * @param projectId : the id of the project

        Method build has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                /**
                 * Function that allows create a Project
                 * returns a project wrapped in a success wrapper, or a failure with the explanation wrapped as a string
                 *
                 * @param id : project id from firebase

          There are no issues that match your filters.

          Category
          Status