4 ms·
> The syntax error is a single period '.' as the first character on an otherwise empty line of C code. I believe the point is that given this context, it could
by AwaAwa 3y ago
> The syntax error is a single period '.' as the first character on an otherwise empty line of C code.
I believe the point is that given this context, it could/should not be construed as a typo.
- dpkirchner 3y agoIf you received this patch from someone you trusted, and noticed the period, would you call it a typo or would you assume it is malicious? Or is this just an argument over the use of the word "typo" instead of "mistake"? That wouldn't be very useful, IMO.
- dvh 3y agoVery common if you copy paste (using mouse buffer) from midnight commander text editor or any other editor that highlights trailing spaces as dot.
- lenerdenator 3y agoI take it they're not forcing contributors to lint code, then?
- klyrs 3y agoDoes your linter look for syntax errors in the content of strings? If so, how would you design a unit test meant to capture syntax errors?
- tedunangst 3y agoHave you tried running lint on a configure.ac or CMakeLists.txt file?
- brenoguim 3y agoFor those using editors with mouse, it's very easy to add a character anywhere. Doesn't matter the place.