Refactoring of library and base rules:
1) Most library rules refactored to use new base item rules
2) Base item rules refactored to use the region method on vhdlFile
3) Tests updated
4) Documentation updated
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 rule architecture_029 to align idenifiers in signal, constant, variable, file, type and subtype declarations.
1) Updated documentation
2) Added tests
3) line class updates
a) Added new architecture attribute
b) Added new method to update the line attributes from tokens
4) Added rule architecture_029
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
VSG was mistaking case-generates for an instantiation.
1) Updated tests to include case generate example
2) Updated code to recognize a case generate statement
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
VSG was classifying the when keyword in a sequential assignment as a case when keyword.
1) Updated tests to detect the issue
2) Updated code to make test pass
The 'end loop' was being misclassified as the end of a procedure.
This would result in a cascade of issues in the fixed code.
1) Updated tests to include a for loop within a procedure within an architecture declarative region to replicate the issue
2) Updated code to not classify the 'end loop' as the end of a procedure.
Issue #314:
Updated all label rules to use utils.extract_label or utils.extract_end_label:
1) Added utils.extract_end_label
2) Added more end label attributes to line.py
3) Updated classifiers to set the new end label attributes
4) Updated tests
5) Updated rules to use utils.extract_label or utils.extract_end_label
Issue #333:
Fixed bug where nested generate labels were not updated correctly:
1) Added test case
2) Updated code
Added ability to configure either 'event or _edge for clock definitions:
1) Updated documentation
2) Added isClockDefinition to line object
3) Updated process classification to set isClockDefinition
4) Updated tests
5) Updated rule process_029
1) Removed unused elif code because it could never be executed.
2) Updated documentation for component classifier.
3) Updated tests for rule component_012 to cover the _get_solution method.
The rule process_012 would add the *is* keyword to the end of the process sensitivity list without removing an *is* keyword if it existed on a different line.
1) Updated documentation
2) Updated tests
3) Updated process classifier
4) Added isProcessIs line attribute
5) Updated rule process_012 to remove the *is* keyword if is exists on a seperate line.
Adding rule signal_015 to handle a signal declared over multiple lines:
1) Added documentation
2) Added test
3) Added rule signal_015
NOTE: Only the detection portion has been added. The fix will be added next.
The indent level of the begin keyword was incorrect in cases of processes without sensitivity lists.
1) Changed indent level to match that of the process keyword in all cases.
2) Updated tests
The constant classifier was classifying signals in concurrent assignments as constants if a signal started with "constant".
1) Updated tests
2) Updated constant classifier
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