Conversation

{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…

2
9
16

@gregkh

Would

/* This is the main function. */

make it happy? 🤔

1
0
0

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

0
0
0

@gregkh

Hah, that's like INTERCAL:

"[The PLEASE] keyword provides two reasons for the program's rejection by the compiler: if "PLEASE" does not appear often enough, the program is considered insufficiently polite, and the error message says this; if it appears too often, the program could be rejected as excessively polite."

https://en.m.wikipedia.org/wiki/INTERCAL

0
0
1