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

UnusedSnippet selecting snippets that are being used #4227

Open
saiichihashimoto opened this issue Feb 8, 2024 · 3 comments
Open

UnusedSnippet selecting snippets that are being used #4227

saiichihashimoto opened this issue Feb 8, 2024 · 3 comments
Labels
Area: @shopify/theme @shopify/theme package issues Bug

Comments

@saiichihashimoto
Copy link

Describe the bug
We had UnusedSnippet on with autofix and files that were actually being used were being deleted. We could turn off autofix, but it would then still have false positives and report an error. They use the {% render 'snippet' %} syntax.

Expected
UnusedSnippet should not report on snippets that are actually used.

Actual
UnusedSnippet does report on snippets that are used.

Debugging information

  • Mac Apple M2, but also in Github Actions
  • Version: 1.15.0
@lukeh-shopify
Copy link
Contributor

lukeh-shopify commented Jul 12, 2024

Hi @saiichihashimoto, thanks for the report. Are you able to switch to the more maintained non Ruby version (shopify/theme-check-action@v2) of the Github Action and confirm this is still an issue? The ruby version is now deprecated.

If you are having trouble with the latest version of the Github Action, please raise an issue over in https://github.com/Shopify/theme-check-action

@saiichihashimoto
Copy link
Author

Nothing in this repo mentions that this is deprecated, correct me if I'm wrong. Also, are you saying that we've replaced the local cli with a github action only? Very confusing where I'm supposed to install this from or file this issue for it to just get closed and not moved to the correct repo... 😭

@lukeh-shopify
Copy link
Contributor

lukeh-shopify commented Jul 19, 2024

Nothing in this repo mentions that this is deprecated, correct me if I'm wrong. Also, are you saying that we've replaced the local cli with a github action only? Very confusing where I'm supposed to install this from or file this issue for it to just get closed and not moved to the correct repo... 😭

Hey @saiichihashimoto, sorry for not being very clear. I'm in the process of deprecating the theme-check repository at the moment, as there is no current support for it.

It looks like I incorrectly assumed that you were using the Github action. You are still able to use Shopify CLI to run theme checks. I'm going to transfer this issue to the Shopify CLI, and are you able to confirm that you are still having the same issue with the latest version of the CLI?

@lukeh-shopify lukeh-shopify reopened this Jul 19, 2024
@lukeh-shopify lukeh-shopify transferred this issue from Shopify/theme-check Jul 19, 2024
@lukeh-shopify lukeh-shopify added the Area: @shopify/theme @shopify/theme package issues label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues Bug
Projects
None yet
Development

No branches or pull requests

2 participants