-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compilation on Linux #56
Conversation
I briefly started looking into making Sourcery build and run on Linux and this is the only dependency that doesn't support it (other than SwiftTryCatch, which isn't a strong requirement for Sourcery). Minimal changes required. |
Sources/Context.swift
Outdated
@@ -22,7 +22,8 @@ public enum StencilContext { | |||
/// - Throws: `Parameters.Error` | |||
public static func enrich(context: [String: Any], | |||
parameters: [String], | |||
environment: [String: String] = ProcessInfo().environment) throws -> [String: Any] { | |||
environment: [String: String] = | |||
ProcessInfo.processInfo.environment) throws -> [String: Any] { |
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.
You need to either remove two spaces here or move this code back to the previous line and disable the line_length
rule just this one to allow the CI to pass.
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.
That's a SwiftLint bug. I've filed a PR to fix it here: realm/SwiftLint#1726
However, since that patch won't be available until a future SwiftLint release, I'll adapt my code to pass linting with the current release of SwiftLint.
LGTM, thanks a lot for the changes! |
@jpsim Released 2.0.1 with your fix 👍
|
No description provided.