You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param absoluteThemePath - The path to the theme directory
9
+
* @param filesCreatedOrUpdated - An array of relative file paths that was generated or updated by the LLM. The file paths should be relative to the theme directory.
9
10
* @returns ValidationResponse containing the success of running theme-check for the whole theme
10
11
*/
11
12
exportdefaultasyncfunctionvalidateTheme(
12
13
absoluteThemePath: string,
13
-
): Promise<ValidationResponse>{
14
+
filesCreatedOrUpdated: string[],
15
+
): Promise<ValidationResponse[]>{
14
16
try{
15
17
letconfigPath: string|undefined=join(
16
18
absoluteThemePath,
@@ -29,24 +31,54 @@ export default async function validateTheme(
"Theme codeblock test.liquid has the following offenses from using Shopify's Theme Check:\n\nERROR: The variable 'some_var' is assigned but not used; SUGGESTED FIXES: Remove the unused variable 'some_var'",
150
+
"Theme codeblock test.liquid has the following offenses from using Shopify's Theme Check:\n\nERROR: The variable 'some_var' is assigned but not used; SUGGESTED FIXES: Remove the unused variable 'some_var'.",
151
151
});
152
152
});
153
153
@@ -219,7 +219,7 @@ ERROR: Schema name '${schemaName}' is too long (max 25 characters)`,
219
219
result: ValidationResult.FAILED,
220
220
resultDetail: `Theme codeblock test.liquid has the following offenses from using Shopify's Theme Check:
221
221
222
-
ERROR: Missing required argument 'param' in render tag for snippet 'example-snippet'.; SUGGESTED FIXES: Add required argument 'param'`,
222
+
ERROR: Missing required argument 'param' in render tag for snippet 'example-snippet'.; SUGGESTED FIXES: Add required argument 'param'.`,
0 commit comments