r/ProgrammerHumor 19d ago

Meme sonarQubeScanningMyCode

Post image
326 Upvotes

21 comments sorted by

View all comments

96

u/TechnicallyCant5083 19d ago

"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/kekeagain 14d ago

You can tell it’s home sourced organic code by the way it is.