Skip to content

Commit e22edf0

Browse files
committed
Issue#1490: Added docs for whitespace rules 102 and 103.
1 parent 84f62f3 commit e22edf0

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

docs/configuring_whitespace_rules.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,5 @@ Rules Enforcing Whitespace
283283
* `variable_assignment_002 <variable_assignment_rules.html#variable-assignment-002>`_
284284
* `variable_assignment_003 <variable_assignment_rules.html#variable-assignment-003>`_
285285
* `whitespace_007 <whitespace_rules.html#whitespace-007>`_
286+
* `whitespace_102 <whitespace_rules.html#whitespace-102>`_
287+
* `whitespace_103 <whitespace_rules.html#whitespace-103>`_

docs/rule_groups/whitespace_rule_group.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,5 @@ Rules Enforcing Whitespace Rule Group
192192
* `whitespace_013 <../whitespace_rules.html#whitespace-013>`_
193193
* `whitespace_100 <../whitespace_rules.html#whitespace-100>`_
194194
* `whitespace_101 <../whitespace_rules.html#whitespace-101>`_
195+
* `whitespace_102 <../whitespace_rules.html#whitespace-102>`_
196+
* `whitespace_103 <../whitespace_rules.html#whitespace-103>`_

docs/whitespace_rules.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,52 @@ This rule checks for at least a single space before and after logical operators.
290290
if (a = '1') sll (b = '0')
291291
if (a = '0') rol (b = '1')
292292
293+
whitespace_102
294+
##############
295+
296+
|phase_2| |error| |whitespace|
297+
298+
This rule checks for a single space before direction keywords.
299+
300+
|configuring_whitespace_rules_link|
301+
302+
**Violation**
303+
304+
.. code-block:: vhdl
305+
306+
x <= y(7 downto 0);
307+
x <= y(0 to 7);
308+
309+
**Fix**
310+
311+
.. code-block:: vhdl
312+
313+
x <= y(7 downto 0);
314+
x <= y(0 to 7);
315+
316+
whitespace_103
317+
##############
318+
319+
|phase_2| |error| |whitespace|
320+
321+
This rule checks for a single space after direction keywords.
322+
323+
|configuring_whitespace_rules_link|
324+
325+
**Violation**
326+
327+
.. code-block:: vhdl
328+
329+
x <= y(7 downto 0);
330+
x <= y(0 to 7);
331+
332+
**Fix**
333+
334+
.. code-block:: vhdl
335+
336+
x <= y(7 downto 0);
337+
x <= y(0 to 7);
338+
293339
whitespace_200
294340
##############
295341

0 commit comments

Comments
 (0)