* Updates for issue #536:
Adding classification of aggregate open and close parenthesis.
* Adding rules to address aligning => operator in record assignments.
1) Added rules:
* concurrent_400
* sequential_400
2) Added tests
3) Added documentation
* Minor formatting updates.
* Adding import of aggregate to fix runtime error.
* Updates for issue #813
Adding ability to classify configurations:
1) Added additional tokens
2) Added classifiers
3) Updated test
* Adding unspecified token in between end for and semicolon.
This token is not in the LRM spec, but apparently some compilers allow it.
* Refactoring to improve readability.
* Updates for issue #596
Adding feature to output quality report.
1) Added tests
2) Added quality_report command line argument
3) Output quality report
* Removing extra blank line.
* Removing unused import
* Adding documentation for integration with CI servers.
* Refocusing CI documentation to the output which is generated.
* Improving documentation:
1) Made JUnit example smaller
2) Minor grammar updates
* Adding link from table to heading.
* Adding link from table to content in page.
* Updates for issue #539
Adding multiline structural rule for rule signal_016.
1) Added test cases
2) Update rule signal_016
3) Updated documentation
* Adding test for arrays.
* Adding functions to combine slices into a single object
* Adding array_first_paren_new_line option.
* Removing unused code.
* Adding tests for the following parameter options:
1) array_first_paren_new_line (yes/no)
2) first_paren_new_line (yes/no)
* Adding documentation for configuring multiline constraint rules.
* Minor grammar updates.
* Updating per feedback:
1) Made symbols in table with a transparent background
2) Minor grammar updates
3) Fixed indenting in code examples
* Adding correct red penta star png file.
* Upated third example to correctly show behavior.
* Updated figure with correct indenting.
Fixed indenting in example 2.
* Adjusting indent on example 3 and example 4.
* Initial rewrite to classify constraints.
* Converting variable_declaration to call subtype_indication.classify.
* Changing constant_declaration to use subtype_indication.classify
* Changing unbounded_array_definition to use subtype_indication.classify
* Changing subtype_declaration to use subtype_indication.classify
* Changed interface_variable_declaration to call subtype_indication.classify
* Changing the following to use subtype_indication.classify:
interface_constant_declaration
interface_file_declaration
interface_signal_declaration
interface_unkown_declaration
* Changing the following to use subtype_indication.classify:
constrained_array_definition
* Changing the following to use subtype_indication.classify
element_subtype_definition
* Changing the following to use subtype_indication.classify:
alias_declaration
* removing commented out line.
* Changing the following to use subtype_indication.classify:
file_declaration
* Changing the following to use subtype_indication.classify
access_type_definition
* Removing subtype_indication.classify_until
* Initial commit of rule signal_017
* Implemented record_constraint_open_paren = add_new_line
* Minor refactoring.
* Extracted the following functions:
_check_add_new_line
_token_at_beginning_of_line
* Adding the following options to rule signal_017
* record_constraint_open_paren :: remove_new_line
* Adding the following options:
record_constraint_close_paren :: add_new_line
record_constraint_close_paren :: remove_new_line
* Adding the following options:
record_constraint_comma :: remove_new_line
* Adding the following option:
record_constraint_element :: add_new_line
record_constraint_element :: remove_new_line
* Adding the following option:
* array_constraint :: all_in_one_line
* Fixing issue with array_constraint::all_in_one_line not detecting multiline array_constraints.
* Adding the following options:
array_constraint :: one_line_per_dimension
* Adding rule signal_400 to handle indenting of multiline signal constraints.
* Fixing issues for Codacy.
* Refactoring to reduce complexity and improve readability.
* Adding links to new rules.
* Refactoring to improve readability.
* Refactoring to improve readability.
* Fixing style issues.
* Updating for style issues.
* Updating formatting issues.
* Removing unused file.
* Removing commented out debug statements.
* Minor formatting updates.
* Adding metadata attribute and methods.
* Refactoring _check_array_contraint_one_line_per_dimension function to improve readability.
* Refactoring _check_array_constraint_all_in_one_line function to improve readability.
* Refactoring _create_violation to just take oToi as a parameter.
* Adding exception logic.
* Refactoring to improve readability.
* Refactored analyze_exception_one to improve readability.
* Refactoring the following functions:
* _check_array_constraint_all_in_one_line
* _check_array_constraint_one_line_per_dimension
* Refactoring the following functions:
* add_index_constraint_open_parenthesis
* add_index_constraint_close_parenthesis
* add_record_constraint_open_parenthesis
* add_record_constraint_close_parenthesis
* Refactoring to improve readability.
* Minor formatting updates.
* Adjusting signal_400 to remove extra level of indent.
* Updates for rule signal_400:
1) Modified base rule multiline_alignment_between_tokens to support signal_400
2) Added tests for the four variants of options.
* Fixing style issues.
* Simplifying _check_new_line_after_comma function.
* Deprecating rule signal_016.
* Removing unused base rule multiline_declaration_structure.
* Style and minor refactorings.
* Moving filtering of toi's from _analyze to _get_tokens_of_interest.
* Extracted update_open_paren_counter from _classify_assignment
* Extracted update_close_paren_counter form _classify_assignment
* Refactoring _fix_violation to reduce complexity
* Refactored _create_violation:
1) Placed violation information into oToi object
* Refactoring to reduce complexity.
* Adding rule constant_017
* Adding rule variable_017
* Updating links to rules.
* Adding rule variable_400.
* Minor cleanup of documentation.
* Adding default values for options.
* Minor updates for formatting:
* Updates for issue #775
Adding configurable whitespace rule:
1) Added preliminary documentaton
2) Added test
3) Updated whitespace rule to allow for configurations of more than one space
* Extracting functions from _analyze method.
* Adding feature to handle min and max not equal.
* Extracting function from analyze methods.
* Combined min and max values into a single option.
* Adding greater than and greater than or equal to options.
* Migrating rule entoty_007 to use whitespace_between_tokens.
* Migrating rule entity_002 to use whitespace_between_tokens.
* Migrating rule entity_011 to whitespace_between_tokens.
* Migrating rule entity_013 to whitespace_between_tokens.
* Adding link to configuring whitespace rules.
* Converting single_space_between_tokens rules to whitespace_between_tokens rules.
* Removing unused base rule single_space_between_tokens
* Refactoring single_space_between_token_pairs to extend whitespace_between_tokens.
* Adding link to individual rules.
* Renaming single_space_between_token_pairs to whitespace_between_token_pairs.
* Updating documentation.
* Refactoring single_space_after_token to extend white_space_between_tokens.
* Renaming single_space_after_token to whitespace_after_token.
* Updating documentation.
* Migrating single_space_before_token_if_on_same_line_as_token to extend whitespace_between_tokens.
* Changing name of single_space_before_token_if_on_same_line_as_token to whitespace_before_token_if_on_same_line_as_token.
* Removing unused rule.
* Removing n_spaces_after_tokens and replacing it with whitespace_after_tokens.
* Removing rule single_space_before_token.
1) Replaced with whitespace_before_token
2) whitespace_before_token now extends whitespace_between_tokens
* Refactoring whitespace_before_token rule.
Updating documentation.
* Making single_space_between_token_pairs_bounded_by_tokens extend whitespace_between_tokens.
* Refactoring to improve usability.
* Refactoring whitespace_before_tokens_in_between_tokens to improve usability.
* Formatting updates.
* Refactoring to improve readability.
* Adding [0-9][0-9]*+ as a configuration option for number_of_spaces.
* Updates for issue #780:
Adding rule to enforce indenting of the `end` keyword:
1) Added documentation
2) Added test
3) Added rule generate_300
* Adding rule to ensure *end* keyword is on it's own line.
1) Added documentation
2) Added test
3) Added rule generate_019
* Adding test to enforce indent of elsif keyword:
1) Added documentation
2) Added test
3) Added rule if_generate_statement_300
* Fixing *fix* solution.
* Fixing rule documentation.
* Adding rule to enforce alignment of else keyword:
1) Added documentation
2) Added test
3) Added rule if_generate_statement_301
* Removing rule generate_300 as it is a duplicate of rule generate_007.
Adding documentation for integrating with VSCode via tasks.
1) Restructured editor integration
a) Placed in own directory
b) Placed VIM documentation in it's own directory
2) Added VSCode documentation
* Updates for issue #636
Adding severity to output of --json argument.
1) Added test to expose the issue
2) Updated code to output severity
* Updates for issue #636
Fixing comments in test.
* Updates for issue #642 (#658)
* Updates for issue #642
Updating prefix/suffix rules to also check for matching ending lable/identifiers.
1) Updated tests to expose issue
2) Updated rules
a) generate_007
b) generate_600
c) package_016
d) package_017
* Updates for issue #642
Updating unrelated test that is failing CI due to file ordering in output.
* Updates for issue #642
Another attempt to get a test to pass.
* Updates for issue #642
Another attempt to get a test to pass.
* Updates for issue #642
Seeing if switching to a single core will fix testing issue.
* Disabling three tests just for this release.
* Preparing for release 3.3.1
* Updates for issue #663 (#665)
* Updates for issue #663
Fixing rule if_002 to honor whitespace when removing parenthesis.
1) Updated test to expose the issue
2) Updated rule to ensure whitespace is preserved
* Refactoring _check_remove_parenthesis to improve readability.
* Refactored check_insert_parenthesis to improve readability.
* Refactoring _fix_violation method to improve readability.
* Updates for codeclimate.
* Removing unused variable.
* Improving tests to increase code coverage.
* Updates for issue #664 (#666)
* Updates for issue #664
Colons in subprogram_declarative_parts were being aligned with process_declarative_parts.
1) Updated tests to expose the issue
2) Updated rule process_033 to exclude subprogram_declarative_parts
* Fixing codeclimate issue.
* Preparing for release 3.3.2
* start on suffix rule
* added suffix rule
* added documentation
* added prefix rule
* Fixing documentation to match current method.
* Adding exception checking to fix crash of rule if_002.
* Addressing CodeClimate issues.
Co-authored-by: imd <ian.davis@roke.co.uk>
* 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 #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.
* 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 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.