v0.3.3.
Files
smarty-lint runs on files with the following extension:.tpl
Configuration
- .coderabbit.yaml
- Web UI
.coderabbit.yaml
smartylint.json, looking first in the templateās own directory and then in its parent directories. File patterns in a smartylint.json are relative to the directory that contains it, and a template is linted only if it matches the patterns of its own config. Templates under review are the only ones linted, even when a configās patterns match other files.
Templates with no smartylint.json in their directory or above it are linted with a temporary config that lists just those templates.
If smartylint.js is present, CodeRabbit skips smarty-lint rather than executing a JavaScript config file.
CodeRabbit runs only smarty-lintās bundled rules. Rule modules in your repository canāt add custom rules or replace the bundled ones.
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.