dangeroustech/StreamDL

View on GitHub
download_stream.go

Summary

Maintainability
A
0 mins
Test Coverage

Function downloadStream has 56 lines of code (exceeds 50 allowed). Consider refactoring.
Invalid

func downloadStream(user string, url string, outLoc string, moveLoc string, subfolder bool, control <-chan bool, response chan<- bool) {
    naturalFinish := make(chan error, 1)
    sigint := make(chan bool)
    t := time.Now().Format("2006-01-02_15-04-05")
    if subfolder {
Severity: Minor
Found in download_stream.go - About 1 hr to fix

    Function downloadStream has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Wontfix

    func downloadStream(user string, url string, outLoc string, moveLoc string, subfolder bool, control <-chan bool, response chan<- bool) {
    Severity: Major
    Found in download_stream.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status