✅ What's your view on tool like Sonarqube?
Should I learn from the code smells it captures?
29 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
like it telling me about reducing "Cyclic Complexity"
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so I become better?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
right
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
code smell is subjective, right?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
KidKai25#7728
like it telling me about reducing "Cyclic Complexity"
Quoted by
<@!689473681302224947> from #What's your view on tool like Sonarqube? (click here)
React with ❌ to remove this embed.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
You use it?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I think should I get a sonarqube linter
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so you will use it?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I thought there might be there
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
sorry it's sonarlint
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i think metrics like cyclic complexity can be useful hints but they're inherently prone to false-positives
sometimes you have a good, maintainable function that's complex to computers but not humans
switch cases kill cyclic complexity but are usually ok to understand for humans. though they have other problems
i think using tools like that is good for highlighting specific code problems (use this language feature instead of that one, etc.)
but for broad metrics stuff just use them as a general guideline for areas that need attention, don't take them religiously
I fell into the trap of listening to SonarQube suggestions/reports
In the end, became way less productive and code quality didn't improve at all because I tried to make arbitrary metrics happy
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
So you can def. look at what it says, it might has some merit to stuff. But take it with a pinch of salt, don't handle it as an oracle
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Cognitive complexity is also a useful measurement as well, that I think they came up with
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.Hey I hope you are taking care of yourself!