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
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.
Fixing issue where signal_015 would crash if commas existed after the : in the signal declaration.
1) Adding test to expose issue
2) Updated rule signal_015 to make the test pass
(cherry picked from commit 305124a55f8deb038ec32b63e3553c382e05f81d)
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
VSG was considering commas inside parenthesis as a delimiter for a port inside an instantiation.
1) Updated tests to expose the issue
2) Updated code to make test pass
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
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
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
Rule instantiation_014 was removing all trailing closing parenthesis when it moved the closing parenthesis to the next line.
1) Updated tests
2) Updated rule instantiation_014 to remove only the last closing parenthesis.
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
Adding test for after statement in clock process:
1) Enhanced testing
2) Added after_001 rule
3) Updated documentation
4) Fixed bug in detecting the end of a sequential statement
5) Updated classification logic
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