Commit Graph

2502 Commits

Author SHA1 Message Date
Jeremiah Leary 69cc709cb5 Removing TravisCI icon since it is no longer used. 2024-02-10 08:20:44 -06:00
Jeremiah Leary 381aab15a5 Updating announcement for camelCase to snake_case change in options. 2024-02-10 08:18:37 -06:00
Jeremiah Leary de5a316b51
Issue#1097: Fixing failure count and removing classname from JUnit output. (#1114) 2024-02-07 07:38:47 -06:00
JHertz5 431cdb92c5
Issue#1117 Modifed initialisation of the `Rule` class's `name` and `identifier` attributes to reduce duplication. (#1118)
* Issue#1117 Modifed initialisation of the `Rule` class's `identifier` property to reduce duplication.

* Issue#1117 Modifed initialisation of the `Rule` class's `unique_id` property to make the `identifier` input redundant.

* Issue#1117: Updated Rule.name attribute to be initialised from the class's `__module__` variable.
Modified `deprecated_rule` to not initialise `name` and `identifier` attributes.
Modified rule_localized_001 to force the local rule's `name` since this can't be extracted from the module.
Modified test_rule to force Rule's `name`, `identifier` and `unique_id` in some tests.

* Issue#1117: Removed now-redundant name and identifier input arguments on rule `__init__` methods.
Updated rule_localized_001 to force the rule's name.
Update the local rules documentation.

* Issue#1117: Removed unused exception in get_rule_name.

* Issue#1117: Updates after merging master.

* Converting match case to if statement to support python pre version 3.10Converting match case to if statement to support python pre version 3.10.

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
2024-02-04 15:23:23 -06:00
Jeremiah Leary a8bff26024
Issue#967: Adding options to rule signal_012 (#1050)
* Added blank_line_ends_group
   * Added comment_line_ends_group
2024-02-04 14:02:13 -06:00
Jeremiah Leary 308bde1d2c
Issue#880 Adding tokeninzing, tokens and classifying documentation.
* Adding tokeninzing, tokens and classifying documentation.

* Minor grammar updates.

* Fixing build issues.

* Adding clarifying notes about status of documentation.
2024-02-01 20:57:43 -06:00
Jeremiah Leary 14672c0aeb Preparing for relesae 3.21.0 2024-01-28 11:50:19 -06:00
JHertz5 51a95c2096
Issue#1103: Adding structure rules for subprogram specifications. (#1108)
* Issue#1103 Added rule for multiline subprogram specification structure.

* Issue#1103 Added rule function_019.

* Issue#1103 Added rule procedure_013.

* Issue#1103 Restored inteface_list_semicolon to subprogram_specification rule.

* Issue#1103 Documentation updates.

* Issue#1103 Removal of superseded rules.

* Issue#1106 Added unittests for procedure_013.

* Issue#1106 Correction to subprogram specification strucutre to include other kinds of interface element

* Issue#1106 Added unittests for function_019.

* Issue#1106 Updated examples for rules function_019 and procedure_013.

* Issue#1106 Modified subprogram specification defaults to avoid changing existing styles.

* Issue#1103: Updated configuration documentation link for the multiline_subprogram_specification_structure class.

* Issue#1103: Updated default value for the `interface_element` attribute of `multiline_subprogram_specification_structure` rules to `add_new_line`

* Issue#1103: Corrected configuration documentation link for the multiline_subprogram_specification_structure class to be a string instead of a non-existent variable.

* Issue#1103: Corrected the link name for `configuring-procedure-call-statement-rules`.

* Issue#1103: Updated default value for the `interface_element` attribute of `multiline_subprogram_specification_structure` rules to `ignore`.

* Issue#1103: Updated default configuration of subprogram specification rules.

* Issue#1103: Updated JCL style with function_019 settings

* Adding picture to illustrate where options will take affect.

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
2024-01-27 09:35:04 -06:00
JHertz5 a5813a70f0
Issue#1120: Uncommented lines of code (#1121)
Lines of code to remove `actual.sjon` in the teardown of `testMain` used to be commented out, leaving a test file behind.
2024-01-27 09:13:02 -06:00
Jeremiah Leary 4ff8b6a0e0
Issue#1107: Adding option to process_028 to allow for alignment of close parenthesis. (#1116) 2024-01-24 06:56:17 -06:00
Jeremiah Leary 1ba9088374
Issue#1081: Adding configuration option for constant_400 (#1094)
* Issue#1081:  Adding configuration option for constant_400

* Adding options to concurrent_400 and sequential_400.

* Refactored base rules to improve readability.

* Merging base rules:

  align_tokens_in_region_between_tokens_unless_between_tokens merged into align_tokens_in_region_between_tokens

* Adding ignore_single_line_aggregates to rule constant_400

* Removing commented out code.

* Refactoring align_tokens_in_region_between_token_when_between_tokens_unless_between_tokens.

* Removing unused alignment options due to refactor.
2024-01-21 13:55:08 -06:00
JHertz5 f03c32e02a
Issue#1112 Corrected list of disabled rules and added unit test to verify list. (#1113)
* Issue#1112 Added unit test for configuring disabled rules doc list of rules.

