reconmap/cli

View on GitHub
internal/commands/upload.go

Summary

Maintainability
A
1 hr
Test Coverage

Function Upload has 8 return statements (exceeds 4 allowed).
Open

func Upload(client *http.Client, url string, outputFileName string, commandId int, taskId int) (err error) {

    if _, err := os.Stat(outputFileName); os.IsNotExist(err) {
        return fmt.Errorf("Output file '%s' could not be found", outputFileName)
    }
Severity: Major
Found in internal/commands/upload.go - About 50 mins to fix

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

    func Upload(client *http.Client, url string, outputFileName string, commandId int, taskId int) (err error) {
    Severity: Minor
    Found in internal/commands/upload.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status