Commit Graph

21 Commits

Author SHA1 Message Date
Jukka Hertzog 980b7cfc74
Issue#1228: Added subtype rules to match type rules (#1229)
* Issue#1228: Added rules subtype_005 and subtype_006.

* Issue#1228: Added test for rule subtype_005.

* Issue#1228: Added test for rule subtype_006.

* Issue#1228: Added rules subtype_007 and subtype_008.

* Issue#1228: Added tests for rules subtype_007 and subtype_008.

* Issue#1228: Added rules subtype_009 and subtype_010.

* Issue#1228: Added tests for rules subtype_009 and subtype_010.

* Issue#1228: Added rule subtype_200.

* Issue#1228: Fixed rule subtype_200.
Removed duplicates from lTokens and lAllowTokens.
Updated code example to avoid duplicate definitions.

* Issue#1228: Added tests for rule subtype_200.

* Issue#1228: Corrections/improvements to new rule docstrings.

* Issue#1228: Reworked rule numbers to reflect execution phases.

* Issue#1228: Updated rule documentation.

* Issue#1228: Updated documentation.

* Issue#1228: Updated rule subtype_102 to include resolution functions.

* Issue#1228: Simplified subtype_102 by using whitespace_after_token instead of whitespace_between_token_pairs.

* Issue#1228: Simplified subtype_101 by using whitespace_before_token instead of whitespace_between_token_pairs.

* Issue#1228: Corrected order of init imports for subtypes.

* Issue#1228: Corrected order of init imports for subtypes.
2024-11-09 14:07:20 -06:00
Jeremiah Leary c7de28e77c
Issue#1065: Adding 'require_blank_line_unless_pragma' to blank line rules (#1068)
* Issue#1065:  Adding 'require_blank_line_unless_pragma' to blank line rules.

* Adding blank line rules for pragmas:

  * pragma_400
  * pragma_401
  * pragma_402
  * pragma_403

* Updating pragma documentation.

* Adding error checking on invalid pragma configurations.

* Fixing failing tests.
2023-12-17 16:59:55 -06:00
Jeremiah Leary e1282048bf
Issue 815 (#840)
* Updates for issue #815

Adding disabled rule constant_101

* Adding disabled rule variable_100

* Adding disabled rule signal_100

* Adding disabled rule alias_declaration_103.

* Adding disabled rule file_100.

* Adding disabled rule subtype_100.

* Adding disabled rule type_100.

* Adding rule signal_101.

* Adding rule signal_102.

* Adding more rules to enable correct aligment:

  1)  architecture_401
  2)  constant_200
  3)  signal_200
  4)  type_200

* Updated a couple of rules:

  1)  Added option to architecture_026 to optionally align type is keywords
  2)  Removed duplicate rule architecture_401
2023-12-09 08:03:07 -06:00
Jeremiah Leary 64882762e3
Issue#1009: Updating multiline alignment rules to accept booleans for paramters (#1018)
* Issue#1009:  Updating multiline alignment rules to accept booleans for parameters.

* Adding boolean to yes/no conversions for other rules.

* Converting rule after_002 to use yes/no strings for options.

* Updating base rule align_tokens_in_region_between_tokens_unless_between_tokens to use yes/no.

* Updating base rule align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens to accept yes/no.

* Updating base rule align_tokens_in_region_between_tokens to accept yes/no.

* Updating rule case_generate_statement_400 to accept yes/no.

* Updating rule concurrent_006 to accept yes/no.

* Fixing default value for generate_statement_ends_group in concurrent_006.

* Updating rule concurrent_008 to accept yes/no.

* Updating base rule align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens to support yes/no

* Updating base rule align_tokens_in_region_between_tokens_unless_between_tokens to accept yes/no.

* Setting False options to 'no' in base rule align_tokens_in_region_between_tokens_unless_between_tokens.

* Updating block_comment rules to accept yes/no.

* Updating rule concurrent_400 to accept yes/no.

* Updating rule process_034 to accept yes/no.

* Updating rule process_035 to accept yes/no

* Updating rule process_400 to accept yes/no.

* Updating rule sequential_400 to accept yes/no.

* Updating rule subprogram_body_400 to accept yes/no.

* Updating rule concurrent_007 to accept yes/no.

* Updating rule library_003 to accept yes/no.

* Updating rule signal_012 to accept yes/no

* Updates for codeclimate issues.

* Moving similar alignment helper functions to utils file.

