From: Nicolas Palix Date: Tue, 24 Aug 2010 15:39:12 +0000 (+0200) Subject: Coccinelle: Add misc/ifcol.cocci X-Git-Tag: v2.6.37-rc1~50^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49ab7a39136566eb8312e770031af4182c9f2967;p=pandora-kernel.git Coccinelle: Add misc/ifcol.cocci Find confusingly indented code in or after an if. An if branch should be indented. The code following an if should not be indented. Sometimes, code after an if that is indented is actually intended to be part of the if branch. This has a high rate of false positives, because Coccinelle's column calculation does not distinguish between spaces and tabs, so code that is not visually aligned may be considered to be in the same column. Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall Signed-off-by: Michal Marek --- Reading git-diff-tree failed