Showing 6 of 13 total issues
Function sort_by_epics
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def sort_by_epics(filename, potential=False):
text = ''
if potential:
filename = '/'.join(filename.split('/')
[:-1]) + prefix_potential + filename.split('/')[-1]
- Read upRead up
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 gen_acex_list
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def gen_acex_list(us_number, filename):
acs = []
with open(filename) as file:
has_reached_user_story = False
for line in file.readlines():
- Read upRead up
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 sort_file
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def sort_file(filename, potential=False):
pb_file = pb_file_path
if potential:
filename = '/'.join(filename.split('/')
- Read upRead up
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 add_acc
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def add_acc(filename, potential=False):
text = ''
if potential:
filename = '/'.join(filename.split('/')
- Read upRead up
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 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 = []
- Read upRead up
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 = []
- Read upRead up
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"