From bc980141466bcb0ca831021da19a97c2f0b047c2 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 26 Jul 2022 11:21:53 +0800 Subject: [PATCH] Add auto-generated .swiftformat to Swift clients (#13002) * add .swfitformat to swift client * minor format change --- .../languages/Swift5ClientCodegen.java | 3 ++ .../resources/swift5/swiftformat.mustache | 45 +++++++++++++++++++ .../alamofireLibrary/.openapi-generator/FILES | 1 + .../swift5/alamofireLibrary/.swiftformat | 45 +++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../swift5/asyncAwaitLibrary/.swiftformat | 45 +++++++++++++++++++ .../combineLibrary/.openapi-generator/FILES | 1 + .../swift5/combineLibrary/.swiftformat | 45 +++++++++++++++++++ .../swift5/default/.openapi-generator/FILES | 1 + .../petstore/swift5/default/.swiftformat | 45 +++++++++++++++++++ .../deprecated/.openapi-generator/FILES | 1 + .../petstore/swift5/deprecated/.swiftformat | 45 +++++++++++++++++++ .../frozenEnums/.openapi-generator/FILES | 1 + .../petstore/swift5/frozenEnums/.swiftformat | 45 +++++++++++++++++++ .../nonPublicApi/.openapi-generator/FILES | 1 + .../petstore/swift5/nonPublicApi/.swiftformat | 45 +++++++++++++++++++ .../objcCompatible/.openapi-generator/FILES | 1 + .../swift5/objcCompatible/.swiftformat | 45 +++++++++++++++++++ .../swift5/oneOf/.openapi-generator/FILES | 1 + .../client/petstore/swift5/oneOf/.swiftformat | 45 +++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../swift5/promisekitLibrary/.swiftformat | 45 +++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../swift5/readonlyProperties/.swiftformat | 45 +++++++++++++++++++ .../resultLibrary/.openapi-generator/FILES | 1 + .../swift5/resultLibrary/.swiftformat | 45 +++++++++++++++++++ .../rxswiftLibrary/.openapi-generator/FILES | 1 + .../swift5/rxswiftLibrary/.swiftformat | 45 +++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../swift5/urlsessionLibrary/.swiftformat | 45 +++++++++++++++++++ .../vaporLibrary/.openapi-generator/FILES | 1 + .../petstore/swift5/vaporLibrary/.swiftformat | 45 +++++++++++++++++++ .../x-swift-hashable/.openapi-generator/FILES | 1 + .../swift5/x-swift-hashable/.swiftformat | 45 +++++++++++++++++++ 34 files changed, 784 insertions(+) create mode 100644 modules/openapi-generator/src/main/resources/swift5/swiftformat.mustache create mode 100644 samples/client/petstore/swift5/alamofireLibrary/.swiftformat create mode 100644 samples/client/petstore/swift5/asyncAwaitLibrary/.swiftformat create mode 100644 samples/client/petstore/swift5/combineLibrary/.swiftformat create mode 100644 samples/client/petstore/swift5/default/.swiftformat create mode 100644 samples/client/petstore/swift5/deprecated/.swiftformat create mode 100644 samples/client/petstore/swift5/frozenEnums/.swiftformat create mode 100644 samples/client/petstore/swift5/nonPublicApi/.swiftformat create mode 100644 samples/client/petstore/swift5/objcCompatible/.swiftformat create mode 100644 samples/client/petstore/swift5/oneOf/.swiftformat create mode 100644 samples/client/petstore/swift5/promisekitLibrary/.swiftformat create mode 100644 samples/client/petstore/swift5/readonlyProperties/.swiftformat create mode 100644 samples/client/petstore/swift5/resultLibrary/.swiftformat create mode 100644 samples/client/petstore/swift5/rxswiftLibrary/.swiftformat create mode 100644 samples/client/petstore/swift5/urlsessionLibrary/.swiftformat create mode 100644 samples/client/petstore/swift5/vaporLibrary/.swiftformat create mode 100644 samples/client/petstore/swift5/x-swift-hashable/.swiftformat diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java index 4c0b8326a452..fc39184957d7 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java @@ -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: diff --git a/modules/openapi-generator/src/main/resources/swift5/swiftformat.mustache b/modules/openapi-generator/src/main/resources/swift5/swiftformat.mustache new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/swift5/swiftformat.mustache @@ -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 diff --git a/samples/client/petstore/swift5/alamofireLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/alamofireLibrary/.openapi-generator/FILES index 5a7c78dd6a57..7025d40e6c31 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/alamofireLibrary/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/alamofireLibrary/.swiftformat b/samples/client/petstore/swift5/alamofireLibrary/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/alamofireLibrary/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/asyncAwaitLibrary/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/.swiftformat b/samples/client/petstore/swift5/asyncAwaitLibrary/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/combineLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/combineLibrary/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/combineLibrary/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/combineLibrary/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/combineLibrary/.swiftformat b/samples/client/petstore/swift5/combineLibrary/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/combineLibrary/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/default/.openapi-generator/FILES b/samples/client/petstore/swift5/default/.openapi-generator/FILES index 205dadc060a1..0cdf0c7c7cb5 100644 --- a/samples/client/petstore/swift5/default/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/default/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/default/.swiftformat b/samples/client/petstore/swift5/default/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/default/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/deprecated/.openapi-generator/FILES b/samples/client/petstore/swift5/deprecated/.openapi-generator/FILES index b78ea60c1123..f0c4496c5928 100644 --- a/samples/client/petstore/swift5/deprecated/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/deprecated/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/deprecated/.swiftformat b/samples/client/petstore/swift5/deprecated/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/deprecated/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/frozenEnums/.openapi-generator/FILES b/samples/client/petstore/swift5/frozenEnums/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/frozenEnums/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/frozenEnums/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/frozenEnums/.swiftformat b/samples/client/petstore/swift5/frozenEnums/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/frozenEnums/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/nonPublicApi/.openapi-generator/FILES b/samples/client/petstore/swift5/nonPublicApi/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/nonPublicApi/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/nonPublicApi/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/nonPublicApi/.swiftformat b/samples/client/petstore/swift5/nonPublicApi/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/nonPublicApi/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/objcCompatible/.openapi-generator/FILES b/samples/client/petstore/swift5/objcCompatible/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/objcCompatible/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/objcCompatible/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/objcCompatible/.swiftformat b/samples/client/petstore/swift5/objcCompatible/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/objcCompatible/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/oneOf/.openapi-generator/FILES b/samples/client/petstore/swift5/oneOf/.openapi-generator/FILES index 421958ec1d26..2aca55297b8c 100644 --- a/samples/client/petstore/swift5/oneOf/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/oneOf/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/oneOf/.swiftformat b/samples/client/petstore/swift5/oneOf/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/oneOf/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/promisekitLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/promisekitLibrary/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/promisekitLibrary/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/promisekitLibrary/.swiftformat b/samples/client/petstore/swift5/promisekitLibrary/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/promisekitLibrary/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/readonlyProperties/.openapi-generator/FILES b/samples/client/petstore/swift5/readonlyProperties/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/readonlyProperties/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/readonlyProperties/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/readonlyProperties/.swiftformat b/samples/client/petstore/swift5/readonlyProperties/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/readonlyProperties/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/resultLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/resultLibrary/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/resultLibrary/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/resultLibrary/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/resultLibrary/.swiftformat b/samples/client/petstore/swift5/resultLibrary/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/resultLibrary/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/rxswiftLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/rxswiftLibrary/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/rxswiftLibrary/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/rxswiftLibrary/.swiftformat b/samples/client/petstore/swift5/rxswiftLibrary/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/rxswiftLibrary/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/FILES index 27a85ba47e60..6ae7cd0f2ed1 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/urlsessionLibrary/.swiftformat b/samples/client/petstore/swift5/urlsessionLibrary/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/urlsessionLibrary/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/FILES index ec27ad4b38e0..2e4c24cde5b2 100644 --- a/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Package.swift README.md Sources/PetstoreClient/APIs.swift diff --git a/samples/client/petstore/swift5/vaporLibrary/.swiftformat b/samples/client/petstore/swift5/vaporLibrary/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/vaporLibrary/.swiftformat @@ -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 diff --git a/samples/client/petstore/swift5/x-swift-hashable/.openapi-generator/FILES b/samples/client/petstore/swift5/x-swift-hashable/.openapi-generator/FILES index c81943baf2af..d9454003ce93 100644 --- a/samples/client/petstore/swift5/x-swift-hashable/.openapi-generator/FILES +++ b/samples/client/petstore/swift5/x-swift-hashable/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.swiftformat Cartfile Package.swift PetstoreClient.podspec diff --git a/samples/client/petstore/swift5/x-swift-hashable/.swiftformat b/samples/client/petstore/swift5/x-swift-hashable/.swiftformat new file mode 100644 index 000000000000..930072528014 --- /dev/null +++ b/samples/client/petstore/swift5/x-swift-hashable/.swiftformat @@ -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