1 /* Test-file for coding style checker
2 * Copyright 2010, Haiku, Inc.
3 * Distributed under the terms of the MIT Licence
10 // Line longer than 80 chars
12 someveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongFunctionName( int aLongParameter
)
14 // Identantion with spaces instead of tabs
19 // Missing space after control statement
22 //Missing space at comment start
24 // Operator without spaces
27 // Operator at end of line
34 // Wrong line breaks around else
41 // Less than two lines between functions
44 // Missing space before opening brace
46 aFunction(char param
){
47 // More than two lines between blocks
52 // CORRECT things that should not be detected as violations
54 // Not matched by 'operator at end of line'
57 // Below this are FALSE POSITIVES (think of it as a TODO list)
59 // Matched by 'space around operator' (should not be matched in comments)
62 // NOT DETECTED violations
67 // The brace should be on the same line as the if
70 // Everything related to naming conventions