diff --git a/.editorconfig b/.editorconfig index fe9ecbc..8514b5a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,3 +6,6 @@ insert_final_newline = true indent_style = tab indent_size = 4 tab_width = 4 + +[*.yml] +indent_style = space diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 0000000..56bce0a --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,3 @@ +disabled_rules: + - switch_case_alignment + - nesting diff --git a/Package.swift b/Package.swift index 13a373d..8303264 100644 --- a/Package.swift +++ b/Package.swift @@ -10,7 +10,7 @@ let package = Package( // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "IDNA", - targets: ["IDNA"]), + targets: ["IDNA"]) ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -26,6 +26,6 @@ let package = Package( swiftSettings: [.define("SWIFT_PACKAGE")]), .testTarget( name: "IDNATests", - dependencies: ["IDNA"]), + dependencies: ["IDNA"]) ] ) diff --git a/Sources/IDNA/UTS46+Loading.swift b/Sources/IDNA/UTS46+Loading.swift index 035eb59..f32cd82 100644 --- a/Sources/IDNA/UTS46+Loading.swift +++ b/Sources/IDNA/UTS46+Loading.swift @@ -32,7 +32,7 @@ extension UTS46 { switch header.version { case 1: - break; + break default: if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) { os_log("Unrecognized version found; assuming 1.", type: .debug)