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 #756

Closed
saiichihashimoto opened this issue Feb 8, 2024 · 2 comments
Closed

UnusedSnippet selecting snippets that are being used #756

saiichihashimoto opened this issue Feb 8, 2024 · 2 comments
Labels
bug Something isn't working

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
@saiichihashimoto saiichihashimoto added the bug Something isn't working label Feb 8, 2024
@lukeh-shopify
Copy link

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... 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants