Skip to content

Commit 8d36d25

Browse files
committed
update: lint tools and format correctly
1 parent 0c06b30 commit 8d36d25

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.mise.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tools]
2-
swiftlint = "0.54.0"
3-
swiftformat = "0.53.8"
2+
swiftlint = "0.55.1"
3+
swiftformat = "0.54.0"

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
### Changed
88

99
- Documentation syntax to DocC
10+
- `SwiftLint` to `0.55.1`
11+
- `SwiftFormat` to `0.54.0`
1012

1113
### Removed
1214

Sources/Helper/VersionCompareResult.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77

88
/// The severity of an update between versions.
9-
///
9+
///
1010
/// - Note: A difference between ``BuildMetaData`` of versions are as `SemVer` states explicitly ignored.
1111
public enum VersionCompareResult {
1212
/// A `MAJOR`update

Sources/Version.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ public struct Version: Sendable, SemanticVersionComparable {
168168
prerelease = String(prereleaseSubstring)
169169
.split(separator: ".")
170170
.map(String.init)
171-
.compactMap {
172-
if let asInt = Int($0) {
171+
.compactMap { identifierString in
172+
if let asInt = Int(identifierString) {
173173
return PrereleaseIdentifier(integerLiteral: asInt)
174174
}
175175

176-
return PrereleaseIdentifier($0)
176+
return PrereleaseIdentifier(identifierString)
177177
}
178178
// if a pre-release identifier element is initialized as .unkown, we can savely assume that the given
179179
// string is not a valid `SemVer` version string.

0 commit comments

Comments
 (0)