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

format temporary variables in loops in newline #70

Open
3 tasks
kdauer opened this issue May 19, 2022 · 0 comments
Open
3 tasks

format temporary variables in loops in newline #70

kdauer opened this issue May 19, 2022 · 0 comments
Labels
story 📚 User stories are short, simple descriptions of a feature.

Comments

@kdauer
Copy link
Contributor

kdauer commented May 19, 2022

Problem to solve

As Squeak Developer, I want temporary variables set in a new line when I have a loop so that there is a better overview and I don't get confused with all the pipe chars |.

Further details

currently a do-loop with a temp var looks like this:

aNode elements do: [:element | | isLast |
			isLast := element = aNode elements last.

for a better overview the temp var should be in a newline like this

aNode elements do: [:element | 
                         | isLast |
			isLast := element = aNode elements last.

Acceptance Criteria

  • Given any method with a temp var in a block. When the method is formatted, then the temp var is set in a new line
  • The preference can be turned on and off in the poppyprint-preferences
  • Code Example:
aNode elements do: [:element | 
                         | isLast |
			isLast := element = aNode elements last.
@kdauer kdauer added story 📚 User stories are short, simple descriptions of a feature. proposal 📄 Proposal for new Backlog Items labels May 19, 2022
@kdauer kdauer removed the proposal 📄 Proposal for new Backlog Items label Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
story 📚 User stories are short, simple descriptions of a feature.
Projects
None yet
Development

No branches or pull requests

1 participant