dictyBase/modware-order

View on GitHub

Showing 3 of 8 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

for _, item := range mlo {
ocdata = append(ocdata, &order.OrderCollection_Data{
Type: s.GetResourceName(),
Id: item.Key,
Attributes: &order.OrderAttributes{
Severity: Major
Found in internal/app/service/service.go and 1 other location - About 2 hrs to fix
internal/app/service/service.go on lines 203..222

Identical blocks of code found in 2 locations. Consider refactoring.
Open

for _, item := range mlo {
ocdata = append(ocdata, &order.OrderCollection_Data{
Type: s.GetResourceName(),
Id: item.Key,
Attributes: &order.OrderAttributes{
Severity: Major
Found in internal/app/service/service.go and 1 other location - About 2 hrs to fix
internal/app/service/service.go on lines 151..170

Method arangorepository.EditOrder has 5 return statements (exceeds 4 allowed).
Open

func (ar *arangorepository) EditOrder(
uod *order.OrderUpdate,
) (*model.OrderDoc, error) {
mdl := &model.OrderDoc{}
attr := uod.Data.Attributes
Severity: Major
Found in internal/repository/arangodb/arangodb.go - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language