rootstrap/ios-base

View on GitHub
init.swift

Summary

Maintainability
A
0 mins
Test Coverage

Showing 7 of 7 total issues

Line should be 90 characters or less: currently 117 characters
Open

try! fileManager.moveItem(at: self, to: URL(fileURLWithPath: newName, relativeTo: deletingLastPathComponent()))
Severity: Critical
Found in init.swift by swiftlint

Line should be 90 characters or less: currently 108 characters
Open

let result = prompt(message: "\(step.rawValue). " + step.question + " (leave blank for \(defaultValue)).")
Severity: Critical
Found in init.swift by swiftlint

Line should be 90 characters or less: currently 138 characters
Open

let enumerator = fileManager.enumerator(at: URL(fileURLWithPath: currentFolder), includingPropertiesForKeys: [.nameKey, .isDirectoryKey])!
Severity: Critical
Found in init.swift by swiftlint

Force tries should be avoided.
Open

try! fileManager.moveItem(at: self, to: URL(fileURLWithPath: newName, relativeTo: deletingLastPathComponent()))
Severity: Minor
Found in init.swift by swiftlint

Force unwrapping should be avoided.
Open

return answer == nil || answer == "" ? nil : answer!
Severity: Minor
Found in init.swift by swiftlint

Force unwrapping should be avoided.
Open

let enumerator = fileManager.enumerator(at: URL(fileURLWithPath: currentFolder), includingPropertiesForKeys: [.nameKey, .isDirectoryKey])!
Severity: Minor
Found in init.swift by swiftlint

Force tries should be avoided.
Open

try! updatedContent.write(to: self, atomically: true, encoding: .utf8)
Severity: Minor
Found in init.swift by swiftlint

There are no issues that match your filters.

Category
Status