Sha256: 3469d43ddf18a0ef002cf198bbcbaa1347ea6d244c9db3ece0b46df7351e1742

Contents?: true

Size: 1000 Bytes

Versions: 23

Compression:

Stored size: 1000 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 PlatformOS Check 0.0.1.

## Resources

- [Liquid Filter Reference](https://documentation.platformos.com/api-reference/liquid/filters)
- [platformOS Filter Reference](https://documentation.platformos.com/api-reference/liquid/platformos-filters)
- [Rule Source][codesource]
- [Documentation Source][docsource]

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
platformos-check-0.0.3 docs/checks/unknown_filter.md
platformos-check-0.0.2 docs/checks/unknown_filter.md
platformos-check-0.0.1 docs/checks/unknown_filter.md