Lines Matching full:warn
59 def warn(ln, msg): function
94 warn(ln, 'Length exceeds 79 characters')
100 warn(ln, 'Tab character in file which does not allow tabs')
103 warn(ln, 'Tab character immediately following space')
105 warn(ln, '8+ spaces in file which uses tabs')
110 warn(ln, 'Trailing whitespace')
116 warn(ln, 'Multi-line comment begins after code')
120 warn(ln, 'Comment line does not have * aligned with top')
122 warn(ln, 'Garbage before * in comment line')
124 warn(ln, 'Code after end of multi-line comment')
127 warn(ln, 'Comment is 3+ lines but is not formatted as block comment')
132 warn(ln, 'Preprocessor statement in function body')
139 warn(ln, 'Un-cuddled open brace')
141 warn(ln, 'Code on line after open brace')
143 warn(ln, 'Code on line before close brace')
155 warn(ln, 'No space after flow control keyword')
158 warn(ln, 'Space before parenthesis in function call')
161 warn(ln, 'Space before close parenthesis')
166 warn(ln, 'Parenthesized return expression')
183 warn(ln, 'Space after cast operator (or inline if/while body)')
186 warn(ln, 'No space before * in cast operator')
192 warn(ln - 1, 'Line broken before binary operator')
196 warn(ln, 'No space before or after binary operator')
198 warn(ln, 'No space before binary operator')
200 warn(ln, 'No space after binary operator')
207 warn(ln, 'Assignment in if conditional')
216 warn(ln, 'do statement without braces')
221 warn(ln, 'One arm of if/else statement braced but not the other')
228 warn(ln, 'Body is 2+ lines but has no braces')
234 warn(ln, 'Prohibited string function')
245 warn(ln, 'Trailing blank line')
249 warn(ln, 'Indentation may be incorrect')
280 # the first or last line; check_comment will warn about it.)
288 # Warn if we see a // comment and ignore anything following.
290 warn(ln, '// comment')
310 warn(ln, 'Blank line at end of file')