-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error instead of commit on bad format #97
Conversation
Hi @fizruk @fredrik-bakke I've lost track of what's up with autoformating. Now whenever I merge something I'm getting an error message about autoformating failure. Can someone explain the current status? |
Hi, the error can be safely ignored. The workflow is just not set up properly. |
This pr makes it so other prs are blocked until they are properly formatted. The recommended procedure should then be for contributors to set up autoformatting in their ide. Given that you agree we should have this feature/rule of course. |
Currently I think it is a good idea to wait until there are few other prs in the pipeline to merge this, so people aren't surprised by it and get weird merge conflicts. |
Note that here we only talk about formatting of config files and text in Markdown (including |
@fredrik-bakke can you please update/fix the formatting (I have updated the branch, and it needs some formatting now)? @fredrik-bakke @emilyriehl I suggest that we merge this before #103 (which supersedes #100) and help @cesarbm03 with his PR in case of conflicts. |
I'll be at my computer in a couple of hours. I can fix it then |
This reverts commit d47e9ff.
Okay, this one should be ready for merging again now. Apologies if this has caused problems for anyone. In #94, I'm adding a remark to the documentation that we enforce autoformatting rules and that contributors should install an autoformatter. |
Turns out it's not as easy as expected to set up invisible autoformatting. Thus, instead, this PR makes it so the workflow just blocks ill-formatted PRs. Contributors will then have to install an autoformatter (e.g. Prettier) locally to fix the issue.