We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a779c91 + 9d0b669 commit f76cd15Copy full SHA for f76cd15
CHANGELOG.md
@@ -13,6 +13,8 @@
13
14
## Master
15
16
+- Prevent empty SwiftLint violation response from failure [@pouyayarandi][] - [#596](https://github.com/danger/swift/pull/596)
17
+
18
## 3.17.1
19
20
- Use http tap url on update homebrew script [@f-meloni][]
Sources/Danger/Plugins/SwiftLint/SwiftLint.swift
@@ -307,6 +307,9 @@ extension SwiftLint {
307
}
308
309
private static func makeViolations(from response: String, failAction: (String) -> Void) -> [SwiftLintViolation] {
310
+ guard !response.isEmpty else {
311
+ return []
312
+ }
313
let decoder = JSONDecoder()
314
do {
315
let violations = try decoder.decode([SwiftLintViolation].self, from: Data(response.utf8))
0 commit comments