internal/repository/arangodb/annotation_write.go
Method arangorepository.EditAnnotation
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ar *arangorepository) EditAnnotation(uat *annotation.TaggedAnnotationUpdate) (*model.AnnoDoc, error) {
mann := &model.AnnoDoc{}
attr := uat.Data.Attributes
rgt, err := ar.database.Get(
fmt.Sprintf(
- Create a ticketCreate a ticket
Method arangorepository.AppendToAnnotationGroup
has 6 return statements (exceeds 4 allowed). Open
Open
func (ar *arangorepository) AppendToAnnotationGroup(groupID string, idslice ...string) (*model.AnnoGroup, error) {
grp := &model.AnnoGroup{}
if len(idslice) <= 1 {
return grp, errors.New("need at least more than one entry to form a group")
}
- Create a ticketCreate a ticket
Method arangorepository.EditAnnotation
has 6 return statements (exceeds 4 allowed). Open
Open
func (ar *arangorepository) EditAnnotation(uat *annotation.TaggedAnnotationUpdate) (*model.AnnoDoc, error) {
mann := &model.AnnoDoc{}
attr := uat.Data.Attributes
rgt, err := ar.database.Get(
fmt.Sprintf(
- Create a ticketCreate a ticket
Method arangorepository.AddAnnotationGroup
has 6 return statements (exceeds 4 allowed). Open
Open
func (ar *arangorepository) AddAnnotationGroup(idslice ...string) (*model.AnnoGroup, error) {
grp := &model.AnnoGroup{}
if len(idslice) <= 1 {
return grp, errors.New("need at least more than one entry to form a group")
}
- Create a ticketCreate a ticket