SwiftLint

Web Sitehttps://github.com/realm/SwiftLint
LanguageSwift
Supported Version0.23.1

Getting Started

To start using SwiftLint, enable it in repository setting.

To customize SwiftLint, put .swiftlint.yml in your repository.

Configuration via sideci.yml

Example settings for SwiftLint under swiftlint.

linter:
  swiftlint:
    ignore_warnings: true
    options:
      path: Source/
      config: lint_yml/.swiftlint.yml
      lenient: true
      enable-all-rules: true

ignore_warnings

This option controls whether ignore issues which are severity: "warnings". Default value is false.

options

This option controls command line options given to swiftlint.

path

This option controls the path that analyzes file or directory to lint.

config

This option controls configuration file when running SwiftLint. If you have .swiftlint.yml, put it in this option.

lenient

This option controls levels of violations, that is, the option downgrades serious violations to warnings and makes warning threshold disabled.
Default value is false.

enable-all-rules

This option controls whether run SwiftLint with all rules including opt-in and disabled ones. Furthermore, it ignores whitelist_rules.
Default value is false.