Skip to content

Commit

Permalink
Disable SwiftLint’s identifier_name in a couple of spots
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyarnold committed Jul 10, 2024
1 parent 380c015 commit 0b5e666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Yams/Constructor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ extension ScalarConstructible where Self: FloatingPoint & SexagesimalConvertible
}

private extension FixedWidthInteger where Self: SexagesimalConvertible {
// swiftlint:disable:next identifier_name
static func _construct(from scalar: Node.Scalar) -> Self? {
guard scalar.style == .any || scalar.style == .plain else {
return nil
Expand Down Expand Up @@ -423,6 +424,7 @@ extension Dictionary {
}

private extension Dictionary {
// swiftlint:disable:next identifier_name
static func _construct_mapping(from mapping: Node.Mapping) -> [AnyHashable: Any] {
let mapping = mapping.flatten()
// TODO: YAML supports keys other than str.
Expand Down

0 comments on commit 0b5e666

Please sign in to comment.