SDP-GeoHunt/geo-hunt

View on GitHub
app/src/main/java/com/github/geohunt/app/data/repository/ChallengeRepository.kt

Summary

Maintainability
A
1 hr
Test Coverage
B
81%

Method createChallenge has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    /**
     * Creates a challenge with the given photo, location and options.
     *
     * The challenge will be created on behalf of the currently logged in user. If there are none,
     * throws a [UserNotLoggedInException].

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

            photo: LocalPicture,
            location: Location,
            difficulty: Challenge.Difficulty,
            expirationDate: LocalDateTime?,
            description: String?

      There are no issues that match your filters.

      Category
      Status