Skip to content

Commit

Permalink
[TASK] exclude inherits_brand_color check from child theme validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Feb 16, 2024
1 parent 246f868 commit 31fcc1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/hubspot/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ function showValidationResults (validationResults) {
)
failedValidations.forEach((/** @type {any} */ val) => {
if (childTheme) {
if (val.check !== 'theme_has_internal_dependency') {
if (
val.check !== 'theme_has_internal_dependency' &&
val.check !== 'inherits_brand_color'
) {
console.error(`\n${chalk.red.bold('[ERROR]')} ${val.description}`)
console.warn(`${chalk.dim('doc-link:')} ${val.documentationLink}`)
showFileInfo(val.file, val.line)
Expand Down

0 comments on commit 31fcc1e

Please sign in to comment.