xref: /aosp_15_r20/external/flatbuffers/swift.swiftformat (revision 890232f25432b36107d06881e0a25aaa6b473652)
1*890232f2SAndroid Build Coastguard Worker--swiftversion 5.1
2*890232f2SAndroid Build Coastguard Worker
3*890232f2SAndroid Build Coastguard Worker# format
4*890232f2SAndroid Build Coastguard Worker--indent 2
5*890232f2SAndroid Build Coastguard Worker--maxwidth 80
6*890232f2SAndroid Build Coastguard Worker
7*890232f2SAndroid Build Coastguard Worker# options
8*890232f2SAndroid Build Coastguard Worker--self remove # redundantSelf
9*890232f2SAndroid Build Coastguard Worker--importgrouping testable-bottom # sortedImports
10*890232f2SAndroid Build Coastguard Worker--trimwhitespace always
11*890232f2SAndroid Build Coastguard Worker--indentcase false
12*890232f2SAndroid Build Coastguard Worker--ifdef no-indent #indent
13*890232f2SAndroid Build Coastguard Worker--wraparguments before-first # wrapArguments
14*890232f2SAndroid Build Coastguard Worker--wrapparameters before-first # wrapArguments
15*890232f2SAndroid Build Coastguard Worker--closingparen same-line # wrapArguments
16*890232f2SAndroid Build Coastguard Worker--funcattributes prev-line # wrapAttributes
17*890232f2SAndroid Build Coastguard Worker--typeattributes prev-line # wrapAttributes
18*890232f2SAndroid Build Coastguard Worker
19*890232f2SAndroid Build Coastguard Worker# rules
20*890232f2SAndroid Build Coastguard Worker--rules wrap,todos,anyObjectProtocol,redundantParens,redundantReturn,redundantSelf,sortedImports,strongifiedSelf,trailingCommas,trailingSpace,wrapArguments,wrapMultilineStatementBraces,indent,wrapAttributes,void,fileHeader
21*890232f2SAndroid Build Coastguard Worker--disable trailingclosures
22*890232f2SAndroid Build Coastguard Worker
23*890232f2SAndroid Build Coastguard Worker--exclude **/*_generated.swift
24*890232f2SAndroid Build Coastguard Worker--exclude **/swift_code_*.swift
25*890232f2SAndroid Build Coastguard Worker--exclude **/*.grpc.swift
26*890232f2SAndroid Build Coastguard Worker
27*890232f2SAndroid Build Coastguard Worker--header "/*\n * Copyright {year} Google Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"