forked from loafle/openapi-generator-original
Add auto-generated .swiftformat to Swift clients (#13002)
* add .swfitformat to swift client * minor format change
This commit is contained in:
@@ -581,6 +581,9 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig
|
||||
supportingFiles.add(new SupportingFile("README.mustache",
|
||||
"",
|
||||
"README.md"));
|
||||
supportingFiles.add(new SupportingFile("swiftformat.mustache",
|
||||
"",
|
||||
".swiftformat"));
|
||||
|
||||
switch (getLibrary()) {
|
||||
case LIBRARY_ALAMOFIRE:
|
||||
|
||||
45
modules/openapi-generator/src/main/resources/swift5/swiftformat.mustache
vendored
Normal file
45
modules/openapi-generator/src/main/resources/swift5/swiftformat.mustache
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/alamofireLibrary/.swiftformat
Normal file
45
samples/client/petstore/swift5/alamofireLibrary/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/combineLibrary/.swiftformat
Normal file
45
samples/client/petstore/swift5/combineLibrary/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/default/.swiftformat
Normal file
45
samples/client/petstore/swift5/default/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/deprecated/.swiftformat
Normal file
45
samples/client/petstore/swift5/deprecated/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/frozenEnums/.swiftformat
Normal file
45
samples/client/petstore/swift5/frozenEnums/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/nonPublicApi/.swiftformat
Normal file
45
samples/client/petstore/swift5/nonPublicApi/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/objcCompatible/.swiftformat
Normal file
45
samples/client/petstore/swift5/objcCompatible/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/oneOf/.swiftformat
Normal file
45
samples/client/petstore/swift5/oneOf/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/resultLibrary/.swiftformat
Normal file
45
samples/client/petstore/swift5/resultLibrary/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/rxswiftLibrary/.swiftformat
Normal file
45
samples/client/petstore/swift5/rxswiftLibrary/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Package.swift
|
||||
README.md
|
||||
Sources/PetstoreClient/APIs.swift
|
||||
|
||||
45
samples/client/petstore/swift5/vaporLibrary/.swiftformat
Normal file
45
samples/client/petstore/swift5/vaporLibrary/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.swiftformat
|
||||
Cartfile
|
||||
Package.swift
|
||||
PetstoreClient.podspec
|
||||
|
||||
45
samples/client/petstore/swift5/x-swift-hashable/.swiftformat
Normal file
45
samples/client/petstore/swift5/x-swift-hashable/.swiftformat
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file is auto-generated by OpenAPI Generator: https://openapi-generator.tech/
|
||||
#
|
||||
# For rules on SwiftFormat, please refer to https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
|
||||
#
|
||||
# file options
|
||||
|
||||
# uncomment below to exclude files, folders
|
||||
#--exclude path/to/test1.swift,Snapshots,Build
|
||||
|
||||
# format options
|
||||
|
||||
--allman false
|
||||
--binarygrouping 4,8
|
||||
--commas always
|
||||
--comments indent
|
||||
--decimalgrouping 3,6
|
||||
--elseposition same-line
|
||||
--empty void
|
||||
--exponentcase lowercase
|
||||
--exponentgrouping disabled
|
||||
--fractiongrouping disabled
|
||||
--header ignore
|
||||
--hexgrouping 4,8
|
||||
--hexliteralcase uppercase
|
||||
--ifdef indent
|
||||
--indent 4
|
||||
--indentcase false
|
||||
--importgrouping testable-bottom
|
||||
--linebreaks lf
|
||||
--maxwidth none
|
||||
--octalgrouping 4,8
|
||||
--operatorfunc spaced
|
||||
--patternlet hoist
|
||||
--ranges spaced
|
||||
--self remove
|
||||
--semicolons inline
|
||||
--stripunusedargs always
|
||||
--swiftversion 5.4
|
||||
--trimwhitespace always
|
||||
--wraparguments preserve
|
||||
--wrapcollections preserve
|
||||
|
||||
# rules
|
||||
|
||||
--enable isEmpty
|
||||
Reference in New Issue
Block a user