Skip to content

Commit

Permalink
Merge pull request #194 from norio-nomura/takes-swiftfile-from-script…
Browse files Browse the repository at this point in the history
…-input-files

Apply isSwiftFile filter on using scriptInputFiles
  • Loading branch information
jpsim committed Nov 11, 2015
2 parents f1555c9 + d1922c7 commit 8609636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/swiftlint/LintCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct LintCommand: CommandType {
return .Failure(CommandantError<()>.CommandError())
} else if options.useScriptInputFiles {
return scriptInputFiles().flatMap { paths in
let files = paths.flatMap(File.init)
let files = paths.filter { $0.isSwiftFile() }.flatMap(File.init)
return lint(files, configuration: configuration, strict: options.strict)
}
}
Expand Down

0 comments on commit 8609636

Please sign in to comment.