Commit Graph

55 Commits

Author SHA1 Message Date
Jeremiah Leary f8f5f77c58
Updates for issue #651 (#662)
* Updates for issue #651

Initial attempt at adding rule groups.

  1)  Updated documentation
  2)  Added indent group
  3)  Added tests

* Addressing CodeClimate issues.

* Additional code climate updates.

* Renaming depricated to deprecated.

Adding tests to improve code coverage.

* Adding length group and updating documentation.

* Adding indent labels to rule documentation.

* Adding blank_line group.

* Minor documentation update.

* Adding more rules to the blank_line group.

* Adding blank_line label to blank line rules in documentation.

* Adding whitespace rule group

* Adding case group.

* Adding structure rule group:

  1)  Addings structure rule group object
  2)  Updated base rules which should utilize the rule group

* Adding more base rules to the whitespace rule group.

* Adding more base rules to the case rule group.

* Adding naming rule group:

  1)  Added naming rule group
  2)  Assigned base rules to the naming rule group

* Adding alignment rule group:

  1)  Added alignment rule group
  2)  Added base rules to alignment rule group

* Assigning more rules to rule groups.

* Adding last rule to a rule group.
Fixing error introduced into whitespace_001

* Assigning sub groups to architecture rules.

* Updating after rules documentation to add rule group.

* Adding rule group to assert rule documentation

* Updating attribute_declaration rules rule group.

* Adding program to generate rule documentation:

  1)  Added bin/vsg_rule_doc_gen
  2)  Added tests
  3)  Copied existing documentation into rule doc strings for the following rule classes:
      a)  after
      b)  architecture
      c)  assert_statement
      d)  attribute
      e)  attribute_declaration
      f)  attribute_specification
      g)  block
  4)  Partially update deprecated rules to they could be processed

* Converting block_comment documentation.

* Converting case_rule documentation.

* Converting comment rule documentation.

* Converting component documentation to doc strings.

* Converting concurrent rule documentation to doc strings.

* Convert constant docs to doc strings.

* Converting context rule doc to doc strings.

* Fixing failing tests.

* Converting context reference doc to doc strings.

* Converting entity doc rules to doc strings.

* Converting entity_specification rule doc to doc strings.

* Converting exit_statement rule doc to doc strings.

* Converting file_statement rule docs into doc strings.

* Converting for_loop rule doc to doc strings.

* Converting function rule doc to doc strings.

* Converting generate rules doc to doc strings.

* Converting generic rule doc to doc strings.

* Converting generic_map rule doc to doc strings.

* Converting if rule docs to doc strings.

* Converting instantiation rule doc to doc strings.

* Converting length rule doc to doc strings.

* Converting library rule doc to doc strings.

* Convert loop_statement rule doc to doc strings.

* Converting package rule docs to doc strings.

* Converting package_body rule doc to doc strings.

* Converting port rule doc to doc strings.

* Converting port_map rules doc to doc strings.

* Converting procedure rule doc to doc strings.

* Converting procedure_call rule doc to doc strings.

* Converting process rule doc to doc strings.

* Converting range rule doc to doc strings.

* Converting report_statement rule doc to doc strings.

* Converting sequential rule doc to doc strings.

* Converting signal rule doc to doc strings.

* Converting source_file rule doc to doc strings.

* Converting subprogram_body rule doc to doc strings.

* Converting subtype rule doc to doc strings.

* Converting type rule doc to doc strings.

* Converting variable rule doc to doc strings.

* Converting variable_assignment rule doc to doc strings.

* Converting wait rule doc to doc strings.

* Converting when rule doc to doc strings.

* Converting while_loop rule doc to doc strings.

* Converting whitespace rule doc to doc strings.

* Converting with rule doc to doc strings.

* Fixing tests due to further refinements of rule groups.

* Removing generated doc files after tests.

* Updating documentation to include rule group information.

* Removing trailing whitespace.

* Minor formatting fixes for documentation.

* Fixing issues for codacy.

* Skipping currently failing tests so I can address coding issues.

* Removing unused libraries.

* Minor formatting issues resolved.

* WIP:  Setting desired test input.

NOTE:  tests fail as I need to implement fixes.

* Improving testing of rule groups.

* Enhancing test so it will pass.

* Updates for codacy.
2022-01-01 17:46:43 -06:00
Jeremiah Leary 6e58ab4a89 Attempting to fix ReadTheDocs build. 2021-10-28 08:00:34 -05:00
Jeremiah Leary 3610020b78 Attempting to fix ReadTheDocs build. 2021-10-28 07:32:04 -05:00
Jeremiah Leary c99b30d7c5 Attempting to fix ReadTheDocs build. 2021-10-28 07:27:28 -05:00
Jeremiah Leary 4f652b3c4d Minor documentation updates. 2021-10-06 15:52:38 -05:00
Jeremiah Leary 1b755943c1 Updates for issue #609
Adding rule to align assignment operator within function and procedures.

  1)  Added documentation
  2)  Added test
  3)  Added rule subprogram_body_400
