You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatter has to be run twice to get code to a state where it passes the check.
Example
starting code:
definput(%{type: "select"}=assigns)do~H"""<select><option:if={@prompt}value=""class="dark:!text-white">{@prompt}</option><!-- TODO: set color to below options somehow -->{IdoWeb.SlimSelectForm.options_for_select(@options,@value,"dark:!text-white")}</select>"""end
with mix.format:
definput(%{type: "select"}=assigns)do~H"""<select><option:if={@prompt}value=""class="dark:!text-white">{@prompt}</option><!-- TODO: set color to below options somehow -->{IdoWeb.SlimSelectForm.options_for_select(@options,@value,"dark:!text-white")}</select>"""end
Environment
Actual behavior
Formatter should format all code in a single pass that will then be accepted by
mix format --check-formatted
(related to #3544)
Expected behavior
Formatter has to be run twice to get code to a state where it passes the check.
Example
starting code:
with
mix.format
:(and
mix format --check-formatted
will error:If I run
mix.format
again, it will add those two extra lines that thecheck-formatted
wants, and then everything passes.If I remove the line with the TODO comment, the formatting works (and the blank lines before the
</select>
are removed.The text was updated successfully, but these errors were encountered: