Studentmediene/kapina-backend

View on GitHub

Showing 4 of 16 total issues

File settings.py has 296 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""
Django settings for revolt-backend project.
 
Generated by 'django-admin startproject' using Django 1.10.
 
 
Severity: Minor
Found in app/settings.py - About 3 hrs to fix

    Function get_paginator has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def get_paginator(qs, page_size, page, paginated_type, **kwargs):
    Severity: Minor
    Found in api_graphql/utils.py - About 35 mins to fix

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

      @pytest.fixture(scope='session')
      def django_db_setup(django_db_setup, django_db_blocker):
      with django_db_blocker.unblock():
      call_command('loaddata', 'test_fixtures.json')
      Severity: Minor
      Found in api_graphql/tests.py and 1 other location - About 35 mins to fix
      data_models/tests.py on lines 13..16

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

      @pytest.fixture(scope='session')
      def django_db_setup(django_db_setup, django_db_blocker):
      with django_db_blocker.unblock():
      call_command('loaddata', 'test_fixtures.json')
      Severity: Minor
      Found in data_models/tests.py and 1 other location - About 35 mins to fix
      api_graphql/tests.py on lines 14..17
      Severity
      Category
      Status
      Source
      Language