Commit Graph

2 Commits

Author SHA1 Message Date
Jeremiah Leary 99dfc6a73b
Updates for issue #742: (#754)
* Updates for issue #742:

Adjusting indenting for comments near use_clauses and case generates.

  1)  Added rule case_generate_alternative_300
  2)  Changed indenting of comments after use_clauses

* Removing trailing whitespace.

* Updating comment indent logic to look forward.

  1)  Updated set_token_indent
  2)  Updated comment_010 tests
  3)  Updated block_comment tests

* Updating code tags logic to properly apply tags:

  1)  Off code tags applied to the comment token
  2)  On code tags applied after the comment token
  3)  Next line code tag no change

* Addressing Codacy issues.

* Refactoring to remove number of parameters passed to functions.

* Refactoring to improve readability.
2022-04-22 19:21:07 -05:00
Jeremiah Leary a0709483e0
Updates for issue #542: (#734)
* Updates for issue #542:

Rule comment_010 was firing after block_comment rules were ran:

  1)  Updated indent logic to take block comments into consideration
  2)  Added attributes to comment class to indicate if it is a block comment
  3)  Updated tests
  4)  Simplified extractor
  5)  Added method to token_map

* Refactoring functions to reduce duplication and complexity.

* Removing trailing whitespace.

* Removing excess blank lines.

* Refactoring to remove identical code.

* Refactoring to reduce complexity.

* Refactoring to reduction complexity.

* Refactoring to improve readability.

* Reverting to previous utils.py due to inadvertant commit.

* Refactoring block_comment_002 to reduce complexity and improve readability.

* Refactored block_comment_002 to reduce complexity.

* Refactoring block_comment_002 to reduce complexity.

* Refactoring block_comment_002 to improve readability.

* Refactoring to improve readability.

* Moving _analyze from block_comment_002 and block_comment_003 into base block_rule.

* Minor formatting updates.

* Updated base rule to ignore leading and trailing vsg code tags.

* Forcing tags of vsg_on to be applied on the next token.

* Refactoring methods to make them more readable.
2022-02-20 08:29:41 -06:00