efritz/go-mockgen

View on GitHub
main.go

Summary

Maintainability
B
5 hrs
Test Coverage
A
96%

File main.go has 614 lines of code (exceeds 500 allowed). Consider refactoring.
Open

package main

import (
    "fmt"
    "log"
Severity: Minor
Found in main.go - About 4 hrs to fix

    Method generator.generateMockStructFromConstructor has 51 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (g *generator) generateMockStructFromConstructor(iface *wrappedInterface) jen.Code {
        ifaceName := jen.Qual(generation.SanitizeImportPath(iface.ImportPath, g.outputImportPath), iface.Name)
    
        var surrogate *jen.Statement
        if !unicode.IsUpper([]rune(iface.Name)[0]) {
    Severity: Minor
    Found in main.go - About 1 hr to fix

      2: cannot find package "github.com/dave/jennifer/jen" in any of:
      Open

          "github.com/dave/jennifer/jen"
      Severity: Minor
      Found in main.go by govet

      There are no issues that match your filters.

      Category
      Status