vhdl-style-guide/tests/concurrent
Benjamin Thiemann 068f9102ef
Issue#1451: Fixed array detection and parenthesis handling in multiline_alignment_between_tokens (#1468)
* Issue#1451: Fixed array detection in multiline_alignment_between_tokens

* Move function toi_is_array from multiline_simple_structure to the 
  utils module and use this function in 
  multiline_alignment_between_tokens, because it correctly classifies
  parenthesis of aggregates. The previous function there falsely 
  triggered array detection on parenthesis around logical operators.

* Rename "check_for_array" to "skip_array", because that is what the 
  variable is used to do.

* Extend tests for concurrent_003 with logical expressions that start 
  with a parenthesis.

* Issue#1451: Fixed parenthesis handling in multiline_alignment_between_tokens

Do not add parenthesis pairs to the list of occurring parenthesis if
they are on the same line.
2025-09-02 21:18:33 -05:00
..
__init__.py tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_001_test_input.fixed.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_001_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_002_test_input.fixed.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_002_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_003_test_input.fixed_align_left_no_align_paren_no.vhd Issue#1451: Fixed array detection and parenthesis handling in multiline_alignment_between_tokens (#1468) 2025-09-02 21:18:33 -05:00
rule_003_test_input.fixed_align_left_no_align_paren_yes.vhd Issue#1451: Fixed array detection and parenthesis handling in multiline_alignment_between_tokens (#1468) 2025-09-02 21:18:33 -05:00
rule_003_test_input.fixed_align_left_no_align_paren_yes__smart_tabs.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_003_test_input.fixed_align_left_yes_align_paren_no.vhd Issue#1451: Fixed array detection and parenthesis handling in multiline_alignment_between_tokens (#1468) 2025-09-02 21:18:33 -05:00
rule_003_test_input.fixed_align_left_yes_align_paren_no__smart_tabs.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_003_test_input.fixed_align_left_yes_align_paren_yes.vhd Issue#1451: Fixed array detection and parenthesis handling in multiline_alignment_between_tokens (#1468) 2025-09-02 21:18:33 -05:00
rule_003_test_input.fixed_align_left_yes_align_paren_yes__smart_tabs.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_003_test_input.vhd Issue#1451: Fixed array detection and parenthesis handling in multiline_alignment_between_tokens (#1468) 2025-09-02 21:18:33 -05:00
rule_003_test_input_smart_tabs.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_004_test_input.fixed.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_004_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_005_test_input.fixed.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_005_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_006_test_input.fixed.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_006_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_006_test_input_smart_tabs.fixed_indent_2.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_006_test_input_smart_tabs.fixed_indent_4.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_006_test_input_smart_tabs.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_008_test_input.fixed_yes_yes_yes_no.vhd style: apply codespell 2024-03-24 21:16:34 +02:00
rule_008_test_input.vhd style: apply codespell 2024-03-24 21:16:34 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_no_align_when_no_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_no_align_when_no_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_no_align_when_no_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_no_align_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_no_align_when_yes_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_no_align_when_yes_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_no_align_when_yes_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_yes_align_when_no_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_yes_align_when_no_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_yes_align_when_no_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_yes_align_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_yes_align_when_yes_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_yes_align_when_yes_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_no_align_paren_yes_align_when_yes_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_no_align_when_no_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_no_align_when_no_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_no_align_when_no_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_no_align_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_no_align_when_yes_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_no_align_when_yes_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_no_align_when_yes_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_yes_align_when_no_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_yes_align_when_no_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_yes_align_when_no_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_yes_align_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_yes_align_when_yes_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_yes_align_when_yes_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.fixed_align_left_yes_align_paren_yes_align_when_yes_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_smart_tabs_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_no_align_when_no_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_no_align_when_no_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_no_align_when_no_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_no_align_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_no_align_when_yes_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_no_align_when_yes_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_no_align_when_yes_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_yes_align_when_no_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_yes_align_when_no_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_yes_align_when_no_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_yes_align_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_yes_align_when_yes_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_yes_align_when_yes_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_no_align_paren_yes_align_when_yes_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_no_align_when_no_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_no_align_when_no_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_no_align_when_no_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_no_align_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_no_align_when_yes_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_no_align_when_yes_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_no_align_when_yes_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_yes_align_when_no_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_yes_align_when_no_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_yes_align_when_no_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_yes_align_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_yes_align_when_yes_wrap_at_when_no_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_yes_align_when_yes_wrap_at_when_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.fixed_align_left_yes_align_paren_yes_align_when_yes_wrap_at_when_yes_align_else_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_009_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_010_test_input.fixed.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_010_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_011_test_input.fixed_new_line_after_assign_no.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_011_test_input.fixed_new_line_after_assign_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_011_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_012_test_input.fixed.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_012_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_400_test_input.fixed_no_no.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_400_test_input.fixed_yes_no.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_400_test_input.fixed_yes_yes.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_400_test_input.vhd tests: move out of vsg 2024-03-23 18:48:35 +02:00
rule_401_test_input.fixed.vhd style: apply end-of-file-fixer 2024-03-24 21:16:35 +02:00
rule_401_test_input.vhd style: apply end-of-file-fixer 2024-03-24 21:16:35 +02:00
test_rule_001.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_002.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_003.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_003_smart_tabs.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_004.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_005.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_006.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_006_smart_tabs.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_008.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_009.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_009_boolean.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_009_smart_tabs.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_010.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_011.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_012.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_400.py style: apply black 2024-03-24 21:16:35 +02:00
test_rule_401.py style: apply black 2024-03-24 21:16:35 +02:00