* Codeclimate updates.

* Updating option documentation to current standard.

* Changing default True option to 'yes'

* Updating configuration documentation to current standards.

* Updating configuration documentation to latest standard.

* Updating configuration rules to current standard.

* Replacing occurances of True/False with "yes"/"no"

* Updating configuration documentation to latest standard.

* Fixing documentation tests.
2023-10-22 06:46:42 -05:00
Jeremiah Leary 6b01c4c6d1
#871 (#872): Updating documentation links.
* Issue #830:  Updating documentation links.

* Adding length rule link validation.

* Removing blank line at end of file.

* Fixing typo

* Updating links.

* Added test to check for underscores in links.

* Updating whitespace configuration links.

* Updating blank line links.

* Updating structure links.

* Updating naming rule links.

* Adding alignment configuration links.
2022-11-13 12:02:54 -06:00
JHertz5 0cf42a6ff6
#869 (#870): Corrected broken URL for rule if_030 in Configuring Blank Lines page.
Corrected broken URL for rule if_030 in Configuring Blank Lines page.

Co-authored-by: Jukka Hertzog <jukka.herzog@live.co.uk>
2022-11-13 07:30:50 -06:00
Jeremiah Leary ad87ea65ee Changing links to configuration documentation into ReST substitations.
Re-ordered configuration documentation entries so they are alphabetical.
2022-02-05 15:13:48 -06:00
Jeremiah Leary 65eca4b754
Updates for issue #625 (#696)
* Updates for issue #625

Adding rule to enforce/remove blank lines below => keyword in case statements:

  1)  Added documentation for new rule
  2)  Added tests
  3)  Added rule case_200 to add/remove blank lines below => keyword in case statements.

* Updates for issue #625

Attempting to fix test input so it passes when merged.
2021-12-12 10:08:46 -06:00
Jeremiah Leary 6e58ab4a89 Attempting to fix ReadTheDocs build. 2021-10-28 08:00:34 -05:00
Jeremiah Leary caa57319ea Attempting to fix ReadTheDocs build. 2021-10-28 07:17:26 -05:00
imd 16a6265d52 tidied docs 2021-06-20 15:11:45 +01:00
Jeremiah Leary c902c29c4a Updates for Issue #540
Adding rules for which configurations apply.
2021-03-23 20:20:05 -05:00
Jeremiah Leary f80239371f Updates for issue #504:
Updating rule block_201 to handle optional is and guard condition.

  1)  Added tests
  2)  Added new base rule
  3)  Added new extractors

Updated documentation to add warning about the possibility of conflicting rules.
2021-02-06 09:06:13 -06:00
Jeremiah Leary b0eefd2c30 Updates for issue #504:
Reformatting documentation for blank line above/below rules.
2021-02-04 05:31:03 -06:00
Jeremiah Leary e8859a9074 Updates for issue #504:
Changing option names for previous_line and blank_line rules:

  1)  require_blank changed to require_blank_line
  2)  no_blank changed to no_blank_line
2021-02-03 19:20:29 -06:00
Jeremiah Leary 2fb1fb3622 Updates for issue #504:
Fixing documentation.
2021-01-31 10:46:55 -06:00
Jeremiah Leary be6a672b05 Updates for issue #504:
Scrubbed blank line above and below rules and converted several to blank/no_blank only.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rules
2021-01-30 20:28:22 -06:00
Jeremiah Leary 58b1ad0492 Updates for issue #504:
Changing rules enforcing a blank line below to also allow for removal of line below.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated base rule blank_line_below_line_ending_with_token
2021-01-29 19:43:33 -06:00
Jeremiah Leary cefb96ff10 Updates for issue #504:
Reverting blank line documentation to cover blank lines after rules.
2021-01-21 19:44:45 -06:00
Jeremiah Leary 1d25237282 Updates for issue #504
Adding option for blank line above rules to check for a blank line above comments.

  1)  Updated tests
  2)  Updated base rule and extractors
  3)  Updated documentation
2021-01-13 08:07:16 -06:00
Jeremiah Leary fad6f180b6 Updates to address additional style tests:
1)  Updated blank line above/below rules to default to not allow comments
      a)  Set several tests which already allowed comments to allow comments
      b)  Updated documentation
      c)  Added documentation for configuring blank line rules
  2)  Fixed generate_011
      a)  Now handles all three types of generates
      b)  Handles nested generates
2020-11-21 17:00:16 -06:00