Skip to content

Add MaxLines check#1232

Open
andershagbard wants to merge 1 commit into
Shopify:mainfrom
andershagbard:check/max-lines
Open

Add MaxLines check#1232
andershagbard wants to merge 1 commit into
Shopify:mainfrom
andershagbard:check/max-lines

Conversation

@andershagbard

@andershagbard andershagbard commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new MaxLines check (off by default, recommended: false)
  • Enforces a configurable maximum number of lines per Liquid file (default: 300)
  • Configurable options:
    • max — maximum line count (default: 300)
    • skipBlankLines — exclude empty lines from the count (default: false)
    • skipComments — exclude Liquid comment blocks and HTML comments (default: false)
    • skipSchema — exclude {% schema %} blocks (default: true)
    • skipDoc — exclude {% doc %} blocks (default: true)

🤖 Generated with Claude Code

Enforces a configurable maximum number of lines per Liquid file. Supports
options to skip blank lines, Liquid/HTML comments, schema blocks, and doc blocks
from the line count.

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