Adding rules for context references.
1) Added context reference rules 001 through 005
2) Refactored base rules to allow it to pull code from rule defined regions
3) Refactored context rules to match base rule changes
4) Added tests
5) Updated documentation
6) Updated context classifier
7) Added set_indent_levels method to vhdlFile class
Additional context rules added:
1) New rules added
a) context_007
b) context_021
c) context_022
2) New base rules added
a) insert_item_after_item_rule
b) copy_item_value_and_insert_new_item_after_item_rule
c) move_items_after_item_to_next_line_rule
3) Updated classifiers to use objects
a) library
b) use
4) Added tests
Adding new rules for context declarations:
1) Added context rule documentation
2) Added parsing of context declarations
a) Experimenting with using objects
3) Adding rules 002, 003, 004 and 005.
NOTE: These new rules need to be refactored before they are merged back to master.
Adding rules to align declaration identifiers:
1) Updated documentation
2) Removed the following rules
file_003, constant_003, attribute_003, signal_003, subtype_003, type_003 and variable_003
3) Added new rules:
architecture_029, function_015, package_019, procedure_010 and process_037
4) Added tests for new rules
5) Updated classifiers to support new rules
Adding support for case generate statements:
1) Updated case classifications to differentiate between generate and case statements
2) Updated documentation
3) Added tests for generate case statements
4) Added rule generate_016 to enforce indention on when statements
The rule process_031 was attempting to align variables defined in function and procedures with variables outside functions and procedures in the process declarative region.
1) Updated tests to expose issue
2) Fixed to make tests pass
Additional issue found with handling indents on processes with just 'process is' when updating tests.
1) Fixed code to make tests pass
VSG could not handle nested for loops if it was inside a procedure.
The second 'end loop' would also be classified as the 'end procedure'.
1) Updated tests to expose issue
2) Updated code to make tests pass
Fixed issue where ports in an instantiation which started with "end" were classified as the end of the architecture.
Fixed issue where concurrent assignments which started with "end" were classified as the end of the architecture.
1) Added tests
2) Updated architecture classifier
Added rule constant_014 to handle multiline non array constants:
1) Added documentation
2) Fixed rule constant_012 so it does not fire on non array constants
3) Added rule constant_014
4) Added tests
5) Added classification of array constants
Invalid classification of procedure "begin" keyword as a process "begin" keyword.
1) Updated tests to include testcase
2) Updated code to handle testcase
Added rule to handle generate label and generate keyword not on the same line:
1) Added generate_015 to flag label and keyword not on the same line
2) Added tests
3) Added documentation
4) Improved classification of generates to detect label and keyword not on the same line
NOTE: This is currently not fixable.
The class vhdlFile now takes a list instead of a file name.
This removes the responsibility of reading the file from the vhdlFile class.
Which allows for better integration into other tools.
Adding initial support for blocks:
1) block structures are now detected
2) indenting enforced
NOTE: extensive testing of structures within a block have not been tested.