Showing 62 of 62 total issues
Method SponsorshipsResource.Update
has 6 return statements (exceeds 4 allowed). Open
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"))
Method LinksResource.Update
has 6 return statements (exceeds 4 allowed). Open
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"))
Method EventsResource.Update
has 6 return statements (exceeds 4 allowed). Open
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"))
Method AbstractsResource.Update
has 6 return statements (exceeds 4 allowed). Open
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"))
Method LinksResource.Create
has 5 return statements (exceeds 4 allowed). Open
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"))
Method ProposalsResource.New
has 5 return statements (exceeds 4 allowed). Open
Open
func (v ProposalsResource) New(c buffalo.Context) error {
// return c.Render(200, r.Auto(c, &models.Proposal{}))
// }
// func NewProposal(c buffalo.Context) error {
Method EventsResource.Create
has 5 return statements (exceeds 4 allowed). Open
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"))
Method AbstractsResource.Create
has 5 return statements (exceeds 4 allowed). Open
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"))
Method DutoniansResource.Create
has 5 return statements (exceeds 4 allowed). Open
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 {
Method ProposalsResource.Create
has 5 return statements (exceeds 4 allowed). Open
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 {
Method SponsorshipsResource.Create
has 5 return statements (exceeds 4 allowed). Open
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 {
if block ends with a return statement, so drop this else and outdent its block Open
Open
} else {
- Exclude checks
exported type Link should have comment or be unexported Open
Open
type Link struct {
- Exclude checks
exported function AddFileToS3 should have comment or be unexported Open
Open
func AddFileToS3(s *session.Session, fileDir string) error {
- Exclude checks
exported method Event.AfterCreate should have comment or be unexported Open
Open
func (e *Event) AfterCreate(tx *pop.Connection) error {
- Exclude checks
exported function AuthCallback should have comment or be unexported Open
Open
func AuthCallback(c buffalo.Context) error {
- Exclude checks
exported function SetCurrentUser should have comment or be unexported Open
Open
func SetCurrentUser(next buffalo.Handler) buffalo.Handler {
- Exclude checks
if block ends with a return statement, so drop this else and outdent its block Open
Open
} else {
- Exclude checks
exported function Authorize should have comment or be unexported Open
Open
func Authorize(next buffalo.Handler) buffalo.Handler {
- Exclude checks
if block ends with a return statement, so drop this else and outdent its block Open
Open
} else {
- Exclude checks