|
220 | 220 | 'readability/casting',
|
221 | 221 | 'readability/check',
|
222 | 222 | 'readability/constructors',
|
| 223 | + 'readability/dowhile', |
223 | 224 | 'readability/fn_size',
|
| 225 | + 'readability/function_comment' |
| 226 | + 'readability/identifier_spacing', |
| 227 | + 'readability/identifiers', |
224 | 228 | 'readability/inheritance',
|
225 | 229 | 'readability/multiline_comment',
|
226 | 230 | 'readability/multiline_string',
|
227 |
| - 'readability/identifier_spacing', |
228 |
| - 'readability/identifiers', |
229 | 231 | 'readability/namespace',
|
230 | 232 | 'readability/nolint',
|
231 | 233 | 'readability/nul',
|
232 | 234 | 'readability/strings',
|
233 |
| - 'readability/todo', |
234 | 235 | 'readability/throw',
|
| 236 | + 'readability/todo', |
235 | 237 | 'readability/utf8',
|
236 |
| - 'readability/function_comment' |
237 | 238 | 'runtime/arrays',
|
238 | 239 | 'runtime/casting',
|
239 | 240 | 'runtime/endl',
|
|
282 | 283 | # flag. By default all errors are on, so only add here categories that should be
|
283 | 284 | # off by default (i.e., categories that must be enabled by the --filter= flags).
|
284 | 285 | # All entries here should start with a '-' or '+', as in the --filter= flag.
|
285 |
| -_DEFAULT_FILTERS = ['-build/include_alpha'] |
| 286 | +_DEFAULT_FILTERS = ['-build/include_alpha', '-readability/dowhile'] |
286 | 287 |
|
287 | 288 | # The default list of categories suppressed for C (not C++) files.
|
288 | 289 | _DEFAULT_C_SUPPRESSED_CATEGORIES = [
|
@@ -4197,7 +4198,7 @@ def CheckDoWhile(filename, clean_lines, linenum, error):
|
4197 | 4198 | if Search(r'}\s*while\s*\(', line):
|
4198 | 4199 | do_found, num = FindDoStart(clean_lines, linenum)
|
4199 | 4200 | if do_found:
|
4200 |
| - error(filename, linenum, 'readability/braces', 4, |
| 4201 | + error(filename, linenum, 'readability/dowhile', 4, |
4201 | 4202 | 'while statement of do...while loop should be on a separate line to the closing brace')
|
4202 | 4203 |
|
4203 | 4204 | def CheckTrailingSemicolon(filename, clean_lines, linenum, error):
|
|
0 commit comments