2021-09-25 21:37:40 -05:00
Jeremiah Leary b225481de0 Updates for issue #572
Adding rules for exit_statements and report_statements.

  1)  Updated documentation
  2)  Added tests
  3)  Added rules
2021-05-01 17:15:36 -05:00
Jeremiah Leary be10d675a7 Adding report_statement rules to documentation. 2021-05-01 16:20:22 -05:00
Jeremiah Leary 04a4f6116f Updates for issue #565
The loop_statement loop keyword was not being indented correctly.

  1)  Updated tests to expose the issue
  2)  Added documentation for new rule
  3)  Added new indent rule
  4)  Fixed indent configuration to ensure proper indenting of loops
2021-04-28 18:15:59 -05:00
Jeremiah Leary 176875b921 Updates for issue #556
Adding rules for report_statement structures.

  1)  Added documentation
  2)  Added tests
  3)  Added rules
2021-04-25 13:26:23 -05:00
Jeremiah Leary 5cd7afd6f4 Updates for issue #373
Adding rules to analyze block comments.

  1)  Added documentation
  2)  Added tests
  3)  Added rules
      a) block_comment_001
      b) block_comment_002
      c) block_comment_003
  4)  Added new extract method
      a) get_consecutive_lines_starting_with_token
2020-12-19 19:48:40 -06:00
Jeremiah Leary 536abbedd7 Updates for issue #401:
Expanding rules for attributes:

  1)  Removed current attribute rules
  2)  Added rules for:
      a) attribute_declaration
      b) attribute_specification
      c) entity_specification
  3)  Added documentation
  4)  Added tests
  5)  Refactored base rules to allow for lists of token types
      a) single_space_after_token
      b) single_space_before_token
2020-12-18 14:13:40 -06:00
Jeremiah Leary b0823a9366 Updated for issue #490:
Adding rules for procedure calls.

  1)  Added documentation
  2)  Added tests
  3)  Added rules
2020-12-15 10:57:36 -06:00
Jeremiah Leary 7a25ded9ef Updates for issues #457 and #444:
Adding block rules.

  1)  Added documentation
  2)  Added tests
  3)  Added initial block rules
2020-12-10 13:48:21 -06:00
Jeremiah Leary 089ba52904 Updates for issue #378
Adding rules for package body.

  1)  Added 22 package_body rules
  2)  Added documentation
  3)  Added tests
2020-12-09 16:51:23 -06:00
Jeremiah Leary 610c21d649 Updates for issue #451
1)  Adding links in documentation to which rules use prefix and suffix rules.
  2)  Fixing documentation build issues
2020-12-05 16:02:23 -06:00
Jeremiah Leary 9bc755bd1b Refactoring wait rule for new parser. 2020-10-18 18:00:10 -05:00
Jeremiah Leary 07f22060bf Adding context reference rules to documentation. 2020-08-03 18:40:43 -05:00
Jeremiah Leary 1b7fe624f0 Updates for issue #393:
Adding another rule:

  1)  Added context_011
  2)  Added another base rule
  3)  Updated tests
  4)  Added context rule documentation to rules.rst
2020-07-24 06:23:37 -05:00
Jeremiah C Leary fa3e67d598 Updates for issue #276:
Added two rules to handle setting the case for range keywords **to** and **downto**.

  1)  Added documentation
  2)  Added tests
  3)  Added rules range_001 and range_002
2019-11-29 08:38:30 -06:00
Jeremiah C Leary 144473f164 Updates for issue #271
Adding rule length_001 to check for line length violations:

  1)  Added documentation
  2)  Added tests
  3)  Added rule length_001
2019-11-10 14:53:48 -06:00
Jeremiah C Leary 952e4771b9 Update for issue #196:
Added fix logic for rule after_001.
  1)  Added configurable attributes magnitude and units
  2)  Updated documentation
  3)  Updated tests
  4)  Updated clock process classification to detect clock processes without resets
2019-06-28 18:43:40 -05:00
Jeremiah C Leary 0c87b5bb70 Updates for issue #224
Switched general_001 to signal_014:

  1)  Removed rule general_001
      a)  Removed documentation
      b)  Removed tests
      c)  Removed rule
  2)  Added signal_014 to validate signal names are consistently cased
      a)  Added documentation
      b)  Added tests
      c)  Added rule signal_014
      d)  Added extract_signal_names procedure in utils.py
