Commit Graph

453 Commits

Author SHA1 Message Date
JHertz5 ce4e5c6a3c Issue#1511: Added tests for new rule to enforce position of assignment operator in variable declarations. 2025-09-14 15:33:04 +01:00
Jukka Hertzog cb4eb92ff3
Merge pull request #1507 from JHertz5/issue-1391
Issue#1391: Added blank line rules for case generates
2025-09-11 23:48:51 +01:00
JHertz5 4dfbf9aa6b Merge remote-tracking branch 'origin/master' into issue-1488 2025-09-11 23:34:17 +01:00
JHertz5 718e2e187b Merge remote-tracking branch 'origin/master' into issue-1488 2025-09-11 23:32:59 +01:00
Jukka Hertzog f62164286a
Merge pull request #1498 from JHertz5/issue-1489
Issue#1489: Update `whitespace_005` to make ignoring of whitespace before numbers optional
2025-09-11 22:50:49 +01:00
Jukka Hertzog 955408c5ca
Merge pull request #1494 from JHertz5/issue-1491
Issue#1491: New rules to handle whitespace around range keywords
2025-09-11 22:49:11 +01:00
Jukka Hertzog 2291adb404
Merge pull request #1493 from JHertz5/issue-1490
Issue#1490: Added whitespace rules for direction keywords
2025-09-11 22:48:03 +01:00
Jukka Hertzog 3cc968d6af
Issue#1500: Modified test class names to remove duplication. (#1501) 2025-09-07 16:17:14 -05:00
Jukka Hertzog 090d88acb6
Issue#1485: Modified variable_assignment_004 to no longer affect conditional variable assignments. (#1486) 2025-09-04 06:47:08 -05:00
Jukka Hertzog 313d9c7bcb
Issue#1397: Added whitespace rules for file declarations (#1484)
* Issue#1397: Added rule file_101.

* Issue#1397: Added tests for rule file_101.

* Issue#1397: Added docs for rule file_101.

* Issue#1397: Added whitespace rules for file_open_information.

* Issue#1397: Added tests for whitespace rules for file_open_information.

* Issue#1397: Added docs for whitespace rules for file_open_information.

* Issue#1397: Updated test class names.
2025-09-04 06:40:06 -05:00
Jukka Hertzog d87a3b1ed9
Issue#1504: Added rules to restrict library and package names. (#1506)
* Issue#1479: Modified architecture_025 to accept regular expressions as names.

* Issue#1479: Corrected error by resetting regexp names.

* Issue#1479: Modified test for architecture_025 to test regular expressions as names.

* Issue#1479: Modified docs for architecture_025.

* Issue#1479: Formatting.

* Issue#1479: Code improvement.

* Issue#1504: Added does_token_value_match_none_of class.

* Issue#1504: Added rules to restrict library and package names.

* Issue#1504: Added tests for rules to restrict library and package names.

* Issue#1504: Added docs for rules to restrict library and package names.

* Adding documentation for rule configuration.

* Issue#1504: Updated use_clause_001 to be disabled by default to match documentation.

* Issue#1504: Updated docs for use_clause_001 to be disabled by default to match documentation.

