I just learned TIOBE has a "quality indicator" and #curl is ranked D out of an A to F scale where A is best.
No further comments on that.
https://ticsdemo.tiobe.com/tiobeweb/DEMO/TqiDashboard.html#axes=Project(curl),Sub()&metric=tqi
*Ada - Np-93/237/
@sodiboo code average is a mystery to me. Code coverage when/how? I claim a high degree of incompetence there.
@puppygirlhornypost2 @bagder @sodiboo looks like it also includes the example code in docs and counts that as code duplication. only looking at src/ shows a much higher result
@cuddlebug @bagder @sodiboo wtf lol that’s absolutely useless
@puppygirlhornypost2 @bagder @sodiboo the curl docs subsystem 
@bagder I quite like this warning in curl.h and presumably tons of other files as well
@bagder actually hm. at first I read this wrong and thought “what?! there clearly is a Copyright notice there” but upon further inspection I believe it’s docking points not based on the part I highlighted, but because you attribute it to “Daniel Stenberg” instead of “TIOBE”. bwahahaha
"Reserved identifier '__AMIGA__' may not be used"
... wat?
okay, I'll repeat what I replied to the TIOBE person who told me about it:
"color me highly skeptical after just 30 seconds checking your scores of random curl details. I'm not sure it is worth bothering about."
(this on LinkedIn) I just had to follow-up my comment after seeing some more of this horror-show so I added:
"looking closer, I think it actually is borderline offensive. But you do what you do."
@bagder 15% of that is cyclomatic complexity, which is imo a mostly very stupid metric... Here's what you can do to reduce it: make more methods out of your "complicated" code 
@emma @bagder I think cyclomatic code complexity do have some value - could we have a graph of code complexity for each function that had a security vulnerability to have some metric? Higher complexity often leads to bugs, especially wrt error handling in C. I’m not saying low complexity doesn’t lead to bugs, though.
@bagder wonder if it also gives error for __ANDROID__, or if that is fine because it’s a reserved identifier used by a mainstream platform
*Ada - Np-93/237/
@cuddlebug looking at include/curl/system.h where a large amount of #ifdefs are used, it is clear that some are accepted but some others are not, quite arbitrarily from what I can tell
@cuddlebug @bagder Android is NOT okay. I think maybe the lint is just about any __*__ identifier defined by the compiler?
@bagder @cuddlebug wait yeah it tells us
Only the predefined macro names
__FILE__,__LINE__and__func__may be used.
@piggo sure! It builds and runs fine on Amiga, and has so since forever
@sodiboo @bagder @cuddlebug a lot of drivers for android for MediaTek chipsets are just transplanted from a build of their MAUI feature phone OS from 2005, but with some lines of code stuck in so they run on android https://android.googlesource.com/kernel/mediatek/+/android-4.4.4_r5/drivers/power/mediatek/switch_charging.c
@GroupNebula563 @bagder @sodiboo yea, there are many ways in which android is NOT okay 
@sodiboo @bagder @cuddlebug the MAUI source code is great too lol, very cool to see how they made a full feature phone OS on a ***VERY*** underpowered chipset. it’s still actively maintained, though most of the builds that have leaked are pretty old. the MAUI OS source code was licensed from MTK if you were building a device with one of their feature phone chipsets, you’d get the source code and modify it for your device
@GroupNebula563 @bagder @sodiboo interesting. but here is the most important question. does MAUI run curl?
I want to clarify that this scoring and site of course mean exactly NOTHING to me or us and it has no relevance at all.
But it shouldn't stop us from making fun of them.
@sodiboo @bagder @cuddlebug fun tear your hair out activity: try to build one of the leaked MAUI versions https://github.com/adasngle/testmywatch
@sodiboo @bagder @cuddlebug (I suggest winxp or 7)
@cuddlebug @bagder @sodiboo not that I’m aware of, though it is written in some variety of C and can already perform HTTP requests, so a port might not be too hard
@cuddlebug @bagder @sodiboo alternatively, some builds of MAUI support the MediaTek Runtime Environment (MRE) which is pretty low level compared to the MRP and J2ME runtimes some versions of MAUI also support https://lpcwiki.miraheze.org/wiki/MediaTek_MRE