Skip to content

Commit

Permalink
🐛 disable enumNamespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0q committed Aug 27, 2022
1 parent 68d80bf commit 4d4c566
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--disable enumNamespaces
2 changes: 1 addition & 1 deletion Traq/Classes/OpenAPIs/APIHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

public enum APIHelper {
public struct APIHelper {
public static func rejectNil(_ source: [String: Any?]) -> [String: Any]? {
let destination = source.reduce(into: [String: Any]()) { result, item in
if let value = item.value {
Expand Down
2 changes: 1 addition & 1 deletion Traq/Classes/OpenAPIs/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
public typealias Configuration = TraqAPI.Configuration

extension TraqAPI {
open enum Configuration {
open class Configuration {
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ rm ./Package.swift.bak
# Packages/をignore
echo "Packages/" >> .gitignore

swift run swiftformat .
swift run swiftformat --config .swiftformat .

0 comments on commit 4d4c566

Please sign in to comment.