* Issue#1112 Updated list of rules in configuring disabled rules doc.

* Issue#1112 Cleared duplicate instances of lActual.

* Update configuring_disabled_rules.rst

Adding missing rules.

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
2024-01-21 13:30:18 -06:00
JHertz5 bf66308e32
Issue#1110 Added rules to enforce prefixes and suffixes on generate/loop parameter indentifiers (#1111)
* Issue#1110 Added new rules for prefix/suffix enforcement on loop/generate parameter identifiers.

* Issue#1110 Documentation updates for the new loop/generate rules.

* Issue#1110 Added unit tests for the new loop/generate rules.

* Issue#1110 Documentation updates.
2024-01-21 13:02:00 -06:00
JHertz5 17bb03443a
Issue#1106 Corrections to procedure call docs. (#1109) 2024-01-21 12:42:40 -06:00
Jeremiah Leary dd644d442d
Issue#551: Fixing scoping of consistent token case rules. (#1052)
* Issue#551:  Fixing scoping of consistent token case rules.

Issue#755:
Issue#998:
Issue#1023

* Updating additional consistent case rules:

  1)  architecture_600
  2)  entity_600
2024-01-21 12:36:29 -06:00
JHertz5 d056050de2
Issue#1101 Updated the solution message for rule type_008. (#1102) 2024-01-20 12:45:34 -06:00
JHertz5 c409e81998
Issue#1104 Corrected "superceeced" typo. (#1105) 2024-01-20 12:41:23 -06:00
Jeremiah Leary 23b63ebfcc
Issue#1088: Rule process_400 was ignoring conditional signal assignments. (#1093) 2024-01-07 11:05:04 -06:00
JHertz5 7f7dfc64c4
Issue#1089 Corrected `test_rule_id` test. (#1090)
* Issue#1089 Corrected `test_rule_id` test.

* Issue#1089 Removed autoformatter changes.
2024-01-07 09:51:13 -06:00
Jeremiah Leary 0b3d446dd5
Issue#1091: Fixing token_map.get_index_of_carriage_return_before_index method (#1092)
Method was not returning correct index if token was the first character in file.
2024-01-07 09:18:20 -06:00
JHertz5 e41bdd8855
Issue#1082: Adding assert rules to match report statement rules functionality. (#1083)
* Issue#1082 Added rules assert_100, assert_101, and assert_102 for whitespace in assert statements.

* Issue#1082 Added documentation for rules assert_100, assert_101, and assert_102.

* Issue#1082 Added tests for rules assert_100, assert_101, and assert_102.

* Issue#1082 Added missing comma to uppercase and lowercase rules page.

* Issue#1082 Added rules assert_500, assert_501, and assert_502 for keyword case in assert statements.

* Issue#1082 Added documentation for rules assert_500, assert_501, and assert_502.

* Issue#1082 Added tests for rules assert_500, assert_501, and assert_502.
2024-01-01 19:07:46 -06:00
JHertz5 7ad47019c3
Issue#1086: Corrected VHDL examples in "Configuring Multiline Indent Rules" (#1087)
* Issue#1086 Updated the configuring_multiline_indent_rules page to use the rule configuration example that is relevant to the VHDL examples given later on.

* Issue#1086 Updated the configuring_multiline_indent_rules page to correct the VHDL examples.

* Issue#1086 Updated the configuring_multiline_indent_rules page to remove trailing whitespace.
2024-01-01 18:48:42 -06:00
JHertz5 16298bfe66
Issue#1084: Updated docstring for `iteration_scheme_501`. (#1085)
* Issue#1084 Corrected error in docstring for iteration_scheme_501.

* Issue#1084 Updated iteration_scheme_rules_page to match autogenerated doc.

* Adding test for iteration_scheme documentation.

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
2024-01-01 18:41:42 -06:00
JHertz5 a25890dcab
Issue#1079 Updated procedure_410 to act on colons in file interface delcarations. (#1080) 2024-01-01 15:19:38 -06:00
JHertz5 296252942b
Issue#1076: procedure_call_003 modified to accept ignore_single_line option. (#1077) 2024-01-01 15:13:52 -06:00
Jeremiah Leary 22beaa35a0 Preparing for release 3.20.0 2023-12-21 08:46:09 -06:00
Jeremiah Leary 18c3c4b8e7
Issue#1074: procedure_call_003 now includes sequential procedure calls. (#1075)
* Issue#1074:  procedure_call_003 now includes sequential procedure calls.

* Updating documentation to differentiate between concurrent_procedure_call_statement and procedure_call_statement.
2023-12-21 08:34:44 -06:00
Jeremiah Leary 4bf4e9f494
Issue#1069: Rule component_020 was not aligning comments correctly. (#1072) 2023-12-20 09:42:34 -06:00
Jeremiah Leary f7d0e77a04
Issue#1070: Adding exceptions option to prefix and suffix rules. (#1071) 2023-12-20 09:11:46 -06:00
Jeremiah Leary c7de28e77c
Issue#1065: Adding 'require_blank_line_unless_pragma' to blank line rules (#1068)
* Issue#1065:  Adding 'require_blank_line_unless_pragma' to blank line rules.

