* Updates for issue #761
Fixing issue with rule block_007 not honoring nested blocks with respect to labels.
1) Updated tests to expose the issue
2) Updated extractor to honor nested constructs
* Refactoring to improve readability.
* Removing trailing whitespace.
* Removing unused variable.
* 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.
* Updates for issue #730
Adding rules to handle case for use_clause selected names.
1) Added new tokens to use_clause
2) selected names now parsed with new tokens
3) Added rules:
a) use_clause_500
b) use_clause_501
c) use_clause_502
d) use_clause_503
4) Added tests
Resolves#730
* Refactoring to reduce duplication.
Removing trailing whitespace.
* Changing exceptions to case_exceptions.
1) case::name rules allow case_exceptions by default
2) Updated instantiated_unit to split entity_name with a library name
3) Rule instantiation_028 simplified
4) Removed unused test file
* Refactoring to reduce complexity.
* Refactoring to improve readability.
* Fixed isue with procedure_506 crashing VSG due to missing variable.
* Fixing missing call to lowercase list.
* Adding the following rules:
context_ref_500
context_ref_501
Deprecated the following rules:
context_ref_004
* Placing common code into a single file.
* Removing trailing whitespace.
* Refactoring to reduce the number of parameters.
* Updates for issue #679
Fixing encoding issues when reading and writing files.
1) Added utf-8 encoding and decoding
2) Fixed issue with token map which was causing vsg to crash.
* Removing trailing whitespace.
* Updates for issue #750
Fixed code tags to allow for comments within the tag.
1) Updated tests
2) Updated documentation
3) Updated code tag logic to ignore anything after the : within the code tag
* Additional code tag updates
Added parsing of exponents.
* Minor formatting fixes.
* Refactored split_natural_numbers to improve readability.
* Refactoring code tag logic to improve readability.
* Minor formatting updates.
* Removing trailing whitespace.
* Refactoring to improve readability.
* Refactoring to reduce line length.
* Fixing indent.
* Adding rule exponent_500.
* 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.
* fix typo in example ('disabled' -> 'disable')
* fix typo in example ('disabled' -> 'disable')
also update doc string in the rule file (must match the restructured text documentation)
* Updates for issue #729
Added rule ieee_500 to handle case of ieee keywords.
* Minor formatting updates.
Moved similar token classifications from name, subtype_indication and expression to utils.
* Fixing doc string.
* Deprecating rule signal_010.
* Deprecating rule signal_011.
* Deprecated rule constant_011.
* Deprecating rule variable_010.
* Removing trailing whitespace.
* Moving method to utils.
* Refactored method into function and placed it in utils.
* Refactoring to remove duplication.
* Fixing indenting.
Adding rule constant_100 to add a space after the assignment operator.
This addresses an issues where constant arrays were not being alignmed correctly.
* Updates for issues #655 and #707:
VSG would lockup if an error was encountered during classification.
1) Exception added to print_error_message to report classification errors.
2) Exception is caught in apply_rules.py and handled so it does not lock up the multiprocessing pool.
* Updates for issue #682
Trailing whitespace after phase 1 were being introduced by some rules.
1) Added function to remove trailing whitespace after phase 1
2) Added test
* Fixing case on variable name.
* Removing unused import.
* Updates for issue #680
Alignment of sequential assignments would take two passes to complete.
1) Isolated issue to process_004 being ran before process_400
2) Updated test
3) Set sequential_004 to run after process_400
* Fixed issue where process_029 was running after if_002 and removing the parenthesis.
1) Moved if_002 to subphase 2.
* Rule port_007 updated to check spaces before and after.
* Refactoring base rule spaces_before_and_after_tokens_when_bounded_by_tokens.
* Attempting to get test to pass.
* Fixing minor issues.
* Refactoring to improve readability.
* Refactoring to improve readability.
* Updates for code coverage:
1) Improved testing
2) Removed unused test input
* Updating rule port_008 to cover spaces before and after out keyword.
* Converting rule port_009 to check for spaces before and ader inout keyword.
* Adding updated documentation for rule port_009.
* Deprecating rule port_005.
* Changing rule port_map_004 to allow for moving the closing parenthesis to the same line as the last part assignment.
* Skipping JSON test as a fix was already performed on another branch.
* Removed trailing spaces.
* Converted generic_map_004 to use move_token base rule.
* Adding rule instantation_035.
* Refactoring to improve readability.
* Updating documentation.
* Updated rule generic_010 to allow for parenthesis to be on same line or next line.
Added rule generic_021 to enforce semicolon next to closing parenthesis.
* Refactoring to improve readability.
* Updating rule port_014 to allow for moving the closing parenthesis to the previous line.
Adding rule port_027 to force semicolon to be next to closing parenthesis.
* Updates for issue #661:
Adding rule alias_declaration_500.
* Adding rule alias_declaration_501.
* Adding rule alias_declaration_502.
* Adding rule alias_declaration_001.
* Adding test for alias_declaration documentation.
* Adding rule alias_declaration_100.
* Adding rule alias_declaration_101.
* Adding rule alias_declaration_102.
* Updating rules architecture_029 and block_400 to align alias designators.
* Updating rule package_019 to align alias designators.
* Updating rule package_body_400 to align alias designators.
* Updating rule process_031 to align alias designators.
* Updating rule function_015 to align alias designators.
* Updating rule procedure_010 to align alias designators.
* Update rule architecture_026 to align alias declaration is keyword or colon.
* Updating the following rules to align alias elements:
block_401
function_012
package_400
procedure_401
process_033
Adding the following rule to align alias elements:
package_body_401
* Minor formatting updates.
* Adding rule alias_declaration_300.
* Adding rule alias_declaration_600.
* Adding rule alias_declaration_601.
* Adding rule alias_declaration_503.
* Updating rule generate_400 to align alias designators.
* Updated rule generate_401 to align alias declaration colon and is keyword.
* Updated rule generate_402 to align alias designators.
* Updated rule generate_403 to align alias declaration colon and is keyword.
* Updated rule generate_404 to align alias designators.
* Updated rule generate_405 to align alias colon and is keyword.
* Fixing documentation on rule alias_declaration_101.
* Updates for issues #655 and #707:
VSG would lockup if an error was encountered during classification.
1) Exception added to print_error_message to report classification errors.
2) Exception is caught in apply_rules.py and handled so it does not lock up the multiprocessing pool.
* Updates for issue #705:
Changing rule constant_014 to include align_left and align_parent options.
* Refactoring to reduce duplication.
* Changing options for constant_012 from boolean to strings to align with similar rules.
Header width calculations were not taking the allow_indenting being false into account.
This resulted in invalid header generation based on the level of indenting.
1) Updated tests
2) Updated leading whitespace calculation