MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / run

Method run

lib/lang/validator.js:16–24  ·  view source on GitHub ↗
(defaultLang = null)

Source from the content-addressed store, hash-verified

14 }
15
16 async run(defaultLang = null) {
17 const templatesPath = path.join(this.themePath, 'templates');
18 const paths = await this.getLangHelpersPaths(templatesPath);
19 const dedupePaths = [...new Set(paths)];
20 const langFiles = await this.getLangFilesContent(defaultLang);
21 const errors = this.validate(dedupePaths, langFiles);
22 this.printErrors(errors);
23 return errors;
24 }
25
26 printErrors(errors) {
27 if (errors.length > 0) {

Callers 1

validator.spec.jsFile · 0.45

Calls 4

getLangHelpersPathsMethod · 0.95
getLangFilesContentMethod · 0.95
validateMethod · 0.95
printErrorsMethod · 0.95

Tested by

no test coverage detected