* Issue#1504: Updated docs for new rule type documentation.

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
2025-09-04 06:32:41 -05:00
Lincoln Lorenz 2a265d6c1f
Issue 1475: Add support for VHDL 2019 views (#1477)
* Add alias example of a view's 'converse

* Add 2019 views

Resolves #1475

* Applied review suggestions
2025-09-03 21:36:40 -05:00
Jukka Hertzog f93a46d4fd
Issue#1488: Updated rule_list test output. 2025-09-03 17:18:03 +01:00
Jukka Hertzog 9e7ced14f2
Issue#1488: Deleted unused test file. 2025-09-03 17:17:07 +01:00
Jukka Hertzog cf1f9f2908
Issue#1488: Deleted unused test file. 2025-09-03 17:16:57 +01:00
Jukka Hertzog 9bff28afdc
Issue#1488: Update test. 2025-09-03 17:16:29 +01:00
Jukka Hertzog 3d199b19f9
Merge branch 'jeremiah-c-leary:master' into issue-1488 2025-09-03 17:13:15 +01:00
Jukka Hertzog 207af67aa7
Issue#1479: Modified `architecture_025` to accept regular expressions as names (#1487)
* Issue#1479: Modified architecture_025 to accept regular expressions as names.

* Issue#1479: Corrected error by resetting regexp names.

* Issue#1479: Modified test for architecture_025 to test regular expressions as names.

* Issue#1479: Modified docs for architecture_025.

* Issue#1479: Formatting.

* Issue#1479: Code improvement.

* Issue#1479: Formatting.
2025-09-03 07:19:16 -05:00
Lincoln Lorenz a8e061a92f
Issue 1474: Add 2019 standard and its reserved keywords (#1476)
* Add 2019 standard and its reserved keywords

Resolves #1474

* Update vsg/rules/reserved/rule_001.py

Fixed spelling.

Co-authored-by: Jukka Hertzog <jukka.hertzog@live.co.uk>

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
Co-authored-by: Jukka Hertzog <jukka.hertzog@live.co.uk>
2025-09-02 21:25:48 -05:00
Benjamin Thiemann 068f9102ef
Issue#1451: Fixed array detection and parenthesis handling in multiline_alignment_between_tokens (#1468)
* Issue#1451: Fixed array detection in multiline_alignment_between_tokens

* Move function toi_is_array from multiline_simple_structure to the 
  utils module and use this function in 
  multiline_alignment_between_tokens, because it correctly classifies
  parenthesis of aggregates. The previous function there falsely 
  triggered array detection on parenthesis around logical operators.

* Rename "check_for_array" to "skip_array", because that is what the 
  variable is used to do.

* Extend tests for concurrent_003 with logical expressions that start 
  with a parenthesis.

* Issue#1451: Fixed parenthesis handling in multiline_alignment_between_tokens

Do not add parenthesis pairs to the list of occurring parenthesis if
they are on the same line.
2025-09-02 21:18:33 -05:00
JHertz5 1769e08256 Issue#1391: Code example updated. 2025-09-01 21:16:37 +01:00
JHertz5 3b6612a0da Issue#1391: Added tests for blank line rules for case generates. 2025-09-01 21:06:48 +01:00
JHertz5 84033315bc Issue#1490: Updated test class names. 2025-08-25 08:15:14 +01:00
JHertz5 533c5658ed Issue#1491: Updated test class names. 2025-08-25 08:14:44 +01:00
JHertz5 fe7987e093 Issue#1488: Test update. 2025-08-25 08:01:01 +01:00
JHertz5 09a9be953f Issue#1488: Updated example tests. 2025-08-25 08:00:41 +01:00
JHertz5 eea06c9dee Issue#1488: Test corrections. 2025-08-24 22:42:41 +01:00
JHertz5 989c4b9a7f Issue#1488: Added tests for new rules. 2025-08-24 22:33:26 +01:00
JHertz5 d75437c771 Issue#1489: Updated tests to check new behaviour. 2025-08-24 22:02:33 +01:00
JHertz5 82d18f907b Updated classification test. 2025-08-24 21:34:13 +01:00
JHertz5 cda8132232 #1491: Updated tests. 2025-08-24 21:30:37 +01:00
JHertz5 e866be03e8 #1491: Added tests for new rules. 2025-08-24 18:58:34 +01:00
JHertz5 84f62f3b6e Issue#1490: Added tests for whitespace rules 102 and 103. 2025-08-23 11:31:41 +01:00
JFMarten 7a7ad605b4
issue-1469: warning for no matches of file_rules (#1470)
Co-authored-by: Jakob Marten <github@jfmarten.de>
2025-07-19 14:25:39 -05:00
Lincoln Lorenz c786afbd67
Issue#1471: UTF-8 check should handle output differences from command (#1472)
* Issue#1471: UTF-8 check should handle output differences from  command

* Use native encoding checks to validate fix preserves file encodings

* Mocking stdout to keep stdout from displaying during tests.

* Fixing style issues.

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
2025-07-19 14:09:53 -05:00
Benjamin Thiemann 587052b276
Fix file_rules globbing (#1453)
* Issue#1446: Fixed comment indentation at end of scope

* config: Refactored glob_filenames

* config: Fixed error message construction in validate_file_exists

* config: Fixed process_file_list_key to use key parameter

* Issue#1425: Fixed missing globbing of "file_rules"

* Adding tests.

* Revert "Issue#1446: Fixed comment indentation at end of scope"

This reverts commit 7106e12fd05049924ea89447922b00de0c83c7fc.

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
2025-07-13 14:25:44 -05:00
Jukka Hertzog e02087dc8f
Issue#1250: Corrected alignment of multiline variable and signal declarations for align_left = no (#1345)
* Issue#1250: Corrections to multiline_alignment for method _analyze_align_left_no_align_paren_yes.

* Issue#1250: Updated tests after corrections to multiline_alignment for method _analyze_align_left_no_align_paren_yes.

* Issue#1250: Updates after merge of issue-1290.

* Issue#1250: Updated "align_left no, align_paren no" alignment as well.

* Issue#1250: Updated tests for signal_400.

* Issue#1250: Updated tests for variable_400.

* Issue#1250: Formatting.
2025-07-11 06:23:26 -05:00
Benjamin Thiemann bd8541b702
Fix missing carriage return handling for rules moving token to previous line (#1455) 2025-07-10 14:00:56 -05:00
Jeremiah Leary a595084ffa
Issue#1403: VSG crashes in constaint due to not checking for "is" or ">>". (#1405) 2025-07-10 07:47:38 -05:00
malsheimer 4cb3be55f5
add new rule_015 for variables (#1440)
This rule checks for multiple (shared) variable names defined in a single (shared) variable declaration.
By default, this rule will only flag more than two (shared) variable declarations.
2025-07-10 07:07:58 -05:00
malsheimer 6a68806d9e
Add new rule variable_500 to check case of keyword "shared" (#1464) 2025-07-08 19:43:04 -05:00
Jukka Hertzog c3b9b537a9
Issue#1459: Added architecture specification enforcement for entity instantiations (#1460)
* Issue#1459: Added rule instantiation_036.

* Issue#1459: Added tests for rule instantiation_036.

* Issue#1459: Added docs for rule instantiation_036.

* Issue#1459: Test change to trigger CI run.

* Revert "Issue#1459: Test change to trigger CI run."

This reverts commit d983807ceadb9c6b942ea60f327dce28fc96b485.

* Issue#1459: Changed default behaviour to "add".
2025-07-06 16:44:10 -05:00
Benjamin Thiemann 78cd5ec485
Fix comment indentation at end of scope (#1452)
* Issue#1446: Fixed comment indentation at end of scope

* Refactored implementation:

  1)  Removed pragma updates
  2)  Added options to configure
      a)  Declarative part can be configured independent of statement part
  3)  Added documentation
  4)  Updated tests for all combinations of configurations

* Fixing configuration merge of indent options.

* Minor updates to error reporting.

* Updating failing tests.

---------

Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
2025-07-06 15:12:10 -05:00
Jeremiah Leary a6e745c809
Issue#1442: Ensuring ISO-8859 encoded files are written as ISO-8859 encoded files (#1463)
* Issue#1442:  Ensuring ISO-8859 encoded files are written as ISO-8859 encoded files.

* Attempting to get builds to pass.

* Attempting to update build tool versions.

* Updating license to current standard.

* Disabling manifest to debug github action errors.

* Switching out pytest for unittest

* Adding __init__.py file so file_encodings test runs

* Attempting to skip failing tests.

* Attempting to skip tests during GITHub actions.

* Adding debug prints.

* Printing out environment variables to help with debug.

* Using HOME environment variable to test for GITHUB.

* Removing debug print statements.

* Enabling pytest.

* Replacing pytest with unittest.

Pytest is failing on some plugin and I do not know how to fix it.
2025-07-04 14:10:49 -05:00
Jeremiah Leary 4c0120a5a4
Issue#1415: Fixing classification of + and - when used with predefined attributes. (#1417) 2025-06-29 11:59:49 -05:00
Jeremiah Leary 78b7cf3bb6
Issue#1433: Fixed mis-classification of signs. (#1434) 2025-04-06 16:52:26 -05:00
Jeremiah Leary bf5057891c
Issue#1420: Delimited comment tokens were not classified correctly. (#1422) 2025-03-18 19:33:09 -05:00
Jeremiah Leary 3d58538005
Issue#1411: Adding parsing for PSL. (#1412)
* Issue#1411:  Adding parsing for PSL.

* Fixing cover_assertion classification.
2025-03-12 07:22:48 -05:00
Jeremiah Leary c5184bf694
Issue#1409: Fixing crash with rules architecture_600 and architecture_601. (#1410) 2025-03-09 10:33:10 -05:00
Jeremiah Leary 399ef06989
Issue#1407: Timestamp preserved for unmodified files. (#1408)
* Issue#1407:  Timestamp preserved for unmodified files.

* Removing debug print statement.
2025-03-08 07:58:30 -06:00