From cccf9b7d7c71dccdcd27838bf579adf87c1c257d Mon Sep 17 00:00:00 2001 From: Jeremiah Leary Date: Sat, 14 Nov 2020 17:07:48 -0600 Subject: [PATCH] Updates during jcl style validation. 1) Added rule function_016 to handle return statements in functions a) Updated documentation b) Created tests c) Added rule 2) Updated rules to match existing jcl style output --- docs/function_rules.rst | 25 +++++++ vsg/rules/concurrent/rule_003.py | 2 + vsg/rules/function/__init__.py | 1 + vsg/rules/function/rule_016.py | 16 ++++ vsg/rules/move_token_next_to_another_token.py | 1 + vsg/rules/process/rule_029.py | 7 +- ...nk_lines_above_line_starting_with_token.py | 13 ++-- ..._identifiers_into_individual_statements.py | 11 +-- .../function/rule_016_test_input.fixed.vhd | 24 ++++++ vsg/tests/function/rule_016_test_input.vhd | 24 ++++++ vsg/tests/function/test_rule_016.py | 44 +++++++++++ .../graphicsaccelerator/Bresenhamer.fixed.vhd | 1 - .../graphicsaccelerator/Debouncer.fixed.vhd | 1 - .../FrameBuffer2.fixed.vhd | 3 +- .../jcl/graphicsaccelerator/FreqDiv.fixed.vhd | 1 - .../jcl/graphicsaccelerator/Pointer.fixed.vhd | 1 - .../jcl/graphicsaccelerator/VGA_Top.fixed.vhd | 1 - .../graphicsaccelerator/test_code_examples.py | 73 ++++++++++--------- vsg/vhdlFile/indent/function_specification.py | 3 + 19 files changed, 198 insertions(+), 54 deletions(-) create mode 100644 vsg/rules/function/rule_016.py create mode 100644 vsg/tests/function/rule_016_test_input.fixed.vhd create mode 100644 vsg/tests/function/rule_016_test_input.vhd create mode 100644 vsg/tests/function/test_rule_016.py diff --git a/docs/function_rules.rst b/docs/function_rules.rst index c7ce6f89..60dc815f 100644 --- a/docs/function_rules.rst +++ b/docs/function_rules.rst @@ -351,3 +351,28 @@ Refer to the section `Configuring Identifier Alignment Rules