clint: allow starting brace after enum

This commit is contained in:
Justin M. Keyes 2017-08-05 21:10:21 +02:00
parent efb0aca0ee
commit 30996359ef
2 changed files with 2 additions and 2 deletions

View File

@ -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 '

View File

@ -2,7 +2,6 @@ local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local clear, feed, command = helpers.clear, helpers.feed, helpers.command
local iswin, set_shell_powershell = helpers.iswin, helpers.set_shell_powershell
local nvim_dir = helpers.nvim_dir
local funcs = helpers.funcs
local eq = helpers.eq
local eval = helpers.eval