Swift ソースに変更がない場合も SwiftLint をエラーにしないための設定

allow_zero_lintable_files: true

を SwiftLint の設定ファイル (.swiftlint.yml とか) に書いてあげる。

参考

背景

Fails
🚫 Error deserializing SwiftLint JSON response (): dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unable to parse empty data." UserInfo={NSDebugDescription=Unable to parse empty data.})))

Swift SwiftLint