adsabs/biblib-service

View on GitHub

Showing 114 of 175 total issues

Avoid too many return statements within this function.
Open

                return err(WRONG_TYPE_ERROR)
Severity: Major
Found in biblib/views/operations_view.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                    return err(dict(body=output.get("error"), number=output.get("status_code", 400)))
    Severity: Major
    Found in biblib/views/document_view.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return {}, 400
      Severity: Major
      Found in biblib/views/document_view.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return response, 200
        Severity: Major
        Found in biblib/views/document_view.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return err(dict(body=output_dict.get("error"), number=output_dict.get("status")))
          Severity: Major
          Found in biblib/views/document_view.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return err(MISSING_NOTE_ERROR)
            Severity: Major
            Found in biblib/views/notes_view.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return response, 201
              Severity: Major
              Found in biblib/views/notes_view.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return err(NO_PERMISSION_ERROR)
                Severity: Major
                Found in biblib/views/notes_view.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return library_dict, 200
                  Severity: Major
                  Found in biblib/views/operations_view.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return library_dict, 200
                    Severity: Major
                    Found in biblib/views/operations_view.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return err(MISSING_LIBRARY_ERROR)
                      Severity: Major
                      Found in biblib/views/document_view.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return response, 200 
                        Severity: Major
                        Found in biblib/views/notes_view.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return err(INVALID_CONTENT_ERROR)
                          Severity: Major
                          Found in biblib/views/notes_view.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                                return err(BAD_LIBRARY_ID_ERROR)
                            Severity: Major
                            Found in biblib/views/operations_view.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return {'number_added': output.get("number_added")}, 200
                              Severity: Major
                              Found in biblib/views/document_view.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return err(NO_PERMISSION_ERROR)
                                Severity: Major
                                Found in biblib/views/library_view.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return {}, 200
                                  Severity: Major
                                  Found in biblib/views/transfer_view.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return library_dict, 200
                                    Severity: Major
                                    Found in biblib/views/operations_view.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return err(WRONG_TYPE_ERROR)
                                      Severity: Major
                                      Found in biblib/views/document_view.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return err(dict(body=output_dict.get("error"), number=output_dict.get("status")))
                                        Severity: Major
                                        Found in biblib/views/document_view.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language