adsabs/biblib-service

View on GitHub

Showing 114 of 175 total issues

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 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(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 err(NO_LIBRARY_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(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 {}, 400
            Severity: Major
            Found in biblib/views/operations_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(NO_PERMISSION_ERROR)
                Severity: Major
                Found in biblib/views/transfer_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 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(NO_PERMISSION_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/library_view.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return {'number_removed': output_dict.get('number_removed'), "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 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(WRONG_TYPE_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/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/notes_view.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return output_dict, 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/permission_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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language