ocadotechnology/rapid-router

View on GitHub
game/migrations/0086_loop_levels.py

Summary

Maintainability
C
1 day
Test Coverage

File 0086_loop_levels.py has 446 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import json

from django.apps.registry import Apps
from django.db import migrations

Severity: Minor
Found in game/migrations/0086_loop_levels.py - About 6 hrs to fix

    Function add_loop_levels has 79 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def add_loop_levels(apps: Apps, *args):
        Level = apps.get_model("game", "Level")
        LevelBlock = apps.get_model("game", "LevelBlock")
        Block = apps.get_model("game", "Block")
        LevelDecor = apps.get_model("game", "LevelDecor")
    Severity: Major
    Found in game/migrations/0086_loop_levels.py - About 3 hrs to fix

      There are no issues that match your filters.

      Category
      Status