byceps/byceps

View on GitHub

Showing 2 of 3 total issues

Function create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def create(shop_id, type_name):
    """Create a product."""
    shop = _get_shop_or_404(shop_id)
    type_ = _get_product_type_or_400(type_name)

Severity: Minor
Found in byceps/blueprints/admin/shop/product/views.py - About 1 hr to fix

    Function connect_verify has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def connect_verify():
        """Verify signed Discord parameters."""
        params = request.args.to_dict()
    
        if 'code' not in params:
    Severity: Minor
    Found in byceps/blueprints/site/connected_external_accounts/discord/views.py - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language