vorteil/direktiv

View on GitHub
pkg/api/jx.go

Summary

Maintainability
A
3 hrs
Test Coverage

Method jxController.handler has 92 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *jxController) handler(w http.ResponseWriter, r *http.Request) {
    data, err := io.ReadAll(r.Body)
    if err != nil {
        return
    }
Severity: Major
Found in pkg/api/jx.go - About 2 hrs to fix

    Method jxController.handler has 8 return statements (exceeds 4 allowed).
    Open

    func (c *jxController) handler(w http.ResponseWriter, r *http.Request) {
        data, err := io.ReadAll(r.Body)
        if err != nil {
            return
        }
    Severity: Major
    Found in pkg/api/jx.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status