sue445/plant_erd

View on GitHub

Showing 4 of 13 total issues

Function main has 170 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func main() {
    app := cli.NewApp()

    app.Version = fmt.Sprintf("%s (build. %s)", Version, Revision)
    app.Name = "plant_erd"
Severity: Major
Found in cmd/plant_erd/main.go - About 5 hrs to fix

    Function main has 63 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func main() {
        app := cli.NewApp()
    
        app.Version = fmt.Sprintf("%s (build. %s)", Version, Revision)
        app.Name = "plant_erd-oracle"
    Severity: Minor
    Found in cmd/plant_erd-oracle/main.go - About 1 hr to fix

      Function main has 9 return statements (exceeds 4 allowed).
      Open

      func main() {
          app := cli.NewApp()
      
          app.Version = fmt.Sprintf("%s (build. %s)", Version, Revision)
          app.Name = "plant_erd"
      Severity: Major
      Found in cmd/plant_erd/main.go - About 55 mins to fix

        Method Adapter.GetTable has 6 return statements (exceeds 4 allowed).
        Open

        func (a *Adapter) GetTable(tableName string) (*db.Table, error) {
            table := db.Table{
                Name: tableName,
            }
        
        
        Severity: Major
        Found in adapter/oracle/adapter.go - About 40 mins to fix
          Severity
          Category
          Status
          Source
          Language