Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/constant_rules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This rule checks the indent of a constant declaration.
architecture RTL of FIFO is
constant size : integer := 1;
constant width : integer := 32
constant width : integer := 32;
**Fix**

Expand All @@ -26,7 +26,7 @@ This rule checks the indent of a constant declaration.
architecture RTL of FIFO is
constant size : integer := 1;
constant width : integer := 32
constant width : integer := 32;
constant_002
############
Expand Down Expand Up @@ -126,7 +126,7 @@ constant_007

|phase_1| |error| |structure|

This rule checks the **:=** is on the same line at the **constant** keyword.
This rule checks the **:=** is on the same line as the **constant** keyword.

**Violation**

Expand All @@ -144,7 +144,7 @@ This rule checks the **:=** is on the same line at the **constant** keyword.
constant size : integer :=
1;
constant width : integer :=
32
32;
constant_010
############
Expand Down
4 changes: 2 additions & 2 deletions vsg/rules/constant/rule_001.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class rule_001(token_indent):
architecture RTL of FIFO is
constant size : integer := 1;
constant width : integer := 32
constant width : integer := 32;
**Fix**
Expand All @@ -27,7 +27,7 @@ class rule_001(token_indent):
architecture RTL of FIFO is
constant size : integer := 1;
constant width : integer := 32
constant width : integer := 32;
"""

def __init__(self):
Expand Down
4 changes: 2 additions & 2 deletions vsg/rules/constant/rule_007.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class rule_007(Rule):
"""
This rule checks the **:=** is on the same line at the **constant** keyword.
This rule checks the **:=** is on the same line as the **constant** keyword.
**Violation**
Expand All @@ -27,7 +27,7 @@ class rule_007(Rule):
constant size : integer :=
1;
constant width : integer :=
32
32;
"""

def __init__(self):
Expand Down
Loading