Skip to content

Commit 4075cff

Browse files
committed
style: apply new SwiftLint 0.62.2 rules and update SwiftFormat configuration
SwiftLint 0.62.2 adds new rules, quite interesting, about order of modifier where 'nonisolated' modifier must be before visibility modifier like 'private' or 'public'. However, SwiftFormat which formats for Swift 6.2 rollbacks it and keep visiblity modifiers before 'nonisolated' modifier. Thus SwiftLint 0.62.2 and SwiftFormat 0.58.5 with our current settings are in conflicts. We choose to keep SwiftLint rules first; maybe settings for SwiftFormat will be updated. Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent 7525572 commit 4075cff

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/DEVELOP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ brew install periphery
6464
brew install gitleaks
6565
# or `brew reinstall gitleaks` to get updates if old version installed
6666

67-
# For SwiftLint (at least 0.59.1)
67+
# For SwiftLint (at least 0.62.1)
6868
brew install swiftlint
69-
# or `brew reinstall swiftlint` to get updates if old version installed
69+
# or `brew upgrade swiftlint` to get updates if old version installed
7070

7171
# For SwiftFormat (at least 0.56.2)
7272
brew install swiftformat

OUDS/Core/Themes/Wireframe/Sources/Providers/ComponentTokens/WireframeThemeLinkComponentTokensProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class WireframeThemeLinkComponentTokensProvider: AllLinkComponentTokensPro
3737
let spaces: AllSpaceSemanticTokensProvider
3838

3939
#if DEBUG
40-
private nonisolated(unsafe) static var instanceCount: Int = 0
40+
nonisolated(unsafe) private static var instanceCount: Int = 0
4141
#endif
4242

4343
/// Defines a provider of component tokens dedicated to `OUDSLink`

OUDS/Core/Themes/Wireframe/Sources/WireframeTheme.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import SwiftUI
5757
public final class WireframeTheme: OUDSTheme, @unchecked Sendable {
5858

5959
/// Flag to avoid to register severals the fonts making some errors happen
60-
private nonisolated(unsafe) static var fontsAlreadyRegistered: Bool = false
60+
nonisolated(unsafe) private static var fontsAlreadyRegistered: Bool = false
6161

6262
// MARK: - Initializers
6363

0 commit comments

Comments
 (0)