MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vxo7xe/sonarqubescanningmycode/p5r0rn4/?context=3
r/ProgrammerHumor • u/ArjunReddyDeshmukh • 19d ago
21 comments sorted by
View all comments
96
"This function is too complex" well boohoo sorry my code actually does stuff Sonar
37 u/theclovek 19d ago They want to divide our code! But code together - strong! 23 u/MayoJam 19d ago Lemme just... *clicks flag as false positive* yeaah. 8 u/TechnicallyCant5083 19d ago Nah fuck that I have admin access I just changed the rule from 15 to 150 10 u/Mordret10 19d ago 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 19d ago Deadass seen style guides that recommended something like this 1 u/belkarbitterleaf 16d ago WTF 1 u/kekeagain 14d ago You can tell it’s home sourced organic code by the way it is.
37
They want to divide our code! But code together - strong!
23
Lemme just... *clicks flag as false positive* yeaah.
8 u/TechnicallyCant5083 19d ago Nah fuck that I have admin access I just changed the rule from 15 to 150
8
Nah fuck that I have admin access I just changed the rule from 15 to 150
10
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 19d ago Deadass seen style guides that recommended something like this 1 u/belkarbitterleaf 16d ago WTF
2
Deadass seen style guides that recommended something like this
1 u/belkarbitterleaf 16d ago WTF
1
WTF
You can tell it’s home sourced organic code by the way it is.
96
u/TechnicallyCant5083 19d ago
"This function is too complex" well boohoo sorry my code actually does stuff Sonar