devrelcollective/xela

View on GitHub

Showing 62 of 62 total issues

Method SponsorshipsResource.Update has 6 return statements (exceeds 4 allowed).
Open

func (v SponsorshipsResource) Update(c buffalo.Context) error {
    // Get the DB connection from the context
    tx, ok := c.Value("tx").(*pop.Connection)
    if !ok {
        return errors.WithStack(errors.New("no transaction found"))
Severity: Major
Found in actions/sponsorships.go - About 40 mins to fix

    Method LinksResource.Update has 6 return statements (exceeds 4 allowed).
    Open

    func (v LinksResource) Update(c buffalo.Context) error {
        // Get the DB connection from the context
        tx, ok := c.Value("tx").(*pop.Connection)
        if !ok {
            return errors.WithStack(errors.New("no transaction found"))
    Severity: Major
    Found in actions/links.go - About 40 mins to fix

      Method EventsResource.Update has 6 return statements (exceeds 4 allowed).
      Open

      func (v EventsResource) Update(c buffalo.Context) error {
          // Get the DB connection from the context
          tx, ok := c.Value("tx").(*pop.Connection)
          if !ok {
              return errors.WithStack(errors.New("no transaction found"))
      Severity: Major
      Found in actions/events.go - About 40 mins to fix

        Method AbstractsResource.Update has 6 return statements (exceeds 4 allowed).
        Open

        func (v AbstractsResource) Update(c buffalo.Context) error {
            // Get the DB connection from the context
            tx, ok := c.Value("tx").(*pop.Connection)
            if !ok {
                return errors.WithStack(errors.New("no transaction found"))
        Severity: Major
        Found in actions/abstracts.go - About 40 mins to fix

          Method LinksResource.Create has 5 return statements (exceeds 4 allowed).
          Open

          func (v LinksResource) Create(c buffalo.Context) error {
              // Get the DB connection from the context
              tx, ok := c.Value("tx").(*pop.Connection)
              if !ok {
                  return errors.WithStack(errors.New("no transaction found"))
          Severity: Major
          Found in actions/links.go - About 35 mins to fix

            Method ProposalsResource.New has 5 return statements (exceeds 4 allowed).
            Open

            func (v ProposalsResource) New(c buffalo.Context) error {
                //     return c.Render(200, r.Auto(c, &models.Proposal{}))
                // }
            
                // func NewProposal(c buffalo.Context) error {
            Severity: Major
            Found in actions/proposals.go - About 35 mins to fix

              Method EventsResource.Create has 5 return statements (exceeds 4 allowed).
              Open

              func (v EventsResource) Create(c buffalo.Context) error {
                  // Get the DB connection from the context
                  tx, ok := c.Value("tx").(*pop.Connection)
                  if !ok {
                      return errors.WithStack(errors.New("no transaction found"))
              Severity: Major
              Found in actions/events.go - About 35 mins to fix

                Method AbstractsResource.Create has 5 return statements (exceeds 4 allowed).
                Open

                func (v AbstractsResource) Create(c buffalo.Context) error {
                    // Get the DB connection from the context
                    tx, ok := c.Value("tx").(*pop.Connection)
                    if !ok {
                        return errors.WithStack(errors.New("no transaction found"))
                Severity: Major
                Found in actions/abstracts.go - About 35 mins to fix

                  Method DutoniansResource.Create has 5 return statements (exceeds 4 allowed).
                  Open

                  func (v DutoniansResource) Create(c buffalo.Context) error {
                  
                      // Get the DB connection from the context
                      tx, ok := c.Value("tx").(*pop.Connection)
                      if !ok {
                  Severity: Major
                  Found in actions/dutonians.go - About 35 mins to fix

                    Method ProposalsResource.Create has 5 return statements (exceeds 4 allowed).
                    Open

                    func (v ProposalsResource) Create(c buffalo.Context) error {
                    
                        // Get the DB connection from the context
                        tx, ok := c.Value("tx").(*pop.Connection)
                        if !ok {
                    Severity: Major
                    Found in actions/proposals.go - About 35 mins to fix

                      Method SponsorshipsResource.Create has 5 return statements (exceeds 4 allowed).
                      Open

                      func (v SponsorshipsResource) Create(c buffalo.Context) error {
                      
                          // Get the DB connection from the context
                          tx, ok := c.Value("tx").(*pop.Connection)
                          if !ok {
                      Severity: Major
                      Found in actions/sponsorships.go - About 35 mins to fix

                        if block ends with a return statement, so drop this else and outdent its block
                        Open

                                        } else {
                        Severity: Minor
                        Found in actions/render.go by golint

                        exported type Link should have comment or be unexported
                        Open

                        type Link struct {
                        Severity: Minor
                        Found in models/link.go by golint

                        exported function AddFileToS3 should have comment or be unexported
                        Open

                        func AddFileToS3(s *session.Session, fileDir string) error {
                        Severity: Minor
                        Found in models/s3.go by golint

                        exported method Event.AfterCreate should have comment or be unexported
                        Open

                        func (e *Event) AfterCreate(tx *pop.Connection) error {
                        Severity: Minor
                        Found in models/event.go by golint

                        exported function AuthCallback should have comment or be unexported
                        Open

                        func AuthCallback(c buffalo.Context) error {
                        Severity: Minor
                        Found in actions/auth.go by golint

                        exported function SetCurrentUser should have comment or be unexported
                        Open

                        func SetCurrentUser(next buffalo.Handler) buffalo.Handler {
                        Severity: Minor
                        Found in actions/auth.go by golint

                        if block ends with a return statement, so drop this else and outdent its block
                        Open

                                        } else {
                        Severity: Minor
                        Found in actions/render.go by golint

                        exported function Authorize should have comment or be unexported
                        Open

                        func Authorize(next buffalo.Handler) buffalo.Handler {
                        Severity: Minor
                        Found in actions/auth.go by golint

                        if block ends with a return statement, so drop this else and outdent its block
                        Open

                                        } else {
                        Severity: Minor
                        Found in actions/render.go by golint
                        Severity
                        Category
                        Status
                        Source
                        Language