-
Notifications
You must be signed in to change notification settings - Fork 95
Do something about the UnusedAssign fixer and formatOnSave: true
#597
Comments
formatOnSave: true
Oh wow... What's happening here is that you have an UnusedAssign and that it's being corrected (but only on the last assign). If you rerun the corrector, it'll start happening in the other branches. I don't know if that's still a bug or how we should fix it. But I kind of agree that you might not want this feature to run with the fixer setup with In the meantime, the proper course of action would be to disable the check: {% comment %}theme-check-disable UnusedAssign{% endcomment %} Or in your UnusedAssign:
enabled: false |
👋🏻 Hi @jonXmack! Thanks for reporting this. Unfortunately the Ruby version of theme check has been deprecated for some time. Would you be able to confirm you are still having issues when using our maintained version of theme check? This is done using either the latest version of the Shopify CLI, or via the Shopify Liquid Visual Studio Code extension. If you are still having issues, please raise an issue over in the CLI or theme tools repositories. Thanks! |
@lukeh-shopify I raised this over 2 years ago and as such am no longer having the issue. Thanks for checking in. |
When running the auto correct flag on theme check it's stripping content from the final when. Two examples below:
Before
After
Before
After
I can't see any reason for the variables to be removed, if I check the settings schema for the grid it has those options in, yet the variable is being removed?
The text was updated successfully, but these errors were encountered: