dictyBase/modware-annotation

View on GitHub
internal/app/service/read_service.go

Summary

Maintainability
A
1 hr
Test Coverage

Method AnnotationService.ListAnnotationGroups has 5 return statements (exceeds 4 allowed).
Open

func (srv *AnnotationService) ListAnnotationGroups(
    ctx context.Context, rgp *annotation.ListGroupParameters,
) (*annotation.TaggedAnnotationGroupCollection, error) {
    gac := &annotation.TaggedAnnotationGroupCollection{}
    // default value of limit
Severity: Major
Found in internal/app/service/read_service.go - About 35 mins to fix

Method AnnotationService.ListAnnotations has 5 return statements (exceeds 4 allowed).
Open

func (srv *AnnotationService) ListAnnotations(
    ctx context.Context, ral *annotation.ListParameters,
) (*annotation.TaggedAnnotationCollection, error) {
    tac := &annotation.TaggedAnnotationCollection{}
    // default value of limit
Severity: Major
Found in internal/app/service/read_service.go - About 35 mins to fix

Method AnnotationService.GetAnnotation has 5 return statements (exceeds 4 allowed).
Open

func (srv *AnnotationService) GetAnnotation(
    ctx context.Context,
    req *annotation.AnnotationId,
) (*annotation.TaggedAnnotation, error) {
    tna, err := srv.initializeTaggedAnnotation(ctx, req)
Severity: Major
Found in internal/app/service/read_service.go - About 35 mins to fix

There are no issues that match your filters.

Category
Status