-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signal and variable assignments are not aligned #562
Comments
@jeremiah-c-leary : there are separate rules for signals and variables. What's the best way forward? Create a new rule or update an existing rule? |
@jeremiah-c-leary: what do you think about my question above? |
Hey @imd1, That is a good question. We have moved most of the alignment rules "up" the hierarchy. For example, architecture_026 so we could align :'s across multiple types of declarations. I would think it would apply here also. So we could depricate sequential_005 and variable_assignment_005 and create an architecture rule. Maybe a procedure and function rule also? Would we always want to align the <= and the :=? |
My gut feeling is yes we would |
I am planning to have a go at this ticket when I next get time...are you OK with that? |
Sure, I would take a look at |
Having seen your solution to #571, I wonder whether it would be more consistent to update |
I would deprecate both
This is something that has evolved as VSG was worked on. There are still some rules that should be moved according to the above statements. In fact, You could probably copy |
Adding rule to align signal and variable assignment operators. 1) Updated documentation 2) Updated tests a) Removed deprecated tests b) Added process tests 3) Updated rules a) Deprecated signal_005 b) Deprecated variable_assignment_005 c) Added rule process_400
Hey @imd1, Not sure if you were able to get to this, but I pushed an update to this to the issue-562 branch. When you get a chance could you give it a try and let me know what you think? Thanks, --Jeremy |
Effectively reviewed pulled request and it looks good from the unit tests - no time to actually try it out, so go for it when you want to |
Adding severity to test JSON output.
* Updates for issue #562 Adding rule to align signal and variable assignment operators. 1) Updated documentation 2) Updated tests a) Removed deprecated tests b) Added process tests 3) Updated rules a) Deprecated signal_005 b) Deprecated variable_assignment_005 c) Added rule process_400 * Updates for issue #562 Adding severity to test JSON output. * Updates for issue #562 Formatting updates.
This has been merged to master and will be part of the 3.4.0 release. |
Environment
VSG 3.1.0, Centos 7.6
Describe the bug
When a process uses signals and variables, their assignments statements are not vertically aligned
Expected behavior
I would expect them to be aligned
Screenshots
Here's an example of VSG fixed code illustrating the problem:
The text was updated successfully, but these errors were encountered: