Sha256: dd8e0562b0351ca3ae61081a14bd509e498220ae9697664d86dd3d50783ef3fb

Contents?: true

Size: 872 Bytes

Versions: 43

Compression:

Stored size: 872 Bytes

Contents

# Prevent use of unknown filters (`UnknownFilter`)

This check exists to prevent user errors.

## Check Details

This check is aimed at preventing the use of unknown filters.

:-1: Examples of **incorrect** code for this check:

```liquid
{{ x | some_unknown_filter }}
```

:+1: Examples of **correct** code for this check:

```liquid
{{ x | upcase }}
```

## Check Options

The default configuration for this check is the following:

```yaml
UnknownFilter:
  enabled: true
```

## When Not To Use It

It is not safe to disable this rule.

## Version

This check has been introduced in Theme Check 0.1.0.

## Resources

- [Shopify Filter Reference](https://shopify.dev/docs/themes/liquid/reference/filters)
- [Rule Source][codesource]
- [Documentation Source][docsource]

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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
theme-check-1.15.0 docs/checks/unknown_filter.md
theme-check-1.14.0 docs/checks/unknown_filter.md
theme-check-1.13.0 docs/checks/unknown_filter.md
theme-check-1.12.1 docs/checks/unknown_filter.md
theme-check-1.12.0 docs/checks/unknown_filter.md
theme-check-1.11.0 docs/checks/unknown_filter.md
theme-check-1.10.3 docs/checks/unknown_filter.md
theme-check-1.10.2 docs/checks/unknown_filter.md
theme-check-1.10.1 docs/checks/unknown_filter.md
theme-check-1.10.0 docs/checks/unknown_filter.md
theme-check-1.9.2 docs/checks/unknown_filter.md
theme-check-1.9.1 docs/checks/unknown_filter.md
theme-check-1.9.0 docs/checks/unknown_filter.md
theme-check-1.8.0 docs/checks/unknown_filter.md
theme-check-1.7.2 docs/checks/unknown_filter.md
theme-check-1.7.1 docs/checks/unknown_filter.md
theme-check-1.7.0 docs/checks/unknown_filter.md
theme-check-1.6.2 docs/checks/unknown_filter.md
theme-check-1.6.1 docs/checks/unknown_filter.md
theme-check-1.6.0 docs/checks/unknown_filter.md