datacite/lupo

View on GitHub
app/serializers/activity_serializer.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Avoid deeply nested control flow statements.
Open

              pub_obj[0] ? pub_obj[0]["name"] : nil,
Severity: Major
Found in app/serializers/activity_serializer.rb - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                  pub_obj[1] ? pub_obj[1]["name"] : nil
    Severity: Major
    Found in app/serializers/activity_serializer.rb - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                    pub[0] ? { "name": pub[0] } : nil,
      Severity: Major
      Found in app/serializers/activity_serializer.rb - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                      pub[1] ? { "name": pub[1] } : nil
        Severity: Major
        Found in app/serializers/activity_serializer.rb - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status