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

fix: pass dot_formatter when updating rewrite sources #144

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

zachallaun
Copy link
Collaborator

Closes #143

I'd like to wait for @leandrocp to confirm that this branch works for him before merging 👍

Contributor checklist

  • Bug fixes include regression tests
  • Features include unit/acceptance tests

Comment on lines -589 to +590
|> Rewrite.Source.update(:file_creator, :content, contents)}
|> update_source(igniter, :content, contents, by: :file_creator)}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the previous call format was already incorrect and should have been by: :file_creator -- something that slipped by in the update to Rewrite 1.0?

The next change is the same.

Comment on lines +21 to +22
|> Igniter.Project.Deps.add_dep({:mimic, "~> 1.7"})
|> Igniter.Project.Formatter.import_dep(:mimic)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a little hacky, but I needed a dep we already had that exports some locals_without_parens, and Mimic was the one I found.

@leandrocp
Copy link
Contributor

@zachallaun confirmed it's working as expected!

@zachallaun zachallaun merged commit b5df895 into main Nov 6, 2024
17 checks passed
@zachallaun zachallaun deleted the za-dotformatter-gh143 branch November 6, 2024 14:04
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.

Installer not respecting .formatter.exs
2 participants