generationtux/brizo

View on GitHub
app/handlers/api/versions.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function VersionCreate has 74 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func VersionCreate(w http.ResponseWriter, r *http.Request) {
    var createForm struct {
        Name       string                `json:"name"`
        Replicas   int                   `json:"replicas"`
        Containers []resources.Container `json:"containers"`
Severity: Minor
Found in app/handlers/api/versions.go - About 1 hr to fix

    Function VersionCreate has 7 return statements (exceeds 4 allowed).
    Open

    func VersionCreate(w http.ResponseWriter, r *http.Request) {
        var createForm struct {
            Name       string                `json:"name"`
            Replicas   int                   `json:"replicas"`
            Containers []resources.Container `json:"containers"`
    Severity: Major
    Found in app/handlers/api/versions.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status