Skip to content

Add DiscourageSectionBlocks check#1231

Open
andershagbard wants to merge 1 commit into
Shopify:mainfrom
andershagbard:check/discourage-section-blocks
Open

Add DiscourageSectionBlocks check#1231
andershagbard wants to merge 1 commit into
Shopify:mainfrom
andershagbard:check/discourage-section-blocks

Conversation

@andershagbard

@andershagbard andershagbard commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new DiscourageSectionBlocks check (off by default, recommended: false)
  • Warns when section blocks (blocks with settings defined inline in the section schema) are used inside a section's {% schema %}, encouraging the use of theme blocks instead
  • Reports one offense per section block found, pointing at the block's type value in the JSON

🤖 Generated with Claude Code

Warns when section blocks (blocks with settings defined inline in the section schema)
are used, encouraging the use of theme blocks instead.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@andershagbard andershagbard marked this pull request as ready for review June 9, 2026 10:50
@andershagbard andershagbard requested a review from a team as a code owner June 9, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant