Esqarrouth / EZSwiftExtensions

:smirk: How Swift standard types and classes were supposed to work.
MIT License
3k stars 381 forks source link

移除swift 4 中的警告 #470

Closed Steven-Cheung closed 6 years ago

Steven-Cheung commented 6 years ago

Checklist

EZSwiftExtensionsBot commented 6 years ago
24 Errors
:no_entry_sign: Making non-trivial change requires changelog entry! Please, set trivial change or add entry to changelog.
:no_entry_sign: Please, modify only one extension per pull request.
:no_entry_sign: Sources/ArrayExtensions.swift#L76: value of type ‘Array<Element>’ has no member ‘swapAt’
if i != i+j { self.swapAt(i, i+j) }
:no_entry_sign: Sources/IntExtensions.swift#L60: type ‘String’ does not conform to protocol ‘Sequence’
for char in self.toString {
:no_entry_sign: Sources/StringExtensions.swift#L58: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
return self.count
:no_entry_sign: Sources/StringExtensions.swift#L307: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
detector.enumerateMatches(in: text, options: [], range: NSRange(location: 0, length: text.count), using: {
:no_entry_sign: Sources/StringExtensions.swift#L68: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 else { return }
:no_entry_sign: Sources/StringExtensions.swift#L74: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 else { return self }
:no_entry_sign: Sources/StringExtensions.swift#L83: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && count > 0 else { return }
:no_entry_sign: Sources/StringExtensions.swift#L90: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && count > 0 else { return self }
:no_entry_sign: Sources/StringExtensions.swift#L99: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && count > 0 else { return }
:no_entry_sign: Sources/StringExtensions.swift#L106: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && count > 0 else { return self }
:no_entry_sign: Sources/StringExtensions.swift#L116: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && (0..<length).contains(from) else { return }
:no_entry_sign: Sources/StringExtensions.swift#L124: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && (0..<length).contains(from) else { return self }
:no_entry_sign: Sources/StringExtensions.swift#L133: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 else { return }
:no_entry_sign: Sources/StringExtensions.swift#L139: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 else { return self }
:no_entry_sign: Sources/StringExtensions.swift#L147: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && count > 0 else { return }
:no_entry_sign: Sources/StringExtensions.swift#L154: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && count > 0 else { return self }
:no_entry_sign: Sources/StringExtensions.swift#L163: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && count > 0 else { return }
:no_entry_sign: Sources/StringExtensions.swift#L170: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && count > 0 else { return self }
:no_entry_sign: Sources/StringExtensions.swift#L180: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && (0..<length).contains(from) else { return }
:no_entry_sign: Sources/StringExtensions.swift#L188: ‘count’ is unavailable: there is no universally good answer, see the documentation comment for discussion
guard self.count > 0 && (0..<length).contains(from) else { return self }
:no_entry_sign: Sources/StringExtensions.swift#L361: value of type ‘String’ has no member ‘enumerated’
for (index, c) in self.enumerated() {
:no_entry_sign: Sources/StringExtensions.swift#L384: use of unresolved identifier ‘NSAttributedStringKey’
let underlineString = NSAttributedString(string: self, attributes: [NSAttributedStringKey.underlineStyle: NSUnderlineStyle.styleSingle.rawValue])

Generated by :no_entry_sign: Danger