app/src/main/java/com/github/geohunt/app/data/repository/ChallengeRepository.kt
Method createChallenge
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
photo: LocalPicture,
location: Location,
difficulty: Challenge.Difficulty,
expirationDate: LocalDateTime?,
description: String?