* Adding blank line rules for pragmas:

  * pragma_400
  * pragma_401
  * pragma_402
  * pragma_403

* Updating pragma documentation.

* Adding error checking on invalid pragma configurations.

* Fixing failing tests.
2023-12-17 16:59:55 -06:00
Jeremiah Leary 6dfc1eee95
Issue#1066: Fixing default style of rule process_021 (#1067) 2023-12-14 08:09:43 -06:00
Jeremiah Leary 6d663af5f1
Issue#1047: Adding upper_or_lower option to case rules. (#1048) 2023-12-13 07:22:39 -06:00
Jeremiah Leary c3e408e996 Preparing for release 3.19.0 2023-12-12 10:18:39 -06:00
Jeremiah Leary 33a209b9b1
Issue#1061: Updates for pragma use cases (#1063)
* Issue#1061:  Updates for pragma use cases

Pragmas are now treated as comments:

  *  Pragmas are now a subclass of comments
  *  Move rules will not move tokens if it crosses a pragma

* Fixing issue with expression classification causing infinite loop.
2023-12-12 06:41:06 -06:00
Jeremiah Leary e1282048bf
Issue 815 (#840)
* Updates for issue #815

Adding disabled rule constant_101

* Adding disabled rule variable_100

* Adding disabled rule signal_100

* Adding disabled rule alias_declaration_103.

* Adding disabled rule file_100.

* Adding disabled rule subtype_100.

* Adding disabled rule type_100.

* Adding rule signal_101.

* Adding rule signal_102.

* Adding more rules to enable correct aligment:

  1)  architecture_401
  2)  constant_200
  3)  signal_200
  4)  type_200

* Updated a couple of rules:

  1)  Added option to architecture_026 to optionally align type is keywords
  2)  Removed duplicate rule architecture_401
2023-12-09 08:03:07 -06:00
Jeremiah Leary 0096b7d87c
Issue#882: Moving rule concurrent_007 to conditional_waveforms_001. (#1049) 2023-12-09 08:00:40 -06:00
Jeremiah Leary e5ca972b09
Issue#1057: Fixing classification of formal_part. (#1060) 2023-12-03 22:04:56 -06:00
Jeremiah Leary 5c85734a07
Issue#1054: Adding classification of pragmas. (#1056)
* Issue#1054:  Adding classification of pragmas.

* fix 'keyError: regexp' by dStyle having parse regexp and dConfig not (#1058)

* Adding pragma configuration tests.

* Stopping pragma search if a match is found.

* Refactoring classifications of pragmas to improve performance.

---------

Co-authored-by: Gerard Sharp <43923557+SittingDuc@users.noreply.github.com>
2023-12-03 21:09:52 -06:00
Jeremiah Leary 7ba4904371
Issue#1053: Adding rule to check for reserved words. (#1055)
* Issue#1053:  Adding rule to check for reserved words.

* Removing unused token classes.

* Fixing documentation.
2023-12-01 07:41:39 -06:00
Jeremiah Leary 2ce68de09c
Issue#928: Subtype declaration classification issue (#1051) 2023-11-29 06:31:12 -06:00
Jeremiah Leary c3f02ec833
Issue#966: Updating classifier to handle subtypes within constraints. (#1032) 2023-11-19 07:49:34 -06:00
Jeremiah Leary a4fedc7230
Issue#909: Changed conflict between library_007 and entity_203 (#1043)
* no_blank_line_unless_different_library does not flag if previous line has a design_unit semicolon.
2023-11-19 07:47:33 -06:00
Jeremiah Leary 963da61b3a
Issue#924: Adding ability to check for camelCase and PascalCase. (#1037)
* Issue#924:  Adding ability to check for camelCase and PascalCase.

* Updating solution for camelCase and PascalCase.

* Removing unused base rule.

* Adding support for prefixes, suffixes and case exceptions.

* Refactored case_utils.py to reduce number of functions.

* Adding function mapping dictionaries to reduce the number of functions.

* Removing compare function.
2023-11-14 06:01:32 -06:00
Jeremiah Leary a564870d0e
Issue#1034: Improving classification of functions and procedures. (#1045) 2023-11-12 07:05:38 -06:00
Jeremiah Leary 3af7c652d7
Issue#994: concurrent_003 was misdetecting arrays. (#1044) 2023-11-12 07:04:44 -06:00
Jeremiah Leary 0550a5fe0b
Issue#1000: Adding --force_fix option to apply fixes to files with syntax errors. (#1021) 2023-11-06 16:37:27 -06:00
Jeremiah Leary 0576f7d15e
Issue#961: Fixing indenting of comments in return statements. (#963) 2023-11-06 16:10:31 -06:00
Jeremiah Leary 3931a87a59
Issue#999: Adding rule constant_400 to align => in constant declarations. (#1039) 2023-11-06 16:06:27 -06:00
Jeremiah Leary 545ab56995 Preparing for release 3.18.0 2023-11-05 08:33:52 -06:00
Jeremiah Leary b68fb7041e Updating Announcements. 2023-11-05 08:33:34 -06:00