Commit Graph

2585 Commits

Author SHA1 Message Date
JHertz5 d57c9c186b
Issue#1273: Added rules to enforce `in` keywords in for loops/generates (#1274)
* Issue#1273: Added rules for_generate_statement_502 and iteration_scheme_502.

* Issue#1273: Added tests for rules for_generate_statement_502 and iteration_scheme_502.

* Issue#1273: Added documentation for rules for_generate_statement_502 and iteration_scheme_502.
2024-10-20 09:03:37 -05:00
JHertz5 32ff55eb6a
Issue#1271: Added rules for null statements (#1272)
* Issue#1271: Added rules null_statement_300 and null_statement_500.

* Issue#1271: Added tests for rules null_statement_300 and null_statement_500.

* Issue#1271: Added documentation for rules null_statement_300 and null_statement_500.
2024-10-19 11:02:15 -05:00
Jeremiah Leary db548fdbdb
Issue#1245: Fixing documentation issue around regex. (#1246) 2024-10-14 20:47:44 -05:00
JHertz5 33a2ae7559
Issue#1241: Reduced duplication in token classification tests (#1242)
* Issue#1241: Added meta test that tests all token classifications available.

* Issue#1241: Added classification result for resolution indications.

* Issue#1241: Removed now-redundant test files.

* Issue#1241: Formatting update.

* Issue#1236: Improved LRM name list acquisition.

* Issue#1241: Updated class names for consistency.

* Issue#1241: Improved safety of automated test name generation.

* Issue#1241: Simplified function name.

* Issue#1241: Duplication reduction.

* Issue#1241: Efficiency improvement.

* Issue#1241: Refactored code to be more clean by using pathlib's features.

* Issue#1241: Formatting.

* Issue#1241: Delete tests/vhdlFile/test_bit_string_literal.py, which now duplicates test_token.py.
2024-10-13 18:54:13 -05:00
JHertz5 124be04fec
Issue#1243: Fixed external names parsing bug (#1244)
* Issue#1243: Updated external name classification_test_input.vhd to expose bug.

* Issue#1243: Updated classification_results.txt to match desired output

* Issue#1243: Updated external_signal_name.py to fix bug.

* Issue#1243: Updated external_variable_name.py to fix bug.

* Issue#1243: Updated external_constant_name.py to fix bug.

* Issue#1243: Fixed external_variable_name.py.

* Issue#1243: Minor simplification in external name classification

* Issue#1243: Minor simplification in external name classification

* Issue#1243: Minor simplification in external name classification
2024-10-13 08:45:43 -05:00
JHertz5 ce86655850
Issue#1236: Rule for case in hexadecimal constants and base specifier (#1237)
* Issue#1236: Updated parser to recognise bit string literals.

* Issue#1236: Added rules bit_string_literal_500 and bit_string_literal_501.

* Issue#1236: Updated bit string literal tokens to combine quote tokens into bit_value string token.

* Issue#1236: Updated case_utils to add exeption for bit string literals.

* Issue#1236: Updated parser to separate bit_string_literal integer token from bit_string_literal base_specifier token.

* Issue#1236: Added test for bit_string_literal classification.

* Issue#1236: Added test for bit_string_literal_500.

* Issue#1236: Added test for bit_string_literal_501.

* Issue#1236: Updated rules and rule tests.

* Issue#1236: Style updates.

* Issue#1236: Updated classification result.

* Issue#1236: Changed bit_string_literal_501 to default to upper case.

* Issue#1236: Updated tests for bit_string_literal_501 default to upper case change.

* Issue#1236: Formatting changes.

* Issue#1236: Updated fixed versions of code examples.

* Issue#1236: Updated fixed versions of code examples.

* Issue#1236: Code refactoring to reduce duplication.

* Issue#1236: Code refactoring to improve names and remove unused code.

* Issue#1236: Formatting changes.

* Issue#1236: Refactored code to reduce congitive complexity.

* Issue#1236: Refactored code to reduce congitive complexity.

* Issue#1236: Added bit string literal rules to top-level rules documentation.

* Issue#1236: Used compiled regular expressions to improve bit_string_literal parsing.

* Issue#1236: Changed regex strings to raw strings to avoid warnings about invalid escape sequences.

* Issue#1236: Removed unused import.
2024-10-07 20:09:53 -05:00
JHertz5 8174cab017
Issue#1230: Updated documentation with corrections. (#1231) 2024-10-02 21:52:52 -05:00
Jeremiah Leary da84a1be1f
Issue#1170: Adding rules to enforce spaces before generic map and port map assignment operators. (#1173)
* Issue#1170:  Adding rules to enforce spaces before generic map and port map assignment operators.

* Adding ability to parse external names.

  1)  Added parsing of external names
  2)  Added external_signal_name rules

* Adding parsing of external names to productions.

* Fixing rule identifiers.

