1 Star 0 Fork 0

aliyun-sls / grpc-swift

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.swiftformat 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
George Barnett 提交于 2022-11-14 11:28 . Update test certs (#1522)
# Language version.
--swiftversion 5.2
# Ignore generated files.
--exclude **/LinuxMain.swift,**/XCTestManifests.swift,**/*.grpc.swift,**/*.pb.swift
--exclude Sources/GRPCSampleData/GRPCSwiftCertificate.swift
--indent 2
--maxwidth 100
# Require explicit self
--self insert
# Only remove unused args in closures.
--stripunusedargs closure-only
# Wrap before the first argument (if wrapping is necessary).
--wraparguments before-first
# Don't indent #if blocks
--ifdef no-indent
# Don't turn Optional<Foo> into Foo?
--shortoptionals except-properties
# This rule doesn't always work as we'd expect: specifically when we return a
# succeeded future whose type is a closure then that closure is incorrectly
# treated as a trailing closure. This is relevant because the service provider
# API for client streaming RPCs has this exact shape.
--disable trailingClosures
# Don't wrap the opening brace of multiline statements.
--disable wrapMultilineStatementBraces
# We used to support 5.0 and return is redundant in more places in 5.1: enabling
# this rule creates a large (and unnecessary) diff.
--disable redundantReturn
# Don't prefer using key paths for trivial closures.
--disable preferKeyPath
# Put ACLs on declarations within an extension rather than the extension itself.
--extensionacl on-declarations
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aliyun-sls/grpc-swift.git
git@gitee.com:aliyun-sls/grpc-swift.git
aliyun-sls
grpc-swift
grpc-swift
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891