Skip to content

Commit

Permalink
malcommac#559 Fixed Codable compiling issue on Swift 4.2, Added ident…
Browse files Browse the repository at this point in the history
…ifier_name rule in SwiftLint
  • Loading branch information
malcommac committed Jul 18, 2018
1 parent 9033948 commit d5be0a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ disabled_rules: # rule identifiers to exclude from running
- multiple_closures_with_trailing_closure
- xctfail_message
- vertical_parameter_alignment
- identifier_name

# Swift 3 rules that do not make sense for Swift 2.3
- implicit_getter
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftDate/DateInRegion/DateInRegion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

public struct DateInRegion: DateRepresentable, Codable, CustomStringConvertible, Comparable, Hashable {
public struct DateInRegion: DateRepresentable, Decodable, CustomStringConvertible, Comparable, Hashable {

/// Absolute date represented. This date is not associated with any timezone or calendar
/// but represent the absolute number of seconds since Jan 1, 2001 at 00:00:00 UTC.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftDate/DateInRegion/Region.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

/// Region define a context both for `Date` and `DateInRegion`.
/// Each `Date` is assigned to the currently set `SwiftDate.default
public struct Region: Codable, Equatable, Hashable, CustomStringConvertible {
public struct Region: Decodable, Equatable, Hashable, CustomStringConvertible {

// MARK: - Properties

Expand Down

0 comments on commit d5be0a9

Please sign in to comment.