init.swift
Showing 7 of 7 total issues
Line should be 90 characters or less: currently 117 characters Open
Open
try! fileManager.moveItem(at: self, to: URL(fileURLWithPath: newName, relativeTo: deletingLastPathComponent()))
- Exclude checks
Line should be 90 characters or less: currently 108 characters Open
Open
let result = prompt(message: "\(step.rawValue). " + step.question + " (leave blank for \(defaultValue)).")
- Exclude checks
Line should be 90 characters or less: currently 138 characters Open
Open
let enumerator = fileManager.enumerator(at: URL(fileURLWithPath: currentFolder), includingPropertiesForKeys: [.nameKey, .isDirectoryKey])!
- Exclude checks
Force tries should be avoided. Open
Open
try! fileManager.moveItem(at: self, to: URL(fileURLWithPath: newName, relativeTo: deletingLastPathComponent()))
- Exclude checks
Force unwrapping should be avoided. Open
Open
return answer == nil || answer == "" ? nil : answer!
- Exclude checks
Force unwrapping should be avoided. Open
Open
let enumerator = fileManager.enumerator(at: URL(fileURLWithPath: currentFolder), includingPropertiesForKeys: [.nameKey, .isDirectoryKey])!
- Exclude checks
Force tries should be avoided. Open
Open
try! updatedContent.write(to: self, atomically: true, encoding: .utf8)
- Exclude checks