Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .coderabbit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
reviews:
path_filters: ["**/*","*.*"]
3 changes: 3 additions & 0 deletions .theme-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Explicitly enable all checks (by default, all are enabled)
checks:
all: true
Comment on lines +1 to +3
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Configuration key likely unsupported – switch to official format

The Shopify Theme Check gem does not recognize a checks: all: true stanza.
To enable all checks you normally either omit the file entirely (the default) or use extends: all (or the newer ThemeCheck: extends: syntax). Keeping the current block will silently be ignored and you’ll think the linter is active when it isn’t.

-# Explicitly enable all checks (by default, all are enabled)
-checks:
-  all: true
+# Enable every built-in check and fail the pipeline on any error
+extends: all
+fail_level: error      # optional – remove if you only want warnings

Add a trailing newline as flagged by yamllint.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Explicitly enable all checks (by default, all are enabled)
checks:
all: true
# Enable every built-in check and fail the pipeline on any error
extends: all
fail_level: error # optional – remove if you only want warnings
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 3-3: no new line character at the end of file

(new-line-at-end-of-file)

🤖 Prompt for AI Agents
In .theme-check.yml at lines 1 to 3, the configuration uses an unsupported key
'checks: all: true' which the Shopify Theme Check gem ignores. Replace this
stanza with the official format by removing the 'checks' block entirely to use
the default (all checks enabled) or use 'extends: all' or 'ThemeCheck: extends:'
syntax as per the latest documentation. Also, ensure the file ends with a
trailing newline to satisfy yamllint.

8 changes: 8 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* CSS with deliberate issues */
body {
font-family: Arial sans-serif /* Missing comma between fonts and no semicolon */
color: #333
}
.invalid-selector {
--unknown: 123 /* Invalid property/value syntax */
}
6 changes: 6 additions & 0 deletions assets/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// JavaScript with syntax errors
function initTheme() {
console.log("Initializing theme... // Missing closing quote and parenthesis
}

initTheme();
13 changes: 13 additions & 0 deletions config/settings_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"name": "General",
"settings": [
{
"type": "text",
"id": "title",
"label": "Store Title",
"default": "My Shopify Store",
} // Trailing comma causes invalid JSON
]
}
]
14 changes: 14 additions & 0 deletions layout/theme.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ page_title </title> {# Missing closing curly brace and invalid Liquid tag #}
{{ 'style.css' | asset_url | stylesheet_tag }}
</head>
<body>
{% include 'header' %} {# Assume this is meant to call a section/snippet but syntax might be off #}
{{ content_for_layout }
{% include 'footer' %}
{{ 'theme.js' | asset_url | script_tag }}
</body>
</html>
5 changes: 5 additions & 0 deletions locales/en.default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"general": {
"welcome": "Welcome to our store!", // Trailing comma causes invalid JSON
}
}
4 changes: 4 additions & 0 deletions sections/footer.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<footer>
<p>© {{ 'now' | date: "%Y" }} My Shopify Store</p>
<p>Contact us at email@example.com {# Missing closing tag or unexpected text #}
</footer>
9 changes: 9 additions & 0 deletions sections/header.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<header>
<h1>{{ settings.title }</h1> {# Missing closing double curly brace on settings.title #}
<nav>
<ul>
<li><a href="/collections/all">Products</a></li>
<li><a href="/about-us">About Us</a></li>
<!-- Missing closing </ul> tag -->
</nav>
</header>
4 changes: 4 additions & 0 deletions snippets/product-card.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="product-card">
<h2>{{ product.title </h2> {# Missing closing curly brace for product.title #}
<p>Price: {{ product.price | money }}</p
</div>
8 changes: 8 additions & 0 deletions templates/index.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% section 'header' %}
<main>
<h2>Featured Products</h2>
{% for product in collections.frontpage.products %}
{% include 'product-card' {# Missing closing %} tag #}
{% endfor %}
</main>
{% section 'footer' {# Using "section" instead of include for footer, and missing closing %} #}
8 changes: 8 additions & 0 deletions templates/product.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% section 'header' %}
<main>
<article>
<h1>{{ product.title }}</h1>
<div>{{ product.description {# Missing closing curly brace #}
</article>
</main>
{% section 'footer' %}