Skip to content
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

Rule for "space around operators" (?) #1171

Open
ungultig1 opened this issue May 17, 2024 · 2 comments · May be fixed by #1172
Open

Rule for "space around operators" (?) #1171

ungultig1 opened this issue May 17, 2024 · 2 comments · May be fixed by #1172
Assignees

Comments

@ungultig1
Copy link

Hi there,

i couldn't find the following rule yet, so could be included in future releases.

I'd like to have a format rule for this case, where it inserts a single space before and after operators:

violation:

if (readAddr>=writeAddr) then
 ...
end if;

Fix:

if (readAddr >= writeAddr) then
 ...
end if;

Thank you.

Greetings,

@jeremiah-c-leary
Copy link
Owner

Evening @ungultig1 ,

You are correct, there is no rule for whitespace around most operators. I am currently away from a computer until June 2nd. I will add a rule shortly after that date.

Regards,

--Jeremy

@jeremiah-c-leary
Copy link
Owner

Morning @ungultig1 ,

I have pushed an update for this issue to the issue-1171 branch. When you get a chance could you validate it on your end and let me know if it is working on your end?

Thanks,

--Jeremy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: User Validation
2 participants