fga-eps-mds/2020.1-GaiaDex-wiki

View on GitHub
docs/generate_sprints_from_template.py

Summary

Maintainability
A
1 hr
Test Coverage

Function results_and_meeting_minutes has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

def results_and_meeting_minutes(filename, list_of_us, sprint_number, next_issues = []):
    file = open(filename, 'r').read()
    file = file.replace('Resultados da Sprint N', f'Resultados da Sprint {sprint_number}').replace('resultados-da-sprint-n', f'resultados-da-sprint-{sprint_number}')

    rows = []
Severity: Minor
Found in docs/generate_sprints_from_template.py - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function planning has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def planning(filename, list_of_us, sprint_number):
    file = open(filename, 'r').read()
    file = file.replace('Planejamento da Sprint N', f'Planejamento da Sprint {sprint_number}').replace('planejamento-da-sprint-n', f'planejamento-da-sprint-{sprint_number}')

    issues = []
Severity: Minor
Found in docs/generate_sprints_from_template.py - About 25 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

There are no issues that match your filters.

Category
Status