Skip to content

Add print_width config option for rake tasks #123

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

Merged
merged 1 commit into from
Jul 31, 2022

Conversation

molawson
Copy link
Contributor

These rake task helpers are super handy, but they don't allow configuring the --print-width option. This adds the option to both WriteTask and CheckTask, making it available in just the same way as the other options.

The existing tests for this rake task don't exercise most of the other options, so I didn't add any new tests here, especially since the logic is minimal. I have tested this locally, and it's working exactly as expected. I'm also happy to add more automated tests if you'd like.

@molawson molawson mentioned this pull request Jul 30, 2022
@kddnewton
Copy link
Member

Looks good!

@kddnewton kddnewton merged commit cf97c1b into ruby-syntax-tree:main Jul 31, 2022
@molawson molawson deleted the rake-print-width-arg branch August 1, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants