Skip to content

Commit 73920a7

Browse files
only include .swif files in xcode plugin
1 parent 3cc4367 commit 73920a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftLintPlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private func buildCommand(tool: PackagePlugin.PluginContext.Tool,
3636
var arguments = ["lint"]
3737
arguments.append(contentsOf: ["--cache-path", "\(workingDirectory)"])
3838
arguments.append(contentsOf: ["--config", "\(configFile)"])
39-
arguments.append(contentsOf: targetFiles.map(\.string))
39+
arguments.append(contentsOf: targetFiles.map(\.string).filter {$0.hasSuffix(".swift")})
4040

4141
return .buildCommand(displayName: "SwiftLint", executable: tool.path, arguments: arguments)
4242
}

0 commit comments

Comments
 (0)