Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOOP-800: added comments and fixed errors in flaghelper #27

Merged
merged 4 commits into from
Apr 16, 2021

Conversation

sinejespersen
Copy link

https://jira.itkdev.dk/browse/LOOP-800

"I os2loop_upvote modulet ligger FlagHelper-klassen med preprocessField() metoden. Denne metode har en ret høj kodekompleksitet med mange betingelser og løkker nested i hinanden. Dette nedsætter læsbarheden og øger risikoen for fejl i funktionaliteten, samt øger risikoen for at der ved videreudvikling introduceres nye fejl eller utilsigtet, ændret logik.
Der er muligvis allerede en fejl i metoden idet nedenstående linje muligvis kan udføres uden der er identificeret / sat en $top_comment. Om det i praksis er et problem skal jeg ikke kunne sige, men det illustrerer meget fint hvorfor det kan være en idé at arbejde med metoden så den bliver mere læsbar.

Samlet set er metoden dog ikke omfattende hvilket afbøder risikoen en smule."

@rimi-itk rimi-itk merged commit 58200d4 into develop Apr 16, 2021
@rimi-itk rimi-itk deleted the feature/LOOP-800-comments-in-flag-helper_04_2021 branch April 16, 2021 12:25
rimi-itk added a commit that referenced this pull request Apr 20, 2021
rimi-itk added a commit that referenced this pull request Apr 20, 2021
…-helper_04_2021

LOOP-800: added comments and fixed errors in flaghelper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants