---
title: MissingBlockArguments
description: Identifies required LiquidDoc block arguments that aren't provided.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-block-arguments
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-block-arguments.md
api_name: liquid
---

# MissingBlockArguments

Identifies `{% block %}` tags that omit required arguments declared in the target block's [LiquidDoc](https://shopify.dev/docs/storefronts/themes/tools/liquid-doc). Theme Check reads `blocks/<name>.liquid`, parses its `{% doc %}` tag, and reports required parameters that aren't present in the block tag.

This check exits without reporting when the block file is missing, can't be parsed, or has no parseable LiquidDoc parameters.

**Note:**

These checks all validate `{% block %}` tag arguments: [`DuplicateBlockArguments`](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/duplicate-block-arguments), [`MissingBlockArguments`](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-block-arguments), [`UnrecognizedBlockArguments`](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-block-arguments), and [`ValidBlockArgumentTypes`](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-block-argument-types).

***

## Examples

The following examples contain code snippets that either fail or pass this check.

The examples reference the following block:

## blocks/card.liquid

```liquid
{% doc %}
  @param {string} title - Card title
  @param {string} [subtitle] - Card subtitle
{% enddoc %}
<div>{{ title }}</div>
```

### ✗ Fail

In the following example, `title` is required by the block's LiquidDoc but isn't provided, so Theme Check reports `Missing required argument 'title' in block tag for 'card'.`:

## templates/index.liquid

```liquid
{% block 'card', subtitle: 'Details' %}
  Card content
{% endblock %}
```

### ✓ Pass

In the following example, the required `title` argument is provided:

## templates/index.liquid

```liquid
{% block 'card', title: 'Product details' %}
  Card content
{% endblock %}
```

***

## Options

The following example contains the default configuration for this check:

```yaml
MissingBlockArguments:
  enabled: true
  severity: warning
```

| Parameter | Description |
| - | - |
| `enabled` | Whether this check is enabled. |
| `severity` | The [severity](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. |

***

## Disabling this check

Disabling this check isn't recommended. If you can't avoid violating the rule, then you should disable the check using the [comment syntax](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration#disable-checks-using-liquid-comments). This ensures that you intentionally disable the check for each instance.

```liquid
{% # theme-check-disable MissingBlockArguments %}
{% block 'card', subtitle: 'Details' %}
  Card content
{% endblock %}
{% # theme-check-enable MissingBlockArguments %}
```

***
