Esqarrouth / EZSwiftExtensions

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

remove warnings #469

Closed Steven-Cheung closed 6 years ago

Steven-Cheung commented 6 years ago

Checklist

EZSwiftExtensionsBot commented 6 years ago
8 Errors
: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/NSAttributedStringExtensions.swift#L31: use of unresolved identifier ‘NSAttributedStringKey’
copy.addAttributes([NSAttributedStringKey.underlineStyle: NSUnderlineStyle.styleSingle.rawValue], range: range)
:no_entry_sign: Sources/NSAttributedStringExtensions.swift#L65: use of unresolved identifier ‘NSAttributedStringKey’
copy.addAttributes([NSAttributedStringKey.foregroundColor: color], range: range)
:no_entry_sign: Sources/StringExtensions.swift#L379: use of unresolved identifier ‘NSAttributedStringKey’
let underlineString = NSAttributedString(string: self, attributes: [NSAttributedStringKey.underlineStyle: NSUnderlineStyle.styleSingle.rawValue])
:no_entry_sign: Sources/StringExtensions.swift#L413: use of unresolved identifier ‘NSAttributedStringKey’
let colorString = NSMutableAttributedString(string: self, attributes: [NSAttributedStringKey.foregroundColor: color])
:no_entry_sign: Sources/StringExtensions.swift#L432: use of unresolved identifier ‘NSAttributedStringKey’
attrText.addAttribute(NSAttributedStringKey.foregroundColor, value: color, range: range)
: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/StringExtensions.swift#L379: use of unresolved identifier ‘NSAttributedStringKey’
let underlineString = NSAttributedString(string: self, attributes: [NSAttributedStringKey.underlineStyle: NSUnderlineStyle.styleSingle.rawValue])
8 Warnings
:warning: Sources/FloatingPointExtensions.swift#L17: result of operator ‘*’ is unused
for _ in 0..<places { divisor * 10 }
:warning: Sources/FloatingPointExtensions.swift#L16: variable ‘divisor’ was never mutated; consider changing to ‘let’ constant
var divisor: Self = 1
:warning: Sources/FloatingPointExtensions.swift#L30: result of operator ‘*’ is unused
for _ in 0..<places { divisor * 10 }
:warning: Sources/FloatingPointExtensions.swift#L29: variable ‘divisor’ was never mutated; consider changing to ‘let’ constant
var divisor: Self = 1
:warning: Sources/FloatingPointExtensions.swift#L17: result of operator ‘*’ is unused
for _ in 0..<places { divisor * 10 }
:warning: Sources/FloatingPointExtensions.swift#L16: variable ‘divisor’ was never mutated; consider changing to ‘let’ constant
var divisor: Self = 1
:warning: Sources/FloatingPointExtensions.swift#L30: result of operator ‘*’ is unused
for _ in 0..<places { divisor * 10 }
:warning: Sources/FloatingPointExtensions.swift#L29: variable ‘divisor’ was never mutated; consider changing to ‘let’ constant
var divisor: Self = 1

Generated by :no_entry_sign: Danger