Showing 24 of 24 total issues
Avoid too many return
statements within this function. Open
Open
return error_response(3) # Login unsuccessful
Avoid too many return
statements within this function. Open
Open
return auth_error(4, 'error="invalid_request"')
Avoid too many return
statements within this function. Open
Open
return auth_error(15, 'error="insufficient_scope"')
Function init_and_generate
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def init_and_generate(): """ Intialize and generate DB if needed, depends on DB_GEN_POLICY and DB_FORCE_INIT.
- Read upRead up