-
Notifications
You must be signed in to change notification settings - Fork 38
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
Whitespace rules should allow <= operator #1190
Comments
Morning @abyszuk, I imagine the fix would be the maximum allowed in a For example the following code snippet:
if the whitespace rule was configured for
two spaces before the colon? --Jeremy |
Yes, that's my thought as well. |
Afternoon @abyszuk , I pushed an update for this to the Thanks, --Jeremy |
Hello @jeremiah-c-leary
Thank you for the fast update! |
After a bit of debugging the problem seems to be that if there's no space then in the |
Evening @abyszuk , I pushed an update to the no spaces case. Essentially if there are no spaces then the Thanks, --Jeremy |
Yes, I can confirm this works properly now. |
Awesome, I will get this merged to master.
Thanks for the kind words. --Jeremy |
Currently VSG allows only to configure either a constant or minimum number of spaces.
https://vhdl-style-guide.readthedocs.io/en/3.24.0/configuring_whitespace_rules.html#configuring-whitespace-rules
There are cases where a maximum number of spaces would be useful as well, i.e.
number_of_spaces: <=1
.For example rule process_024
I'm fine with code having 0 or 1 spaces:
But for sure I wouldn't want the code like this:
The text was updated successfully, but these errors were encountered: