From 69233c8e144ad63abcec04e8fda27df7ef34cd3f Mon Sep 17 00:00:00 2001 From: Jeremiah Leary Date: Thu, 21 Jan 2021 19:40:08 -0600 Subject: [PATCH] Updates for issue #504: Updating documentation for all rules which will use the new previous line rule. --- docs/architecture_rules.rst | 12 ++++++------ docs/block_rules.rst | 12 ++++++------ docs/case_rules.rst | 9 ++++----- docs/component_rules.rst | 4 ++-- docs/context_rules.rst | 9 ++++----- docs/entity_rules.rst | 4 ++-- docs/function_rules.rst | 4 ++-- docs/generate_rules.rst | 4 ++-- docs/if_rules.rst | 10 ++++------ docs/instantiation_rules.rst | 6 ++---- docs/package_body_rules.rst | 8 ++++---- docs/package_rules.rst | 8 ++++---- docs/type_rules.rst | 4 ++-- 13 files changed, 44 insertions(+), 50 deletions(-) diff --git a/docs/architecture_rules.rst b/docs/architecture_rules.rst index e90201de..c83cca76 100644 --- a/docs/architecture_rules.rst +++ b/docs/architecture_rules.rst @@ -33,9 +33,9 @@ This rule has been split into the following rules: architecture_003 ################ -This rule check for a blank line above the **architecture** declaration. +This rule check for a blank lines or comments above the **architecture** declaration. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** @@ -296,9 +296,9 @@ Refer to the section `Configuring Blank Lines `_ f architecture_016 ################ -This rule checks for a blank line above the **begin** keyword. +This rule checks for a blank lines or comments above the **begin** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** @@ -345,9 +345,9 @@ Refer to the section `Configuring Blank Lines `_ f architecture_018 ################ -This rule checks for a blank line above the **end architecture** declaration. +This rule checks for blank lines or comments above the **end architecture** declaration. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/block_rules.rst b/docs/block_rules.rst index 31a3a28d..4a0d1937 100644 --- a/docs/block_rules.rst +++ b/docs/block_rules.rst @@ -180,9 +180,9 @@ Vertical Spacing Rules (200 - 299) block_200 ^^^^^^^^^ -This rule checks for a blank line above the block label. +This rule checks for blank lines or comments above the block label. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** @@ -224,9 +224,9 @@ Refer to the section `Configuring Blank Lines `_ f block_202 ^^^^^^^^^ -This rule checks for a blank line above the **begin** keyword. +This rule checks for blank lines or comments above the **begin** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** @@ -272,9 +272,9 @@ Refer to the section `Configuring Blank Lines `_ f block_204 ^^^^^^^^^ -This rule checks for a blank line above the **end** keyword. +This rule checks for blank lines or comments above the **end** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/case_rules.rst b/docs/case_rules.rst index aff5b57c..188ac47a 100644 --- a/docs/case_rules.rst +++ b/docs/case_rules.rst @@ -132,10 +132,9 @@ This rule checks for a single space between the **end** and **case** keywords. case_007 ######## -This rule checks for a blank line before the **case** keyword. -Comments are allowed before the **case** keyword. +This rule checks for blank lines or comments before the **case** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** @@ -185,9 +184,9 @@ Refer to the section `Configuring Blank Lines `_ f case_009 ######## -This rule checks for a blank line above the **end** keyword. +This rule checks for blank lines or comments above the **end** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/component_rules.rst b/docs/component_rules.rst index b73cd460..54ce5162 100644 --- a/docs/component_rules.rst +++ b/docs/component_rules.rst @@ -49,9 +49,9 @@ This rule checks for a single space after the **component** keyword. component_003 ############# -This rule checks for a blank line above the **component** declaration. +This rule checks for blank lines or comments above the **component** declaration. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/context_rules.rst b/docs/context_rules.rst index 988b3203..baf4a35e 100644 --- a/docs/context_rules.rst +++ b/docs/context_rules.rst @@ -44,10 +44,9 @@ This rule checks for a single space between the **context** keyword and the cont context_003 ########### -This rule checks for a blank line above the **context** keyword. -Comment are allowed. +This rule checks for blank lines or comments above the **context** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** @@ -484,9 +483,9 @@ Refer to the section `Configuring Blank Lines `_ f context_024 ########### -This rule adds a blank line above the **end** keyword. +This rule checks for blank lines or comments above the **end** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/entity_rules.rst b/docs/entity_rules.rst index b8854dc8..a029981f 100644 --- a/docs/entity_rules.rst +++ b/docs/entity_rules.rst @@ -43,9 +43,9 @@ This rule checks for a single space after the **entity** keyword. entity_003 ########## -This rule checks for a blank line above the entity keyword. +This rule checks for a blank lines or comments above the entity keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to the section `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/function_rules.rst b/docs/function_rules.rst index 7a78f876..d18f31cf 100644 --- a/docs/function_rules.rst +++ b/docs/function_rules.rst @@ -112,9 +112,9 @@ Refer to the section `Configuring Uppercase and Lowercase Rules `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/generate_rules.rst b/docs/generate_rules.rst index 5e9cd6e8..eb945975 100644 --- a/docs/generate_rules.rst +++ b/docs/generate_rules.rst @@ -70,9 +70,9 @@ Refer to the section `Configuring Blank Lines `_ f generate_004 ############ -This rule checks for a blank line before the **generate** keyword. +This rule checks for blank lines or comments before the **generate** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/if_rules.rst b/docs/if_rules.rst index 402db0e8..d96cfc41 100644 --- a/docs/if_rules.rst +++ b/docs/if_rules.rst @@ -534,7 +534,7 @@ if_030 This rule checks for at least a single blank line after the **end if**. In the case of nested **if** statements, the rule will be enfoced on the last **end if**. - + Refer to the section `Configuring Blank Lines `_ for options regarding comments. **Violation** @@ -559,12 +559,10 @@ Refer to the section `Configuring Blank Lines `_ f if_031 ###### -This rule checks for at least a single blank line before the **if**, unless there is a comment. +This rule checks for blank lines or comments before the **if** keyword. In the case of nested **if** statements, the rule will be enfoced on the first **if**. - -.. NOTE:: Comments are allowed above the instantiation. - -Refer to the section `Configuring Blank Lines `_ for options regarding comments. + +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/instantiation_rules.rst b/docs/instantiation_rules.rst index 6fb92e0d..b19f8ee5 100644 --- a/docs/instantiation_rules.rst +++ b/docs/instantiation_rules.rst @@ -65,11 +65,9 @@ This rule checks for a single space before the colon. instantiation_004 ################# -This rule checks for a blank line above the instantiation. +This rule checks for blank lines or comments above the instantiation. -.. NOTE:: Comments are allowed above the instantiation. - -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/package_body_rules.rst b/docs/package_body_rules.rst index a9afa93e..d7ffd131 100644 --- a/docs/package_body_rules.rst +++ b/docs/package_body_rules.rst @@ -103,9 +103,9 @@ Vertical Spacing Rules package_body_200 ^^^^^^^^^^^^^^^^ -This rule checks for a blank line above the **package** keyword. +This rule checks for blank lines or comments above the **package** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** @@ -147,9 +147,9 @@ Refer to the section `Configuring Blank Lines `_ f package_body_202 ^^^^^^^^^^^^^^^^ -This rule checks for a blank line above the **end package** keyword. +This rule checks for blank lines or comments above the **end package** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/package_rules.rst b/docs/package_rules.rst index 2ce5ee5a..94ae9980 100644 --- a/docs/package_rules.rst +++ b/docs/package_rules.rst @@ -42,9 +42,9 @@ This rule checks for a single space between **package** and **is** keywords. package_003 ########### -This rule checks for a blank line above the **package** keyword. +This rule checks for blank lines or comments above the **package** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** @@ -216,9 +216,9 @@ Refer to the section `Configuring Blank Lines `_ f package_012 ########### -This rule checks for a blank line above the **end package** keyword. +This rule checks for blank lines or comments above the **end package** keyword. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation** diff --git a/docs/type_rules.rst b/docs/type_rules.rst index aeb155ee..6e1cbd6e 100644 --- a/docs/type_rules.rst +++ b/docs/type_rules.rst @@ -183,9 +183,9 @@ This rule checks for an enumerate type after the open parenthesis on multiline e type_010 ######## -This rule checks for a blank line above the **type** declaration. +This rule checks for blank lines or comments above the **type** declaration. -Refer to the section `Configuring Blank Lines `_ for options regarding comments. +Refer to `Configuring Previous Line Rules `_ for options. **Violation**