C
C#

help

✅ What's your view on tool like Sonarqube?

KKidKai252/3/2023
Should I learn from the code smells it captures?
UUUnknown User2/3/2023
4 Messages Not Public
Sign In & Join Server To View
KKidKai252/3/2023
like it telling me about reducing "Cyclic Complexity"
UUUnknown User2/3/2023
3 Messages Not Public
Sign In & Join Server To View
KKidKai252/3/2023
so I become better?
UUUnknown User2/3/2023
2 Messages Not Public
Sign In & Join Server To View
KKidKai252/3/2023
right
UUUnknown User2/3/2023
2 Messages Not Public
Sign In & Join Server To View
KKidKai252/3/2023
code smell is subjective, right?
UUUnknown User2/3/2023
9 Messages Not Public
Sign In & Join Server To View
MMODiX2/3/2023
KidKai25#7728
like it telling me about reducing "Cyclic Complexity"
Quoted by
React with ❌ to remove this embed.
UUUnknown User2/3/2023
2 Messages Not Public
Sign In & Join Server To View
KKidKai252/3/2023
You use it?
UUUnknown User2/3/2023
5 Messages Not Public
Sign In & Join Server To View
KKidKai252/3/2023
I think should I get a sonarqube linter
UUUnknown User2/3/2023
Message Not Public
Sign In & Join Server To View
KKidKai252/3/2023
so you will use it?
UUUnknown User2/3/2023
2 Messages Not Public
Sign In & Join Server To View
KKidKai252/3/2023
I thought there might be there
UUUnknown User2/3/2023
Message Not Public
Sign In & Join Server To View
KKidKai252/3/2023
sorry it's sonarlint
UUUnknown User2/3/2023
6 Messages Not Public
Sign In & Join Server To View
BBecquerel2/3/2023
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
LLPeter19972/3/2023
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
UUUnknown User2/3/2023
3 Messages Not Public
Sign In & Join Server To View
LLPeter19972/3/2023
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
UUUnknown User2/3/2023
5 Messages Not Public
Sign In & Join Server To View
AAuger2/3/2023
Cognitive complexity is also a useful measurement as well, that I think they came up with
AAccord2/4/2023
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.
KKidKai252/6/2023
Hey I hope you are taking care of yourself!

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
✅ Autodesk Maya HelpAnyone in here know Autodesk Maya really well? My mesh tool isn't letting my polygon primitives mesh❔ circular primesso this program is meant to find how many circular primes there are below 1 million (should be 55), ❔ WPF Cannot find child when it's thereHi! I am working on my own RoundedCorners attachedproperty however I have stumbled upon a problem Pr❔ HttpClient exiting program during GetStringAsync() and GetAsync()I'm sending a GET to an API, but when debugging, as soon as you step off the last line, it cuts out ✅ Homework Helphttps://i.gyazo.com/f23d758d46581bcfb84f88d4178cd484.png What should I return from the FillArray() ❔ force a ushort value?if i type for example var num = 25L; i am forcing a long value (int64) how can i force a ushort in ❔ Doing post method with entity frameworki'm making a simple API to practice with entity framework but when i try to make a post to a table w❔ I can't reference a class library please helpI can't reference a class library i t says compilation error❔ ASP.NET REMOTE DEVELOPMENTHey does anyone know if I would need nginx for remote development on a ubuntu server from my windowException/NULL/Error handling advice.DeserializeAsync clearly returns a nullable generic object. From the picture we can clearly see that❔ ASP.NET Core web app vs ASP.net web application(.NET Framework)Hi, Ive been working with c# for a while now and would like to make a webapp but I dont know where t✅ IGNORE PEOPLEmy place for testing commands❔ Game Hubhi, how can i program my own game hub, like battle.net where i can download and start my own games ?❔ ✅ beginner class and propertiesi am doing basic program abt class and getting information from input but on the weight section whe❔ Best practice to retrieve MySQL columnsHello wonderful people! Can you please help me understanding what would be the best practice to ret❔ Auto Slide Showhere my code✅ materialDesign:Cardfor some reason it says that closing matrialcard doesent exist and it shows an error❔ Why does this code give the CS8604 warning?I'm confused why the below code gives the CS8604 warning. As far as I am concerned, I am null checki✅ Having trouble adding a picture to my code.what should the path look like?❔ Producer Consumer ISourceBlock<T>, periodically flushing consumed dataHi, I've the following scenario: I've a camera continuously acquiring frames and a c# app receiving