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

writer: Preserve empty lines between decls for modules #2011

Closed

Conversation

tk0miya
Copy link
Contributor

@tk0miya tk0miya commented Sep 16, 2024

#146 adds preservation empty lines between declarations feature to the classes.

This also introduces the same feature to the modules. Before this change, our writer inserts a line to between all declarations. It's a bit difficult to read. Therefore, this increases the readability of the generated RBS files.

ruby#146 added preservation empty lines
between declarations feature to the classes.

This also introduces the same feature to the modules.  Before this
change, our writer inserts a line to between all declarations.  It's
a bit difficult to read.  Therefore, this increases the readability
of the generated RBS files.
@tk0miya tk0miya force-pushed the writer/preserve_empty_lines_for_modules branch from d034d66 to 00e6112 Compare September 16, 2024 17:20
@soutaro
Copy link
Member

soutaro commented Sep 17, 2024

I don't think deleting these line breaks makes sense. 🙏

@soutaro soutaro closed this Sep 17, 2024
@tk0miya
Copy link
Contributor Author

tk0miya commented Sep 17, 2024

For example, the types of ActiveRecord models will become very huge.
https://github.com/kaigionrails/conference-app/blob/main/sig/rbs_rails/app/models/talk.rbs

There are too many blank lines. I know this is not for human, but...

@tk0miya tk0miya deleted the writer/preserve_empty_lines_for_modules branch September 17, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants