File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -234,10 +234,10 @@ public class Sourcery {
234234 } ) == nil else { return }
235235
236236 if path. isDirectory {
237- top. append ( ( path, ( try ? path. recursiveChildren ( ) ) ?? [ ] ) )
237+ top. append ( ( path, ( try ? path. recursiveUnhiddenChildren ( ) ) ?? [ ] ) )
238238 } else {
239239 let dir = path. parent ( )
240- let children = ( try ? dir. recursiveChildren ( ) ) ?? [ ]
240+ let children = ( try ? dir. recursiveUnhiddenChildren ( ) ) ?? [ ]
241241 if children. contains ( path) {
242242 top. append ( ( dir, children) )
243243 } else {
@@ -349,11 +349,11 @@ extension Sourcery {
349349 var allResults = [ ( changed: Bool, result: FileParserResult) ] ( )
350350
351351 let excludeSet = Set ( exclude
352- . map { $0. isDirectory ? try ? $0 . recursiveChildren ( ) : [ $0 ] }
352+ . map { $0. processablePaths }
353353 . compactMap ( { $0 } ) . flatMap ( { $0 } ) )
354354
355355 try from. enumerated ( ) . forEach { index, from in
356- let fileList = from. isDirectory ? try from . recursiveChildren ( ) : [ from ]
356+ let fileList = from. processablePaths
357357 let parserGenerator : [ ParserWrapper ] = fileList
358358 . filter { $0. isSwiftSourceFile }
359359 . filter {
You can’t perform that action at this time.
0 commit comments