Showing 484 of 484 total issues
Variable name should be between 3 and 40 characters long: 'at' Open
Open
func save(data: Data, at: URL) throws {
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .unableToLoadAppleIncRootCertificate:
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .yearMonthDay(let date):
- Exclude checks
Line should be 120 characters or less: currently 163 characters Open
Open
static let longTextPDFUrl = URL(fileURLWithPath: Bundle.module.path(forResource: "AVB_PlusGarantie_EP_Zurich_01102019", ofType: "pdf", inDirectory: "assets")!)
- Exclude checks
Line should be 120 characters or less: currently 134 characters Open
Open
// guard let sortedDocuments2 = try? sort(documents, by: [filenameSortDescriptor2]) else { XCTFail("Sorting failed!"); return }
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .iapView:
- Exclude checks
Line should be 120 characters or less: currently 162 characters Open
Open
try FileManager.default.copyItem(at: Bundle.billJPGGUrl, to: Self.tempFolder.appendingPathComponent(uuid.uuidString + "-1").appendingPathExtension("jpg"))
- Exclude checks
Line should be 120 characters or less: currently 124 characters Open
Open
let creatorAttribute = try XCTUnwrap(document.documentAttributes?[PDFDocumentAttribute.creatorAttribute] as? String)
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .receiptDataNotFound:
- Exclude checks
Variable name should be between 3 and 40 characters long: 'id' Open
Open
public var id: String { rawValue }
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .tag:
- Exclude checks
Line should be 120 characters or less: currently 125 characters Open
Open
return NSLocalizedString("document_failure_reason__rename_failed_file_already_exists", comment: "Rename failed.")
- Exclude checks
Line should be 120 characters or less: currently 129 characters Open
Open
UserNotification.schedule(title: "Background Task Completed 🎉", message: "Status: \(success ? "success" : "failed")")
- Exclude checks
Line should be 120 characters or less: currently 214 characters Open
Open
// let document1 = Document(path: URL(fileURLWithPath: "~/Downloads/2018-05-12--aaa-example-description__tag1_tag2.pdf"), taggingStatus: .tagged, downloadStatus: defaultDownloadStatus, byteSize: defaultSize)
- Exclude checks
Line should be 120 characters or less: currently 124 characters Open
Open
let creatorAttribute = try XCTUnwrap(document.documentAttributes?[PDFDocumentAttribute.creatorAttribute] as? String)
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .dataIsInvalid:
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .appleIncRootCertificateNotFound:
- Exclude checks
Line should be 120 characters or less: currently 133 characters Open
Open
static let billPNGUrl = URL(fileURLWithPath: Bundle.module.path(forResource: "document1", ofType: "png", inDirectory: "assets")!)
- Exclude checks
Line should be 120 characters or less: currently 128 characters Open
Open
return NSLocalizedString("document_error_description__rename_failed_file_already_exists", comment: "Rename failed.")
- Exclude checks
Line should be 120 characters or less: currently 152 characters Open
Open
return NSLocalizedString("document_recovery_suggestion__tags_missing", comment: "No tags could be found, e.g. while renaming the document.")
- Exclude checks
Line should be 120 characters or less: currently 172 characters Open
Open
Document(path: URL(fileURLWithPath: "~/Downloads/2018-05-12--example-description__tag=1_TaG3.pdf"), taggingStatus: .tagged, downloadStatus: .local, byteSize: 0)
- Exclude checks
Line should be 120 characters or less: currently 208 characters Open
Open
let document1 = Document(path: URL(fileURLWithPath: "~/Downloads/2018-05-12--example-description__tag1_tag2.pdf"), taggingStatus: .tagged, downloadStatus: defaultDownloadStatus, byteSize: defaultSize)
- Exclude checks
Line should be 120 characters or less: currently 208 characters Open
Open
let document1 = Document(path: URL(fileURLWithPath: "~/Downloads/2018-05-12--example-description__tag1_tag2.pdf"), taggingStatus: .tagged, downloadStatus: defaultDownloadStatus, byteSize: defaultSize)
- Exclude checks
Line should be 120 characters or less: currently 129 characters Open
Open
let document = Document(path: path, taggingStatus: .tagged, downloadStatus: defaultDownloadStatus, byteSize: defaultSize)
- Exclude checks
Line should be 120 characters or less: currently 124 characters Open
Open
let creatorAttribute = try XCTUnwrap(document.documentAttributes?[PDFDocumentAttribute.creatorAttribute] as? String)
- Exclude checks
Line should be 120 characters or less: currently 124 characters Open
Open
localizedSubtitle: NSLocalizedString("Start scanning a document", comment: ""),
- Exclude checks
Line should be 120 characters or less: currently 126 characters Open
Open
let sceneConfiguration = UISceneConfiguration(name: "Custom Configuration", sessionRole: connectingSceneSession.role)
- Exclude checks
Variable name should be between 3 and 40 characters long: 'at' Open
Open
func save(data: Data, at: URL) throws
- Exclude checks
Line should be 120 characters or less: currently 150 characters Open
Open
// if a folder was deleted during enumeration, there occurs a "no such file" error - we assume that there will be another change triggered
- Exclude checks
Type name should only contain alphanumeric characters: 'MarkdownView_Previews' Open
Open
struct MarkdownView_Previews: PreviewProvider {
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .tag(let tagName):
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .yearMonth(let date):
- Exclude checks
Line should be 120 characters or less: currently 161 characters Open
Open
archivePathType = PathManager.userDefaults.archivePathType ?? .local(FileManager.default.documentsDirectoryURL.appendingPathComponent("PDFArchiver"))
- Exclude checks
Line should be 120 characters or less: currently 150 characters Open
Open
return NSLocalizedString("document_error_description__date_missing", comment: "No date could be found, e.g. while renaming the document.")
- Exclude checks
Line should be 120 characters or less: currently 165 characters Open
Open
let paths = (try? FileManager.default.contentsOfDirectory(at: PathConstants.tempImageURL, includingPropertiesForKeys: nil, options: .skipsHiddenFiles)) ?? []
- Exclude checks
Variable name should be between 3 and 40 characters long: 'of' Open
Open
func startDownload(of: URL) throws
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .year(let date):
- Exclude checks
Line should be 120 characters or less: currently 157 characters Open
Open
XCTAssert(fm.fileExists(at: destination.appendingPathComponent("subfolder").appendingPathComponent("subsubfolder").appendingPathComponent("file22")))
- Exclude checks
Line should be 120 characters or less: currently 131 characters Open
Open
// this is disabled because it might cause unintended redirects, since the Sentry crash detection seems to be wonky
- Exclude checks
Line should be 120 characters or less: currently 155 characters Open
Open
func windowScene(_ windowScene: UIWindowScene, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .bundleVersionVerification:
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .hashValidation:
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .unableToLoadiTunesCertificate:
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .archive:
- Exclude checks
Case statements should vertically align with their enclosing switch statement. Open
Open
case .tag:
- Exclude checks
Line should be 120 characters or less: currently 123 characters Open
Open
log.errorAndAssert("Error while getting archive url.", metadata: ["error": "\(String(describing: error))"])
- Exclude checks
Type name should only contain alphanumeric characters: 'OBCardView_Previews' Open
Open
struct OBCardView_Previews: PreviewProvider {
- Exclude checks
Line should be 120 characters or less: currently 150 characters Open
Open
return NSLocalizedString("document_error_description__tags_missing", comment: "No tags could be found, e.g. while renaming the document.")
- Exclude checks
Line should be 120 characters or less: currently 161 characters Open
Open
return NSLocalizedString("document_failure_reason__description_missing", comment: "No description could be found, e.g. while renaming the document.")
- Exclude checks
Line should be 120 characters or less: currently 133 characters Open
Open
// let document = Document(path: path, downloadStatus: defaultDownloadStatus, taggingStatus: .untagged, byteSize: defaultSize)
- Exclude checks