Skip to content
This repository was archived by the owner on Jul 27, 2024. It is now read-only.

Add a new VariableName check #717

Closed
wants to merge 1 commit into from

Conversation

Darhazer
Copy link

Following Shopify/theme-tools#447 this check requires that variable names use snake_case

This is my first theme check so any feedback is welcome. As a learning exercise, I intend to do all most of the checks suggested in Shopify/theme-tools#447 so if anything there is outdated, I'd appreciate updating.

Require variable names to be snake_case
# frozen_string_literal: true
module ThemeCheck
class VariableName < LiquidCheck
severity :suggestion
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps it should be :style

@madsenmm
Copy link

madsenmm commented Jan 5, 2024

@Darhazer This PR dead? 😢

@Darhazer
Copy link
Author

Darhazer commented Jan 5, 2024

@tmmgrafikr seems to me theme-check is not really maintained.

@madsenmm
Copy link

madsenmm commented Jan 5, 2024

@tmmgrafikr seems to me theme-check is not really maintained.

Do you use this custom check yourself?

@Darhazer
Copy link
Author

Darhazer commented Jan 5, 2024

I'm not using theme-check at the moment.
I was just interested in the project from the perspective of being a linter for liquid templates

@madsenmm
Copy link

Created an update PR of this here: Shopify/theme-tools#359

@lukeh-shopify
Copy link
Contributor

👋🏻 Hi all, given that the theme-tools update that does this has been merged, I'm going to be closing this PR. This repository is no longer maintained. Thank you for your contributions!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants