Skip to content

Commit

Permalink
Add instructions on how to use SwiftLint with fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx authored Aug 12, 2017
1 parent fd90858 commit 92b0291
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,20 @@ To integrate SwiftLint with [Atom](https://atom.io/), install the
[`linter-swiftlint`](https://atom.io/packages/linter-swiftlint) package from
APM.

### fastlane

You can use the [official swiftlint fastlane action](https://docs.fastlane.tools/actions/#swiftlint) to run SwiftLint as part of your fastlane process.

```ruby
swiftlint(
mode: :lint, # SwiftLint mode: :lint (default) or :autocorrect
output_file: "swiftlint.result.json", # The path of the output file (optional)
config_file: ".swiftlint-ci.yml", # The path of the configuration file (optional)
ignore_exit_status: true # Allow fastlane to continue even if SwiftLint returns a non-zero exit status
)
```


### Command Line

```
Expand Down

0 comments on commit 92b0291

Please sign in to comment.