* Adding external_constant_name rules.

* Adding external_variable_name rules.

* Adding classification of indexes of external names.

* Style issue updates and fixing test.
2024-10-02 21:47:19 -05:00
Jeremiah Leary 7c345ebba1
Issue#1207: Fixing default values in multiline indent documentation. (#1208) 2024-09-22 20:46:58 -05:00
Alon Bar-Lev cd881588e5
vsg: print file name when ClassifyError (#1210)
In current implementation the user see something like the following when
ClassifyError is raised:

    Error: Unexpected token detected while parsing procedure_call_statement @ Line 49, Column 22 in file None
           Expecting : ;
           Found     : )

In a project that contains multiple files, the user is clueless as he does not
know which of the files caused the error.

This change adds the name of the file to the message.

    Error while processing xxx:
    Error: Unexpected token detected while parsing procedure_call_statement @ Line 49, Column 22 in file None
           Expecting : ;
           Found     : )

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-09-22 20:45:46 -05:00
JHertz5 7f51f89dce
#Issue1212: VSG crashes when encountering generate statement corner case. (#1222)
* Issue#1212: Corrected order of operations in extract_pairs to ensure that it does not return an empty list as one of the pairs.

* Issue#1212: Updated the tests to exercise failure case that raised this isssue.

* Issue#1212: Updated extract_indexes_from_pairs to strip any empty pairs from the input list.
2024-09-21 21:40:13 -05:00
JHertz5 2968a5efb9
Issue#1214: Corrected label tag for _configuring-port-map-new-line. (#1215) 2024-09-08 20:06:00 -05:00
JHertz5 7788d41f85
Issue#1216: Added escape characters for "**" in docs. (#1217)
* Issue#1216: Added escape characters for "**" in docs.

* Issue#1216: Updated rule docstring in whitespace_011

