]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CHECKSRC: document two missing warnings
authorDaniel Stenberg <daniel@haxx.se>
Fri, 18 Sep 2020 11:54:27 +0000 (13:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 Sep 2020 11:54:27 +0000 (13:54 +0200)
docs/CHECKSRC.md

index 96150922b8531c7c8552872b08dcc7ce55b1bf76..ac43ea5899da52df6a40b64104b1ad7c31308285 100644 (file)
@@ -70,6 +70,8 @@ warnings are:
 - `NOSPACEEQUALS`: An equals sign was found without preceding space. We prefer
   `a = 2` and *not* `a=2`.
 
+- `ONELINECONDITION`: do not put the conditional block on the same line as `if()`
+
 - `OPENCOMMENT`: File ended with a comment (`/*`) still "open".
 
 - `PARENBRACE`: `){` was used without sufficient space in between.
@@ -100,6 +102,8 @@ warnings are:
 
 - `TRAILINGSPACE`: Trailing white space on the line
 
+- `TYPEDEFSTRUCT`: we frown upon (most) typedefed structs
+
 - `UNUSEDIGNORE`: a checksrc inlined warning ignore was asked for but not used,
    that's an ignore that should be removed or changed to get used.