Skip to content

Fix parsing xcode logs for analyzer rules for target names with spaces#3549

Merged
jpsim merged 1 commit intomasterfrom
fix-parsing-xcode-logs-for-analyzer-rules-for-target-names-with-spaces
Mar 3, 2021
Merged

Fix parsing xcode logs for analyzer rules for target names with spaces#3549
jpsim merged 1 commit intomasterfrom
fix-parsing-xcode-logs-for-analyzer-rules-for-target-names-with-spaces

Conversation

@jpsim
Copy link
Collaborator

@jpsim jpsim commented Mar 3, 2021

No description provided.

compilerLogs.enumerateLines { line, _ in
if let swiftcIndex = line.range(of: "swiftc ")?.upperBound, line.contains(" -module-name ") {
let invocation = line[swiftcIndex...]
.components(separatedBy: " ")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the cause of the bug. The rest of the changes in this PR are just refactoring.

@jpsim jpsim marked this pull request as ready for review March 3, 2021 15:49
@jpsim
Copy link
Collaborator Author

jpsim commented Mar 3, 2021

My buildkite machine is offline for maintenance, preventing OSSCheck from running, but that script doesn't run any analyzer rules, so I'll merge without it.

@jpsim jpsim merged commit 8b145d4 into master Mar 3, 2021
@jpsim jpsim deleted the fix-parsing-xcode-logs-for-analyzer-rules-for-target-names-with-spaces branch March 3, 2021 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant