eventoL/eventoL

View on GitHub

Showing 519 of 519 total issues

third party import from django.forms import Form should be placed before from allauth.account.forms import ChangePasswordForm as AllAuthChangePasswordForm
Open

from django.forms import Form
Severity: Info
Found in eventol/manager/forms.py by pylint

Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)

Unused argument 'instance'
Open

    def group_names(cls, instance):
Severity: Minor
Found in eventol/manager/binding.py by pylint

Used when a function or method argument is not used.

Unused argument 'pk'
Open

    def has_permission(self, user, action, pk):
Severity: Minor
Found in eventol/manager/binding.py by pylint

Used when a function or method argument is not used.

Unable to import 'allauth.account.forms'
Open

from allauth.account.forms import LoginForm as AllAuthLoginForm
Severity: Critical
Found in eventol/manager/forms.py by pylint

Used when pylint has been unable to import a module.

third party import from django.utils.translation import ugettext as _ should be placed before from allauth.account.forms import ChangePasswordForm as AllAuthChangePasswordForm
Open

from django.utils.translation import ugettext as _
Severity: Info
Found in eventol/manager/forms.py by pylint

Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)

Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.
Open

def talk_registration(request, event_slug, proposal_id):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
Open

def installation(request, event_slug):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
Open

def attendance_by_autoreadqr(request, event_slug):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Merge this if statement with the enclosing one.
Open

        if not user.is_authenticated or not is_collaborator(user, event.event_slug):

Merging collapsible if statements increases the code's readability.

Noncompliant Code Example

if condition1:
    if condition2:
        # ...

Compliant Solution

if condition1 and condition2:
    # ...

Merge this if statement with the enclosing one.
Open

        if not user.is_authenticated or not is_installer(user, event.event_slug):

Merging collapsible if statements increases the code's readability.

Noncompliant Code Example

if condition1:
    if condition2:
        # ...

Compliant Solution

if condition1 and condition2:
    # ...

Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
Open

def attendee_registration(request, event_slug):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Refactor this function to reduce its Cognitive Complexity from 50 to the 15 allowed.
Open

def create_event(request):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.
Open

def add_or_edit_room(request, event_slug, room_id=None):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Merge this if statement with the enclosing one.
Open

        if event.use_installations and is_installer(user, event.event_slug):

Merging collapsible if statements increases the code's readability.

Noncompliant Code Example

if condition1:
    if condition2:
        # ...

Compliant Solution

if condition1 and condition2:
    # ...

Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed.
Open

def manage_attendance(request, event_slug):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Refactor this function to reduce its Cognitive Complexity from 31 to the 15 allowed.
Open

def process_attendee_registration(request, event, return_url, render_template):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Refactor this function to reduce its Cognitive Complexity from 29 to the 15 allowed.
Open

def attendee_registration_by_self(request, event_slug, event_registration_code):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
Open

def edit_event(request, event_slug):
Severity: Critical
Found in eventol/manager/views.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Merge this if statement with the enclosing one.
Open

            if email != repeat_email:
Severity: Major
Found in eventol/manager/forms.py by sonar-python

Merging collapsible if statements increases the code's readability.

Noncompliant Code Example

if condition1:
    if condition2:
        # ...

Compliant Solution

if condition1 and condition2:
    # ...
Severity
Category
Status
Source
Language