Skip to content

Commit 04cf277

Browse files
committed
Issue#1492: Removed constrained_array_definition_100, shuffled other rules names down.
1 parent 84fa229 commit 04cf277

15 files changed

+17
-152
lines changed

docs/configuring_whitespace_rules.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ Rules Enforcing Whitespace
162162
* `constant_101 <constant_rules.html#constant-101>`_
163163
* `constrained_array_definition_100 <constrained_array_definition_rules.html#constrained-array-definition-100>`_
164164
* `constrained_array_definition_101 <constrained_array_definition_rules.html#constrained-array-definition-101>`_
165-
* `constrained_array_definition_102 <constrained_array_definition_rules.html#constrained-array-definition-102>`_
166165
* `context_002 <context_rules.html#context-002>`_
167166
* `context_017 <context_rules.html#context-017>`_
168167
* `context_018 <context_rules.html#context-018>`_

docs/constrained_array_definition_rules.rst

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,6 @@ constrained_array_definition_100
88

99
|phase_2| |error| |whitespace|
1010

11-
This rule checks for whitespace after the **array** keyword.
12-
13-
|configuring_whitespace_rules_link|
14-
15-
**Violation**
16-
17-
.. code-block:: vhdl
18-
19-
type t_u_array is array (1 downto 0) of unsigned;
20-
type t_u_array is array (1 downto 0) of unsigned;
21-
22-
**Fix**
23-
24-
.. code-block:: vhdl
25-
26-
type t_u_array is array(1 downto 0) of unsigned;
27-
type t_u_array is array(1 downto 0) of unsigned;
28-
29-
constrained_array_definition_101
30-
################################
31-
32-
|phase_2| |error| |whitespace|
33-
3411
This rule checks for a single space before the **of** keyword.
3512

3613
|configuring_whitespace_rules_link|
@@ -47,7 +24,7 @@ This rule checks for a single space before the **of** keyword.
4724
4825
type t_u_array is array(1 downto 0) of unsigned;
4926
50-
constrained_array_definition_102
27+
constrained_array_definition_101
5128
################################
5229

5330
|phase_2| |error| |whitespace|

docs/rule_groups/whitespace_rule_group.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Rules Enforcing Whitespace Rule Group
5656
* `constant_101 <../constant_rules.html#constant-101>`_
5757
* `constrained_array_definition_100 <../constrained_array_definition_rules.html#constrained-array-definition-100>`_
5858
* `constrained_array_definition_101 <../constrained_array_definition_rules.html#constrained-array-definition-101>`_
59-
* `constrained_array_definition_102 <../constrained_array_definition_rules.html#constrained-array-definition-102>`_
6059
* `context_002 <../context_rules.html#context-002>`_
6160
* `context_017 <../context_rules.html#context-017>`_
6261
* `context_018 <../context_rules.html#context-018>`_

docs/unbounded_array_definition_rules.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This rule checks for whitespace after the **array** keyword.
1616

1717
.. code-block:: vhdl
1818
19-
type t_u_array_unconstrained is array(natural range <>) of unsigned;
19+
type t_u_array_unconstrained is array (natural range <>) of unsigned;
2020
type t_u_array_unconstrained is array (natural range <>) of unsigned;
2121
2222
**Fix**
@@ -45,7 +45,7 @@ This rule checks for a single space before the **of** keyword.
4545

4646
.. code-block:: vhdl
4747
48-
type t_u_array_unconstrained is array (natural range <>) of unsigned;
48+
type t_u_array_unconstrained is array(natural range <>) of unsigned;
4949
5050
unbounded_array_definition_102
5151
##############################
@@ -66,7 +66,7 @@ This rule checks for a single space after the **of** keyword.
6666

6767
.. code-block:: vhdl
6868
69-
type t_u_array_unconstrained is array (natural range <>) of unsigned;
69+
type t_u_array_unconstrained is array(natural range <>) of unsigned;
7070
7171
unbounded_array_definition_500
7272
##############################

tests/constrained_array_definition/rule_100_test_input.fixed.vhd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ architecture RTL of FIFO is
33

44
type my_array is array(natural range 0 to 7) of std_logic_vector(7 downto 0);
55
type my_array is array(natural range 0 to 7) of std_logic_vector(7 downto 0);
6-
type my_array is array(natural range 0 to 7) of std_logic_vector(7 downto 0);
76

87
type my_array is array(0 to 7) of std_logic_vector(7 downto 0);
98
type my_array is array(0 to 7) of std_logic_vector(7 downto 0);
10-
type my_array is array(0 to 7) of std_logic_vector(7 downto 0);
119

1210
begin
1311

tests/constrained_array_definition/rule_100_test_input.vhd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11

22
architecture RTL of FIFO is
33

4-
type my_array is array (natural range 0 to 7) of std_logic_vector(7 downto 0);
5-
type my_array is array (natural range 0 to 7) of std_logic_vector(7 downto 0);
4+
type my_array is array(natural range 0 to 7) of std_logic_vector(7 downto 0);
65
type my_array is array(natural range 0 to 7) of std_logic_vector(7 downto 0);
76

8-
type my_array is array (0 to 7) of std_logic_vector(7 downto 0);
9-
type my_array is array (0 to 7) of std_logic_vector(7 downto 0);
7+
type my_array is array(0 to 7) of std_logic_vector(7 downto 0);
108
type my_array is array(0 to 7) of std_logic_vector(7 downto 0);
119

1210
begin

tests/constrained_array_definition/rule_101_test_input.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
architecture RTL of FIFO is
33

4-
type my_array is array(natural range 0 to 7) of std_logic_vector(7 downto 0);
4+
type my_array is array(natural range 0 to 7) of std_logic_vector(7 downto 0);
55
type my_array is array(natural range 0 to 7) of std_logic_vector(7 downto 0);
66

7-
type my_array is array(0 to 7) of std_logic_vector(7 downto 0);
7+
type my_array is array(0 to 7) of std_logic_vector(7 downto 0);
88
type my_array is array(0 to 7) of std_logic_vector(7 downto 0);
99

1010
begin

tests/constrained_array_definition/rule_102_test_input.fixed.vhd

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/constrained_array_definition/rule_102_test_input.vhd

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/constrained_array_definition/test_rule_100.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_rule_100(self):
3030
self.assertEqual(oRule.name, "constrained_array_definition")
3131
self.assertEqual(oRule.identifier, "100")
3232

33-
lExpected = [4, 5, 8, 9]
33+
lExpected = [4, 7]
3434

3535
oRule.analyze(self.oFile)
3636
self.assertEqual(lExpected, utils.extract_violation_lines_from_violation_object(oRule.violations))

0 commit comments

Comments
 (0)