Sha256: 25bf33f508da5aba8a4a13f7878815e9cf15e2632b36bf4e116f580370c8e7a2

Contents?: true

Size: 984 Bytes

Versions: 22

Compression:

Stored size: 984 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' %}`

:-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

22 entries across 22 versions & 1 rubygems

Version Path
theme-check-1.12.1 docs/checks/app_block_valid_tags.md
theme-check-1.12.0 docs/checks/app_block_valid_tags.md
theme-check-1.11.0 docs/checks/app_block_valid_tags.md
theme-check-1.10.3 docs/checks/app_block_valid_tags.md
theme-check-1.10.2 docs/checks/app_block_valid_tags.md
theme-check-1.10.1 docs/checks/app_block_valid_tags.md
theme-check-1.10.0 docs/checks/app_block_valid_tags.md
theme-check-1.9.2 docs/checks/app_block_valid_tags.md
theme-check-1.9.1 docs/checks/app_block_valid_tags.md
theme-check-1.9.0 docs/checks/app_block_valid_tags.md
theme-check-1.8.0 docs/checks/app_block_valid_tags.md
theme-check-1.7.2 docs/checks/app_block_valid_tags.md
theme-check-1.7.1 docs/checks/app_block_valid_tags.md
theme-check-1.7.0 docs/checks/app_block_valid_tags.md
theme-check-1.6.2 docs/checks/app_block_valid_tags.md
theme-check-1.6.1 docs/checks/app_block_valid_tags.md
theme-check-1.6.0 docs/checks/app_block_valid_tags.md
theme-check-1.5.2 docs/checks/app_block_valid_tags.md
theme-check-1.5.1 docs/checks/app_block_valid_tags.md
theme-check-1.5.0 docs/checks/app_block_valid_tags.md