Updating documentation per review.

This commit is contained in:
Jeremiah Leary 2021-01-19 19:55:47 -06:00
parent 4079683827
commit dacece1ce2
1 changed files with 41 additions and 40 deletions

View File

@ -6,19 +6,19 @@ These rules allow enforcement of comments and blank lines.
There are several options to these rules, which can be selected by using the :code:`method` option:
+---------------------+--------------------------------------------------+
| Method | Description |
+=====================+==================================================+
| require_blank_line | Requires a blank line on the line above. |
+---------------------+--------------------------------------------------+
| no_code | Either a blank or comment on the line above. |
+---------------------+--------------------------------------------------+
| allow_comment | Either a blank or comment on line above, with a |
| | blank line above the comment. |
+---------------------+--------------------------------------------------+
| require_comment | Requires a comment on the line above, with a |
| | blank line above the comment. |
+---------------------+--------------------------------------------------+
+---------------------+----------------------------------------------------------+
| Method | Description |
+=====================+==========================================================+
| require_blank_line | Requires a blank line on the line above. |
+---------------------+----------------------------------------------------------+
| no_code | Either a blank line; or comment(s) on the line(s) above. |
+---------------------+----------------------------------------------------------+
| allow_comment | Either a blank line; or comment(s) on the line(s) above |
| | and a blank line above the comment(s). |
+---------------------+----------------------------------------------------------+
| require_comment | Comment(s) required on the line(s) above and a |
| | blank line above the comment(s). |
+---------------------+----------------------------------------------------------+
This is an example of how to configure these options.
@ -53,6 +53,13 @@ The following code would pass with this option:
Example: no_code
################
The following code would fail with this option:
.. code-block:: vhdl
library fifo_dsn;
entity fifo is
The following code would pass with this option:
.. code-block:: vhdl
@ -70,16 +77,20 @@ The following code would pass with this option:
-- Comment
entity fifo is
The following code would fail with this option:
.. code-block:: vhdl
library fifo_dsn;
entity fifo is
Example: allow_comment
######################
The following code would fail with this option:
.. code-block:: vhdl
library fifo_dsn;
entity fifo is
library fifo_dsn;
-- Comment
entity fifo is
The following code would pass with this option:
.. code-block:: vhdl
@ -98,29 +109,9 @@ The following code would pass with this option:
-- Comment
entity fifo is
The following code would fail with this option:
.. code-block:: vhdl
library fifo_dsn;
entity fifo is
library fifo_dsn;
-- Comment
entity fifo is
Example: require_comment
########################
The following code would pass these options:
.. code-block:: vhdl
library fifo_dsn;
-- Comment
entity fifo is
The following code would fail these options:
.. code-block:: vhdl
@ -131,3 +122,13 @@ The following code would fail these options:
library fifo_dsn;
-- Comment
entity fifo is
The following code would pass these options:
.. code-block:: vhdl
library fifo_dsn;
-- Comment
entity fifo is