* Issue#1216: Correction to whitespace_011 docstring.
2024-09-08 20:01:16 -05:00
JHertz5 82ee7a9f16
Issue#1223: Declared regex patterns as raw strings rather than Unicode strings to avoid interpretation as an escape sequence. (#1224) 2024-09-08 19:57:49 -05:00
JHertz5 c5bf334136
Issue-1225 vsg_rule_doc_gen script does not run. (#1226)
* Issue#1225: Corrected tool name in help message for vsg_rule_doc_gen.

* Issue#1225: Added path argument to vsg_rule_doc_gen.

* Issue#1225: Passed path argument to top-level function in vsg_rule_doc_gen.

* Issue#1225: Updated reserved_rules documentation.

* Issue#1225: Updated ieee_rules documentation.

* Issue#1225: Whitespace changes.

* Issue#1225: Simple test added for the main function in vsg_rule_doc_gen.

* Issue#1225: Whitespace changes to appease black formatter.
2024-09-08 19:51:31 -05:00
JHertz5 49a4924be3
Issue#1220: Documentation typo and link fixes. (#1221) 2024-09-08 19:41:38 -05:00
Jeremiah Leary 0dbc78a350
Issue#1198: Adding regex option to rule port_map_002. (#1199) 2024-07-19 07:00:50 -05:00
Jeremiah Leary 3e3f22d999 Fixing documentaton link. 2024-07-12 03:38:33 -05:00
Jeremiah Leary 631d39c246
Issue#1186: Additional whitespace rules added. (#1192)
* Issue#1186:  Additional whitespace rules added.

* Fixing style issues.
2024-07-12 03:19:06 -05:00
Jeremiah Leary 95fabcf752
Issue#1196: Adding rules to check for subprogram designators. (#1197) 2024-07-12 03:14:37 -05:00
Jeremiah Leary 5647dbcb35
Issue#911: Improving detection of unary logical operators. (#1046)
* Issue#911:  Improving detection of unary logical operators.

* Adding descriminator for keywords before unary operator.

* Fixing style issues.
2024-07-11 07:26:01 -05:00
Jeremiah Leary aa7f10bd29
Issue#1171: Adding rule whitespace_100 to enforce single spacing around relational operators. (#1172) 2024-07-09 20:39:45 -05:00
Jeremiah Leary ba8bfa23e8
Issue#1188: single comments with */ would be incorrectly classified and fail to parse. (#1191) 2024-07-09 20:36:59 -05:00
Jeremiah Leary a457814398
Issue#1190: Adding <= and < options to whitespace rules. (#1193)
* Issue#1190:  Adding <= and < options to whitespace rules.

* Fixing issue when <=1 is used and there are no spaces.
2024-07-09 05:31:21 -05:00
Jeremiah Leary 3277b965ac
Issue#1189: Adding error reporting for invalid indent configurations. (#1194)
* Issue#1189:  Adding error reporting for invalid indent configurations.

* Fixing style issues.
2024-07-08 20:48:01 -05:00
Jeremiah Leary f0d3dd7da6
Issue#1182: Adding regex option to prefix and suffix rules. (#1185)
* Issue#1182:  Adding regex option to prefix and suffix rules.

* Fixing style issues.
2024-06-26 21:20:40 -05:00
Edgar Vedvik c6c26e33bc
PR#1183: Fix bug in whitespace between tokens and add test for it (#1183)
Co-authored-by: Edgar Vedvik <edgar@radionor.no>
2024-06-19 21:32:02 -05:00
Jeremiah Leary 7adbcc0003
Issue#1176: Updating rule instantiation_005 to allow for adding or remmoving carriage returns. (#1180) 2024-06-19 05:18:52 -05:00
Jeremiah Leary 091f78d274
Issue#1177: Updating prefix and suffix rules to check for prefix or suffix if both exceptions are provided. (#1181) 2024-06-17 20:16:39 -05:00
Jeremiah Leary 0389ff93f2
Issue#1178: Adding rule component_022 to add or remove optional component_simple_name. (#1179) 2024-06-14 07:04:07 -05:00
Jeremiah Leary a8c84a837d Updating announcements. 2024-06-04 06:48:15 -05:00
Jeremiah Leary 872884d33c
Issue#1168: Fixing mis-classification formal parameters in procedure specifications. (#1169) 2024-05-03 07:14:54 -05:00
Jeremiah Leary a972c42c4c
Issue#1135: Adding documentation for rules which can not be automatically mixed. (#1136) 2024-04-16 20:13:31 -05:00
Jeremiah Leary 9444c8d320
Issue#1166: code tags for rule length_003 were not honored. (#1167) 2024-04-16 20:11:15 -05:00
Jeremiah Leary 66d47f1040
Issue#1145: Fixing invalid JSON test files and documentation. (#1165) 2024-04-13 06:08:47 -05:00
Jeremiah Leary ce70761895
Issue#1059: Performance improvements: (#1064)
* Issue#1059:  Performance improvements:

  * Added lower value to token and removed .lower() in other files
  * Simplified find_next_token

* Attempt at new algorithm for closest pair.

NOTE:  attempt has been commented out.

* WIP:  Improved token pairs process:

NOTE:  It does not appear to complete all the  matches.

* Revert "WIP:  Improved token pairs process:"

This reverts commit f41254087e84caa42b02058fd9fbb6cfcce673fc.

* Revert "Attempt at new algorithm for closest pair."

This reverts commit 4a972793883b9aa54a6e7ccd15e1cc26b8296fec.

* Updates for black.
2024-04-09 06:52:40 -05:00
Jeremiah Leary e02d51244c Attemping to fix versioning for publishing to pypi 2024-04-06 20:10:26 -05:00
Jeremiah Leary 16d2f07dbb Ignoring release notes. 2024-04-06 10:15:17 -05:00
Jeremiah Leary 043aed9a8d
Issue#1163: Fixing documentation on use clause indenting configuration. (#1164) 2024-04-04 20:16:45 -05:00
Jeremiah Leary a980504671
Issue#1119: Adding documentation for contributers (#1162)
* Issue#1119:  Adding documentation for contributers.

* Adding project board documentation.

* Additional documentation:

  1.  Adding documentation about vsg_parser
  2.  Minor grammer updates

* Adding Theory of operation to documentation.

* Adding Development section.

* Minor updates.

* Updates from pre-commit.

* Fixing link.
2024-04-04 06:52:42 -05:00
Jeremiah Leary 0220e49b96
Issue#1156: Changed prefix/suffix exceptions to allow for regular expressions. (#1159) 2024-04-02 06:47:51 -05:00
Jeremiah Leary 40050f54e7
Issue#1160: Removing unused files from MANIFEST.in (#1161) 2024-03-29 18:46:22 -05:00
Alon Bar-Lev 73f3ad02c5
cleanup: remove trailing spaces (#1158)
introduced in 374e2f4a8.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-29 09:39:14 -05:00
Jeremiah Leary dcc09162be
Issue#1146: Fixing invalid escaped characters in documentation and tests. (#1152) 2024-03-28 07:00:59 -05:00
Alon Bar-Lev 161c8950e3 docs: update installation methods
build system was modified to tox, documentation should have been updated.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-27 20:17:12 -05:00
Jeremiah Leary 374e2f4a8a Updating vacation status. 2024-03-27 20:14:35 -05:00
Alon Bar-Lev 1dc2f98438 ci: run for any branch
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-26 19:54:22 -05:00
Alon Bar-Lev 68409053e3 ci: remove unused travis configuration
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-26 19:50:49 -05:00
Jeremiah Leary 799c54b9a8
Issue#1150: Fixing minor documentation issues. (#1151) 2024-03-26 19:46:14 -05:00
Alon Bar-Lev baf22da660 style: apply end-of-file-fixer
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00