From df7bd278a6c8cd0f5e956fb733a25379f3a71f9f Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Thu, 20 Dec 2018 15:57:02 +0000 Subject: utils: checkstyle: add keep-one-line-blocks Enable --keep-one-line-blocks to prevent astyle from wanting to move single inlined blocks to cover 4 lines such as: - virtual int init() { return 0; } + virtual int init() + { + return 0; + } Reviewed-by: Jacopo Mondi Signed-off-by: Kieran Bingham --- utils/checkstyle.py | 1 + 1 file changed, 1 insertion(+) (limited to 'utils') diff --git a/utils/checkstyle.py b/utils/checkstyle.py index 32974815..a40d7dec 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -29,6 +29,7 @@ astyle_options = ( '--pad-oper', '--align-pointer=name', '--align-reference=name', + '--keep-one-line-blocks', '--max-code-length=120' ) -- cgit v1.2.1