mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
clint: allow starting brace after enum
This commit is contained in:
@@ -2613,7 +2613,8 @@ def CheckBraces(filename, clean_lines, linenum, error):
|
||||
|
||||
func_start_linenum += 1
|
||||
else:
|
||||
if clean_lines.lines[func_start_linenum].endswith('{'):
|
||||
func_start = clean_lines.lines[func_start_linenum]
|
||||
if not func_start.startswith('enum ') and func_start.endswith('{'):
|
||||
error(filename, func_start_linenum,
|
||||
'readability/braces', 5,
|
||||
'Brace starting function body must be placed '
|
||||
|
Reference in New Issue
Block a user