Fixing linking for library rules.
This commit is contained in:
parent
ad87ea65ee
commit
f663ccfec8
|
|
@ -11,11 +11,11 @@ There are several options to these rules:
|
|||
+----------------------+---------+---------+---------------------------------------------------------+
|
||||
| Method | Type | Default | Description |
|
||||
+======================+=========+=========+=========================================================+
|
||||
| align_left | string | "yes" | "yes" = New lines will be aligned left. |
|
||||
| align_left | string | "yes" | "yes" = New lines will be aligned left. |
|
||||
| | | | "no" = Align to right of assignment operator. |
|
||||
+----------------------+---------+---------+---------------------------------------------------------+
|
||||
| align_paren | string | "no" | "yes" = Use open parenthesis for alignment. |
|
||||
| | | | "no" = Do not use open parenthesis for alignment. |
|
||||
| align_paren | string | "no" | "yes" = Use open parenthesis for alignment. |
|
||||
| | | | "no" = Do not use open parenthesis for alignment. |
|
||||
+----------------------+---------+---------+---------------------------------------------------------+
|
||||
|
||||
This is an example of how to configure the option.
|
||||
|
|
@ -89,7 +89,7 @@ The following code would pass with this option:
|
|||
);
|
||||
|
||||
Example: align_left "no", align_paren "no"
|
||||
############################################
|
||||
##########################################
|
||||
|
||||
The following code would fail with this option:
|
||||
|
||||
|
|
@ -124,7 +124,7 @@ The following code would pass with this option:
|
|||
);
|
||||
|
||||
Example: align_left "yes", align_paren "yes"
|
||||
##########################################
|
||||
############################################
|
||||
|
||||
The following code would fail with this option:
|
||||
|
||||
|
|
|
|||
|
|
@ -105,6 +105,8 @@ Here are a list of attributes that can be altered for each rule:
|
|||
| fixable | Boolean | If set to False, the violation will not be fixed |
|
||||
+-------------+---------+--------------------------------------------------+
|
||||
|
||||
.. _reporting-single-rule-configuration:
|
||||
|
||||
Reporting Single Rule Configuration
|
||||
-----------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -50,12 +50,12 @@ library_003
|
|||
|
||||
|phase_3| |error| |blank_line|
|
||||
|
||||
This rule checks for blank lines or comments above the entity keyword.
|
||||
This rule checks for blank lines or comments above the **library** keyword.
|
||||
|
||||
|configuring_previous_line_rules_link|
|
||||
|
||||
There is an additional **allow_library_clause** option which can be set.
|
||||
|reporting_single_rule_configuration_link|
|
||||
Refer to section :ref:`reporting-single-rule-configuration` for details on finding configuration options for individual rules.
|
||||
|
||||
allow_library_clause
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@ lTokens.append(token.library_clause.keyword)
|
|||
|
||||
class rule_003(previous_line):
|
||||
'''
|
||||
This rule checks for blank lines or comments above the entity keyword.
|
||||
This rule checks for blank lines or comments above the **library** keyword.
|
||||
|
||||
|configuring_previous_line_rules_link|
|
||||
|
||||
There is an additional **allow_library_clause** option which can be set.
|
||||
|reporting_single_rule_configuration_link|
|
||||
Refer to section :ref:`reporting-single-rule-configuration` for details on finding configuration options for individual rules.
|
||||
|
||||
allow_library_clause
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
Loading…
Reference in New Issue