pkg/timeline/postgres.go
Method postgresStream.Items
has 70 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (p *postgresStream) Items(before, after string) (microsub.Timeline, error) {
ctx := context.Background()
conn, err := p.database.Conn(ctx)
if err != nil {
return microsub.Timeline{}, err
- Create a ticketCreate a ticket
Method postgresStream.Init
has 8 return statements (exceeds 4 allowed). Open
Open
func (p *postgresStream) Init() error {
ctx := context.Background()
conn, err := p.database.Conn(ctx)
if err != nil {
return err
- Create a ticketCreate a ticket
Method postgresStream.Items
has 6 return statements (exceeds 4 allowed). Open
Open
func (p *postgresStream) Items(before, after string) (microsub.Timeline, error) {
ctx := context.Background()
conn, err := p.database.Conn(ctx)
if err != nil {
return microsub.Timeline{}, err
- Create a ticketCreate a ticket
Method postgresStream.AddItem
has 5 return statements (exceeds 4 allowed). Open
Open
func (p *postgresStream) AddItem(item microsub.Item) (bool, error) {
ctx := context.Background()
conn, err := p.database.Conn(ctx)
if err != nil {
return false, err
- Create a ticketCreate a ticket
TODO found Open
Open
// TODO: should only be set of there are more items available
- Create a ticketCreate a ticket
- Exclude checks