danger / danger/swift

swiftlint: command not found - how can I fix this?

Open
#604 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.1k
Forks
152
Avg merge
9h 54m
Merged PRs (30d)
2

Description

My environment is CircleCI, just so you know. and this is running as a Mac executor.

My `Dangerfile.swift` file looks like this:
```
import Danger
let danger = Danger()

let editedFiles = danger.git.modifiedFiles + danger.git.createdFiles
message("These files have changed: \(editedFiles.joined(separator: ", "))")

SwiftLint.lint()
```

Now, while Danger does write in my PR about modified and created files, `SwiftLint.lint()` run, and gives this error:
`/bin/sh: swiftlint: command not found`

Why would that be? The "danger-swift" Package contains SwiftLint as a dependency, so wouldn't it be able to run SwiftLint? Do I need to actually _install_ SwiftLint? If so, then what does the SwiftLint dependency do?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.