adsabs/biblib-service

View on GitHub

Showing 114 of 175 total issues

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(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 err(NO_PERMISSION_ERROR)
      Severity: Major
      Found in biblib/views/permission_view.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                        return err(TOO_MANY_LIBRARIES_SPECIFIED_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(DUPLICATE_LIBRARY_NAME_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(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 {'number_added': output_dict.get('number_added'), "bibcodes": output_dict.get('bibcodes')}, 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 {}, 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(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 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 False
                      Severity: Major
                      Found in biblib/views/permission_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/operations_view.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return err(INVALID_BIBCODE_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 {}, 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 {}, 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 err(API_MISSING_USER_EMAIL)
                                Severity: Major
                                Found in biblib/views/permission_view.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                  return err(DUPLICATE_LIBRARY_NAME_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 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(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(NO_PERMISSION_ERROR)
                                        Severity: Major
                                        Found in biblib/views/transfer_view.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language