lflux/eve-sdeloader

View on GitHub
universe/region.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function ImportRegion has 87 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func ImportRegion(db *sql.DB, path string) error {
    defer utils.TimeTrack(time.Now(), path)

    f, err := os.Open(path)
    if err != nil {
Severity: Major
Found in universe/region.go - About 2 hrs to fix

    Function ImportRegion has 14 return statements (exceeds 4 allowed).
    Open

    func ImportRegion(db *sql.DB, path string) error {
        defer utils.TimeTrack(time.Now(), path)
    
        f, err := os.Open(path)
        if err != nil {
    Severity: Major
    Found in universe/region.go - About 1 hr to fix

      exported type Region should have comment or be unexported
      Open

      type Region struct {
      Severity: Minor
      Found in universe/region.go by golint

      exported function ImportRegion should have comment or be unexported
      Open

      func ImportRegion(db *sql.DB, path string) error {
      Severity: Minor
      Found in universe/region.go by golint

      There are no issues that match your filters.

      Category
      Status