Showing 77 of 77 total issues
Avoid too many return
statements within this function. Open
return 'EVA_SUBMIT'
Avoid too many return
statements within this function. Open
return 'COM_SUBMIT'
Avoid too many return
statements within this function. Open
return 'TO_RECEIVE'
Avoid too many return
statements within this function. Open
return 'EVA_KO'
Avoid too many return
statements within this function. Open
return 'COM_KO'
Avoid too many return
statements within this function. Open
return dissert.status
Avoid too many return
statements within this function. Open
return 'ENDED_LOS'
Avoid too many return
statements within this function. Open
return 'ENDED_WIN'
Function informations_add
has a Cognitive Complexity of 9 (exceeds 8 allowed). Consider refactoring. Open
def informations_add(request): if request.method == "POST": if 'search_form' in request.POST: # step 2 : second form to select person in list return _manage_search_form(request)
- Read upRead up
Function manager_informations_add
has a Cognitive Complexity of 9 (exceeds 8 allowed). Consider refactoring. Open
def manager_informations_add(request): if request.method == "POST": if 'search_form' in request.POST: # step 2 : second form to select person in list return _manage_search_form(request, manager=True) else: # step 3 : everything ok, register the person as adviser
- Read upRead up
Expected 2 blank lines, found 1 Open
def find_all_ordered_by_name_short():
- Read upRead up
- Exclude checks
Continuation line over-indented for visual indent Open
adviser_can_manage_proposition_dissertation(proposition_dissert, advis) or \
- Read upRead up
- Exclude checks
Blank line at end of file Open
- Read upRead up
- Exclude checks
Expected 2 blank lines, found 1 Open
class OfferPropositionGroup(SerializableModel):
- Read upRead up
- Exclude checks
Continuation line over-indented for visual indent Open
proposition_dissert.author == advis
- Read upRead up
- Exclude checks
Missing whitespace around operator Open
search_fields=('name_short', 'name_long')
- Read upRead up
- Exclude checks
Line too long (121 > 120 characters) Open
offer_props = OfferProposition.objects.filter(education_group__facultyadviser__adviser__person__user=request.user). \
- Read upRead up
- Exclude checks