代码拉取完成,页面将自动刷新
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。