hlfcoding/Anime

View on GitHub

Showing 2 of 11 total issues

Function step has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private func step() {
        let a = animations[cursor]
        let completion: Animation.Completion = { finished in
            a.completion?(finished)
            guard self.cursor + 1 < self.animations.count, !self.needsToCancel else {
Severity: Minor
Found in Anime/Classes/AnimationTimeline.swift - About 1 hr to fix

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

            animations: Animations? = nil,
            delay: TimeInterval? = nil,
            duration: TimeInterval? = nil,
            type: AnimationType? = nil,
            completion: Completion? = nil) -> Animation {
    Severity: Minor
    Found in Anime/Classes/AnimationTimeline.swift - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language