Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

+sanity #17 add sanity scripts (formatting, license) #18

Merged
merged 3 commits into from
Jun 8, 2020

Conversation

ktoso
Copy link
Collaborator

@ktoso ktoso commented Jun 8, 2020

Simple formatting hook, similar to the one used in NIO and other projects.

I didn't add license validation yet. We'd eventually want the same "header" as we do in NIO and others: https://github.com/apple/swift-nio/blob/master/Tests/NIOTestUtilsTests/ByteToMessageDecoderVerifierTest%2BXCTest.swift#L1-L13 but didn't add it yet.

The settings inspired by NIO and some other projects where we use swiftformat, hope they're fine @slashmo

// we're sticking to SwiftFormat, version 0.44.6 in our builds nowadays AFAICS (docker images etc), so that's what this was formatted with.

@ktoso ktoso requested a review from slashmo June 8, 2020 09:08
Copy link
Owner

@slashmo slashmo left a comment

Choose a reason for hiding this comment

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

@ktoso Thanks for adding this! 👌 Could you please take a look at the inline comments?

.swiftformat Outdated Show resolved Hide resolved
.swiftformat Show resolved Hide resolved
@slashmo slashmo merged commit 67afd78 into slashmo:master Jun 8, 2020
@ktoso ktoso deleted the wip-swift-format branch June 8, 2020 10:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants