> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# smarty-lint

> CodeRabbit's guide to smarty-lint.

smarty-lint is a linter for Smarty 3 template files that checks for common issues such as incorrect operator usage, naming conventions, empty blocks, and unquoted strings.

## Files

smarty-lint runs on files with the following extension:

* `.tpl`

## Configuration

You can enable or disable smarty-lint in your CodeRabbit configuration (see [Tools reference](/reference/tools-reference) and [Configuration reference](/reference/configuration)).

CodeRabbit supports `smartylint.json`. If no config file is present, CodeRabbit creates a temporary `smartylint.json` that scans `**/*.tpl`.

If `smartylint.js` is present, CodeRabbit skips smarty-lint rather than executing a JavaScript config file.

## When we skip smarty-lint

CodeRabbit will skip running smarty-lint when:

* No `.tpl` files are found in the pull request.
* smarty-lint is already running in GitHub workflows.
* `smartylint.js` is present in the repository.

## Links

* [smarty-lint on GitHub](https://github.com/modix/smarty-lint)
