/* Test-file for coding style checker* Copyright 2010, Haiku, Inc.* Distributed under the terms of the MIT Licence*/// DETECTED problems// Line longer than 80 charsintsomeveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongFunctionName( int aLongParameter){// Identantion with spaces instead of tabsint a;int b;int c;// Missing space after control statementif(condition);//Missing space at comment start// Operator without spacesif (a>b);// Operator at end of lineif (a >b)j =k +i;// Wrong line breaks around elseif (test){}else{}// Less than two lines between functions}// Missing space before opening braceintaFunction(char param){// More than two lines between blocks}// CORRECT things that should not be detected as violations#include <dir/path.h>// Not matched by 'operator at end of line'// Below this are FALSE POSITIVES (think of it as a TODO list)// Test-file// Matched by 'space around operator' (should not be matched in comments)// NOT DETECTED violationsint func(){if (a){// The brace should be on the same line as the if}// Everything related to naming conventions}