-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
Sources/Parsers/FontsParser.swift
Outdated
@@ -84,6 +84,8 @@ public final class FontsParser: Parser { | |||
|
|||
public func parse(path: Path) { | |||
let dirChildren = path.iterateChildren(options: [.skipsHiddenFiles, .skipsPackageDescendants]) | |||
let parentDir = path.absolute().parent() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For f. sake... Xode!
a71921b
to
c531812
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, shouldn't we add some additional tests to ensure we won't have a regression regarding relative/absolute path in the future?
What do you want to test? The |
Yeah and also try to call the while framework entry-point with a relative path and an absolute path and check they don't leak the full path in either case, something like that? |
(Also reminder: don't forget to wait for SwiftGen/templates#71 then undo the |
That was in the templates repo, I already removed the change 👍 |
Haha I was actually searching it after I made that comment and failed to find it again and thought I needed some more sleep (which might still be true anyway 😜 ) |
Todo: align subrepo before merged |
bc816fa
to
51dec9a
Compare
Fixes SwiftGen/SwiftGen#323.
Refs SwiftGen/SwiftGen#324.
templates related PR: SwiftGen/templates#71