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.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.
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 and Configuration reference). CodeRabbit supportssmartylint.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
.tplfiles are found in the pull request. - smarty-lint is already running in GitHub workflows.
smartylint.jsis present in the repository.