Updates for issue #540
Minor updates for configuring prefix and suffix rules.
This commit is contained in:
parent
bd40838f3e
commit
e49d7cc094
|
|
@ -582,7 +582,7 @@ block_600
|
|||
This rule checks for valid suffixes on block labels.
|
||||
The default suffix is *_blk*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
@ -602,7 +602,7 @@ block_601
|
|||
This rule checks for valid prefixes on block labels.
|
||||
The default prefix is *blk_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
Configuring Prefix Suffix Rules
|
||||
-------------------------------
|
||||
Configuring Prefix and Suffix Rules
|
||||
-----------------------------------
|
||||
|
||||
There are several rules that enforce specific prefixes/suffixes in different name identifiers.
|
||||
It is noted in the documentation, what the default prefixes/suffixes are for each such rule.
|
||||
There are several rules that enforce specific prefixes or suffixes in different name identifiers.
|
||||
It is noted in the documentation, what the default prefixes and suffixes are for each such rule.
|
||||
|
||||
All prefix/suffix rules are disabled by default.
|
||||
All prefix and suffix rules are disabled by default.
|
||||
The defaults for each of these rules can be overridden using a configuration.
|
||||
|
||||
.. NOTE:: Some elements have both prefix and suffix rules. Depending on the desired style, either or both can be enabled.
|
||||
|
|
@ -43,11 +43,11 @@ We can use the following configuration to change allowed suffixes:
|
|||
disable: false
|
||||
suffixes: ['_i', '_o']
|
||||
|
||||
Rules enforcing prefixes and suffixes
|
||||
Rules Enforcing Prefixes and Suffixes
|
||||
#####################################
|
||||
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
| Element | Prefix Rule | Suffix Rule |
|
||||
| **Element** | **Prefix Rule** | **Suffix Rule** |
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
| Block Label | `block_601 <block_rules.html#block-601>`_ | `block_600 <block_rules.html#block-600>`_ |
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
|
|
@ -55,13 +55,13 @@ Rules enforcing prefixes and suffixes
|
|||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
| Generate Label | `generate_017 <generate_rules.html#generate-017>`_ | NA |
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
| Generic Name | `generic_020 <generic_rules.html#generic-020>`_ | NA |
|
||||
| Generic Identifier | `generic_020 <generic_rules.html#generic-020>`_ | NA |
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
| Package Identifier | `package_017 <package_rules.html#package-017>`_ | `package_016 <package_rules.html#package-016>`_ |
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
| Package Body Identifier | `package_body_601 <package_body_rules.html#package-body-601>`_ | `package_body_600 <package_body_rules.html#package-body-600>`_ |
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
| Port Name | `port_011 <port_rules.html#port-011>`_ | `port_025 <port_rules.html#port-025>`_ |
|
||||
| Port Identifier | `port_011 <port_rules.html#port-011>`_ | `port_025 <port_rules.html#port-025>`_ |
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
| Process Label | `process_036 <process_rules.html#process-036>`_ | NA |
|
||||
+-------------------------+----------------------------------------------------------------+----------------------------------------------------------------+
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ constant_015
|
|||
This rule checks for valid prefixes on constant identifiers.
|
||||
The default constant prefix is *c\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ generate_017
|
|||
This rule checks for valid prefixes on generate statement labels.
|
||||
The default prefix is *gen\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ generic_020
|
|||
This rule checks for valid prefixes on generic identifiers.
|
||||
The default generic prefix is *g\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -501,7 +501,7 @@ instantiation_600
|
|||
This rule checks for valid suffixes on instantiation labels.
|
||||
The default suffix is *_inst*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
@ -521,7 +521,7 @@ instantiation_601
|
|||
This rule checks for valid prefixes on instantiation labels.
|
||||
The default prefix is *inst_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -419,7 +419,7 @@ package_body_600
|
|||
This rule checks for valid suffixes on package body identifiers.
|
||||
The default package suffix is *_pkg*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
@ -439,7 +439,7 @@ package_body_601
|
|||
This rule checks for valid prefixes on package body identifiers.
|
||||
The default package prefix is *pkg_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ package_016
|
|||
This rule checks for valid suffixes on package identifiers.
|
||||
The default package suffix is *_pkg*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
@ -323,7 +323,7 @@ package_017
|
|||
This rule checks for valid prefixes on package identifiers.
|
||||
The default package prefix is *pkg_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ port_011
|
|||
This rule checks for valid prefixes on port identifiers.
|
||||
The default port prefixes are: *i\_*, *o\_*, *io\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
@ -603,7 +603,7 @@ port_025
|
|||
This rule checks for valid suffixes on port identifiers.
|
||||
The default port suffixes are *_i*, *_o*, *_io*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed suffixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -936,7 +936,7 @@ process_036
|
|||
This rule checks for valid prefixes on process labels.
|
||||
The default prefix is *proc\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ signal_008
|
|||
This rule checks for valid prefixes on signal identifiers.
|
||||
Default signal prefix is *s\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ subtype_004
|
|||
This rule checks for valid prefixes in subtype identifiers.
|
||||
The default new subtype prefix is *st\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ type_015
|
|||
This rule checks for valid prefixes in user defined type identifiers.
|
||||
The default new type prefix is *t\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
s/Configuring Suffix Rules/Configuring Prefix Suffix Rules/g
|
||||
s/Configuring Prefix Rules/Configuring Prefix Suffix Rules/g
|
||||
s/Configuring Prefix Suffix Rules/Configuring Prefix and Suffix Rules/g
|
||||
s/configuring-prefix-suffix-rules/configuring-prefix-and-suffix-rules/g
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ variable_012
|
|||
This rule checks for valid prefixes on variable identifiers.
|
||||
The default variable prefix is *v\_*.
|
||||
|
||||
Refer to the section `Configuring Prefix Suffix Rules <configuring.html#configuring-prefix-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed prefixes.
|
||||
|
||||
**Violation**
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue