fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

{sigh} Go home CodeQL, you are drunk…

int main(int argc, char *argv[])
Poorly documented function: fewer than 2% comments for a function of 129 lines.

Code in question is at: https://github.com/gregkh/usbutils/blob/master/lsusb.c#L3835 if people are curious. It’s as if the tool hasn’t seen C code before…

GitHubusbutils/lsusb.c at master · gregkh/usbutilsUSB utilities for Linux, including lsusb. Contribute to gregkh/usbutils development by creating an account on GitHub.
Gustavo A. R. Silva :tux:

@gregkh

Would

/* This is the main function. */

make it happy? 🤔

I feel reminded of bygone times, where productivity was measured in lines of code, so people added heaps of comments, typically consisting of lots of asterisks everywhere.

@gregkh @gustavoars