-
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
Unexpected alignment within function #571
Comments
Hey @imd1 , Are you referring to the alignment of the variable assignment operator |
I would have expected this based on default VSG behavior seen so far:
|
@jeremiah-c-leary : can you give me some tips how to fix this? |
Adding the ability to also align variable assignments. 1) Updated documentation 2) Updated test 3) Updated rule to align <= and :=
Hey @imd1, I added the alignment of := and <= to the rule I think we need to add a parameter to stop aligning if a loop is encountered. Take this for a spin and let me know if you agree. I pushed this to the issue-571 branch. --Jeremy |
I would assume this new rule (and other similar new rules) would use the control statements like |
I've just noticed that |
I've visually reviewed your changes, and they look good to me. Feels like this issue is similar to #562 - I assume the solution is similar |
let me research a little. |
Well...it is there...but is set to false: {
"rule": {
"subprogram_body_400": {
"indentSize": 2,
"phase": 5,
"disable": false,
"fixable": true,
"severity": "Error",
"compact_alignment": true,
"blank_line_ends_group": true,
"comment_line_ends_group": true,
"if_control_statements_ends_group": true,
"case_control_statements_ends_group": true,
"loop_control_statements_ends_group": false
}
}
} I will set it to true. |
Setting loop_control_statements_ends_group to true for default behavior.
Just pushed changing If the results are good I will merge it to master. --Jeremy |
I'm happy for you to merge |
Environment
VSG latest master, Centos 7.6
Describe the bug
After VSG has reported success, the following code snippet has non-optimal vertical alignment
Screenshots
The text was updated successfully, but these errors were encountered: