jeremiah-c-leary / vhdl-style-guide

Style guide enforcement for VHDL
GNU General Public License v3.0
185 stars 38 forks source link

Extra "Add" printed in `package_body_003` solution message #984

Closed JHertz5 closed 1 year ago

JHertz5 commented 1 year ago

Environment v3.16.0

Describe the bug A violation of package_body_003 printed the following solution message: package_body_003 | Error | 514 | Add Add package name In the solution message, the word "Add" is duplicated.

Similarly, when the action of the rule is set to 'remove', the following error is printed. package_body_003 | Error | 3 | Remove Add package name. In the solution message, the sentence "Remove Add ..." doesn't make sense.

To Reproduce Steps to reproduce the behavior:

  1. Create a file "test.vhd" with the following contents:
    
    package body test is

end package body;

2. Run `vsg -f test.vhd`
3. Observe that the output is 

================================================================================ File: .\test.vhd

Phase 1 of 7... Reporting Total Rules Checked: 142 Total Violations: 2 Error : 2 Warning : 0 ----------------------------+------------+------------+-------------------------------------- Rule | severity | line(s) | Solution ----------------------------+------------+------------+-------------------------------------- package_body_003 | Error | 4 | Add Add package name. ----------------------------+------------+------------+-------------------------------------- NOTE: Refer to online documentation at https://vhdl-style-guide.readthedocs.io/en/latest/index.html for more information.


4. See error.

**Expected behavior**
I expect the sentence to be "<Remove|Add> package name" rather than "<Remove|Add> Add package name".

**Screenshots**
None

**Additional context**
None
JHertz5 commented 1 year ago

I've raised PR #985 to correct this issue.