dictyBase/modware-annotation

View on GitHub
internal/repository/arangodb/annotation_delete.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method arangorepository.RemoveFromAnnotationGroup has 53 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (ar *arangorepository) RemoveFromAnnotationGroup(
    groupID string,
    idslice ...string,
) (*model.AnnoGroup, error) {
    manno := &model.AnnoGroup{}
Severity: Minor
Found in internal/repository/arangodb/annotation_delete.go - About 1 hr to fix

Method arangorepository.RemoveFromAnnotationGroup has 8 return statements (exceeds 4 allowed).
Open

func (ar *arangorepository) RemoveFromAnnotationGroup(
    groupID string,
    idslice ...string,
) (*model.AnnoGroup, error) {
    manno := &model.AnnoGroup{}
Severity: Major
Found in internal/repository/arangodb/annotation_delete.go - About 50 mins to fix

Method arangorepository.RemoveAnnotation has 7 return statements (exceeds 4 allowed).
Open

func (ar *arangorepository) RemoveAnnotation(id string, purge bool) error {
    manno := &model.AnnoDoc{}
    _, err := ar.anno.annot.ReadDocument(context.Background(), id, manno)
    if err != nil {
        if driver.IsNotFoundGeneral(err) {
Severity: Major
Found in internal/repository/arangodb/annotation_delete.go - About 45 mins to fix

There are no issues that match your filters.

Category
Status