2019-03-30 20:11:13 -05:00
Jeremiah C Leary c754653534 Updates for issue #224
Added documentation for new general_001 rule to check capitalization.
Fixed renaming of extract_keywords to extract_non_keywords.
2019-03-27 21:40:49 -05:00
Jeremiah C Leary 0cfb0f0e5c Updates for issue #215:
Moving the else keyword in a when statement.

  1)  Added documentation for the new rule
  2)  Added tests
  3)  Added rule to move the else keyword if it is at the beginning of a line.
2019-03-09 12:56:59 -06:00
Jeremiah C Leary 317c728d6e Adding wait_001 rule to handle indenting of wait statements.
1)  Added tests
  2)  Added docmentation
  3)  Added rule
2018-12-01 11:03:11 -06:00
Jeremiah C Leary 937ff79e13 Updates for issue #168
1)  Added handling of files being passed that do not exist
  2)  Updated documentation
  3)  Updated tests
2018-09-22 09:07:25 -05:00
Jeremiah C Leary a0033246c7 Updates for issue #129
1)  Added classification of procedures
   2)  Added procedure rules 001, 002, 003, and 004.
   3)  Added tests
   4)  Added documentation
2017-12-27 11:56:25 -06:00
Jeremiah C Leary 1145cda18f Updates for issue #124
1)  Added file statement attributes to line.py
  2)  Added file statement classifier
  3)  Added file statement rules
  4)  Added tests
  5)  Added documentation
2017-12-25 11:24:06 -06:00
Jeremiah C Leary 03636fe358 Updates for issue #123
1)  Added attribute attributes to line.py
  2)  Added attribute classifier
  3)  Added attribute rules
  4)  Added tests
  5)  Added documentation
2017-12-25 09:50:45 -06:00
Jeremiah C Leary 9e44f00950 Refactored sequential rules and added documentation. 2017-12-23 10:38:04 -06:00
Jeremiah C Leary d412fc1eec Refactored signal rules and added documentation. 2017-12-23 10:11:55 -06:00
Jeremiah C Leary b08f8d6560 Refactored variable rules and added documentation. 2017-12-23 08:42:26 -06:00
Jeremiah C Leary 26efe94052 Refactored variable_assignment rules and added documentation. 2017-12-22 16:17:37 -06:00
Jeremiah C Leary ba5f251105 Refactoring port rules and adding documentation. 2017-12-22 13:17:47 -06:00
Jeremiah C Leary 3ff13b420e Refactored package rules and added documentation. 2017-12-22 12:18:25 -06:00
Jeremiah C Leary 40ca454f2f Updates for issue #120
1)  Added type_012
  2)  Fixed type_008, which was causing issue
  3)  Added tests
  4)  Added documentation
2017-12-21 18:15:58 -06:00
Jeremiah C Leary 341b12d5c6 Refactored generate rules and added documentation. 2017-12-17 08:42:33 -06:00
Jeremiah C Leary 53e193cb7e Refactoring function rules and adding documentation. 2017-12-16 16:55:57 -06:00
Jeremiah C Leary 98c542bae5 Refactored for_loop rules and added documentation. 2017-12-16 16:11:40 -06:00
Jeremiah C Leary 790ca38109 Updated user documentation. 2017-12-15 14:23:07 -06:00
Jeremiah C Leary 208c839068 Adding documentation for assert and case rules. 2017-12-14 20:28:18 -06:00
Jeremiah C Leary 071010fb3e Updates for rule #73
1)  Added rule with_001
  2)  Added tests
  3)  Added documentation
2017-12-14 08:42:39 -06:00
Jeremiah C Leary b02506109f Updates for issue #16
1)  Added rule comment_005
  2)  Added documentation
  3)  Added test cases
  4)  Refactored case classification to remove indenting comments above when keywords
      a)  Updated tests
2017-12-13 22:16:07 -06:00
Jeremiah C Leary 9d184f4b6a Updates for issue #113
1)  Added whitespace_008
  2)  Updated tests
  3)  Added documentation
2017-12-10 10:14:07 -06:00
Jeremiah C Leary 4c6a52b123 Adding documentation.
Refactored several rules.
2017-12-10 08:33:17 -06:00
Jeremiah C Leary 026d4fbcb0 Adding documentation for refactored rules. 2017-12-09 07:05:17 -06:00
Jeremiah C Leary a0d5e28482 Updates for issue #47
1)  Fix added for generic_016
  2)  Added documentation
  3)  Enhanced testing
2017-12-08 07:05:54 -06:00
Jeremiah C Leary 1dcbfd87b6 Updates for issue #101
1)  Removed checking of closing parenthesis from process_020.
  2)  Added process_028 to check for alignment of closing parenthesis.
  3)  Added tests
  4)  Added documentation
2017-12-07 06:34:17 -06:00
Jeremiah C Leary 75a783149b Updates for issue #93
1)  Added instantiation_023 and component_019 to remove comments after ports and generics
  2)  Added documentation
  3)  Added tests
2017-12-06 21:48:33 -06:00