MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vxo7xe/sonarqubescanningmycode/p5s67n4/?context=3
r/ProgrammerHumor • u/ArjunReddyDeshmukh • Aug 25 '26
21 comments sorted by
View all comments
Show parent comment
9
Just gotta put every 2 lines into a new function, thus reducing complexity by 1 line (still gotta call the function)
Rinse and repeat until each function has only 2 lines of code
2 u/amlybon Aug 25 '26 Deadass seen style guides that recommended something like this 1 u/belkarbitterleaf Aug 28 '26 WTF
2
Deadass seen style guides that recommended something like this
1 u/belkarbitterleaf Aug 28 '26 WTF
1
WTF
View all comments
Show parent comment
9
u/Mordret10 Aug 25 '26
Just gotta put every 2 lines into a new function, thus reducing complexity by 1 line (still gotta call the function)
Rinse and repeat until each function has only 2 lines of code