Files
SwiftLint will run on files with the following extensions:.swift
Configuration
SwiftLint supports the following config files:- User-defined config file set at
reviews.tools.swiftlint.config_filein your project’s.coderabbit.yamlfile or setting the “Review → Tools → SwiftLint → Config File” field in CodeRabbit’s settings page. .swiftlint.yaml.swiftlint.yml
When we skip SwiftLint
CodeRabbit will skip running SwiftLint when:- SwiftLint is already running in GitHub workflows.
- The config file specifies a SwiftLint version greater than the version used by CodeRabbit.
Ignored rules
The following SwiftLint rules are automatically ignored (style rules with very low acceptance):trailing_whitespaceline_lengthcomment_spacingvertical_whitespace