Sha256: d8109cfe99450e38195f6fbabcc239139ad072910b3eb8587db7fbe3237a40dc

Contents?: true

Size: 1009 Bytes

Versions: 3

Compression:

Stored size: 1009 Bytes

Contents

# Reject Forbidden Tags from Theme App Extension Blocks (`AppBlockValidTags`)

This rule exists to prevent theme app extension blocks from containing forbidden tags in their liquid code.

## Check Details

This rule verifies none of the below tags are used in theme app extension blocks.

- `{% javascript %}`
- `{% stylesheet %}`
- `{% include 'foo' %}`
- `{% layout 'foo' %}`
- `{% section 'foo' %}`
- `{% sections 'foo' %}`

:-1: **Incorrect** code for this check occurs with the use of any of the above tags in the liquid code of theme app extension blocks.

## Check Options

The default configuration for theme app extensions is the following:

```yaml
AppBlockValidTags:
  enabled: true
```

## When Not To Use It

This rule should not be disabled locally.

## Version

This check has been introduced in 1.3.0

## Resources

- [Rule Source][codesource]
- [Documentation Source][docsource]

[codesource]: /lib/theme_check/checks/app_block_valid_tags.rb
[docsource]: /docs/checks/app_block_valid_tags.md

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
theme-check-1.15.0 docs/checks/app_block_valid_tags.md
theme-check-1.14.0 docs/checks/app_block_valid_tags.md
theme-check-1.13.0 docs/checks/app_block_valid_tags.md