From 0db5f852f9c1d6d7479347e7caf8ad5ebcbca49a Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Thu, 19 Dec 2024 23:20:43 +0900 Subject: [PATCH] Style code --- .swiftlint.yml | 3 --- .../Text View/NSTextView+RoundedBackground.swift | 2 +- CotEditor/Sources/Models/IssueReport.swift | 2 +- CotEditor/Sources/Setting Managers/SettingFileManaging.swift | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index c0820f9a60..09b80d602a 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,6 +1,3 @@ -deployment_target: - macOS_deployment_target: 14 - excluded: - "*/.build" diff --git a/CotEditor/Sources/Document Window/Text View/NSTextView+RoundedBackground.swift b/CotEditor/Sources/Document Window/Text View/NSTextView+RoundedBackground.swift index 5e2feacc28..821a7866d3 100644 --- a/CotEditor/Sources/Document Window/Text View/NSTextView+RoundedBackground.swift +++ b/CotEditor/Sources/Document Window/Text View/NSTextView+RoundedBackground.swift @@ -27,7 +27,7 @@ import AppKit extension NSAttributedString.Key { - static let roundedBackgroundColor = NSAttributedString.Key(rawValue: "roundedBackgroundColor") + static let roundedBackgroundColor = NSAttributedString.Key("roundedBackgroundColor") } diff --git a/CotEditor/Sources/Models/IssueReport.swift b/CotEditor/Sources/Models/IssueReport.swift index 16a8343317..0035df11e6 100644 --- a/CotEditor/Sources/Models/IssueReport.swift +++ b/CotEditor/Sources/Models/IssueReport.swift @@ -47,7 +47,7 @@ struct IssueReport { Heading.allCases[1...] .map { $0.display() } - .joined(separator: String(repeating: "\n", count: 3)) + .joined(separator: String(repeating: "\n", count: 3)), ].joined(separator: String(repeating: "\n", count: 3)) + "\n" } diff --git a/CotEditor/Sources/Setting Managers/SettingFileManaging.swift b/CotEditor/Sources/Setting Managers/SettingFileManaging.swift index ed03f8d44d..d7e6b2ec87 100644 --- a/CotEditor/Sources/Setting Managers/SettingFileManaging.swift +++ b/CotEditor/Sources/Setting Managers/SettingFileManaging.swift @@ -44,7 +44,7 @@ struct SettingState: Equatable { extension NSNotification.Name { /// Notification when a setting file is updated with new/previous setting names. - static let didUpdateSettingNotification = Notification.Name(rawValue: "SettingFileManaging.didUpdateSettingNotification") + static let didUpdateSettingNotification = Notification.Name("SettingFileManaging.didUpdateSettingNotification") }