PDF-Archiver/PDF-Archiver

View on GitHub

Showing 405 of 405 total issues

Line should be 120 characters or less: currently 161 characters
Open

                    let url = try URL(resolvingBookmarkData: bookmarkData, options: .withSecurityScope, relativeTo: nil, bookmarkDataIsStale: &staleBookmarkData)

Line should be 120 characters or less: currently 161 characters
Open

            archivePathType = PathManager.userDefaults.archivePathType ?? .local(FileManager.default.documentsDirectoryURL.appendingPathComponent("PDFArchiver"))

Line should be 120 characters or less: currently 182 characters
Open

        // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.

Line should be 120 characters or less: currently 130 characters
Open

        // we must add the security scope here, because the LocalFolderProvider is not initialized when this functions gets called

Case statements should vertically align with their enclosing switch statement.
Open

                    case .delete(let deleteDetails):

Line should be 120 characters or less: currently 134 characters
Open

//        guard let sortedDocuments1 = try? sort(documents, by: [filenameSortDescriptor1]) else { XCTFail("Sorting failed!"); return }

Line should be 120 characters or less: currently 164 characters
Open

//        guard let sortedDocuments4 = try? sort(documents, by: [taggingStatusSortDescriptor2, filenameSortDescriptor1]) else { XCTFail("Sorting failed!"); return }

Line should be 120 characters or less: currently 161 characters
Open

                    Text("Not synchronized - Your documents are stored in a folder you choose on your computer. PDF Archiver does not initiate synchronization.")

Line should be 120 characters or less: currently 126 characters
Open

//                                             localizedSubtitle: NSLocalizedString("Start scanning a document", comment: ""),
Severity: Minor
Found in iOS/PDFArchiverApp.swift by swiftlint

SwiftLint rule 'weak_delegate' did not trigger a violation in the disabled region. Please remove the disable command.
Open

//    // swiftlint:disable weak_delegate
Severity: Minor
Found in iOS/PDFArchiverApp.swift by swiftlint

Line should be 120 characters or less: currently 261 characters
Open

//        let document = Document(path: URL(fileURLWithPath: "~/Downloads/2018-05-12--\(Constants.documentDescriptionPlaceholder)__\(Constants.documentTagPlaceholder).pdf"), taggingStatus: .untagged, downloadStatus: defaultDownloadStatus, byteSize: defaultSize)

Line should be 120 characters or less: currently 124 characters
Open

        let changedMetadataItems = (notification.userInfo?[NSMetadataQueryUpdateChangedItemsKey] as? [NSMetadataItem]) ?? []

Type name should only contain alphanumeric characters: 'DetailRowVIew_Previews'
Open

struct DetailRowVIew_Previews: PreviewProvider {

Line should be 120 characters or less: currently 147 characters
Open

            return NSLocalizedString("document_failure_reason__date_missing", comment: "No date could be found, e.g. while renaming the document.")

Line should be 120 characters or less: currently 182 characters
Open

        // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
Severity: Minor
Found in Tests macOS/Tests_macOS.swift by swiftlint

Line should be 120 characters or less: currently 129 characters
Open

                    NavigationLink(destination: viewModel.view(for: tab.type), tag: tab.type, selection: $viewModel.currentTab) {
Severity: Minor
Found in Shared/Views/MainTabView.swift by swiftlint

Line should be 120 characters or less: currently 146 characters
Open

        try FileManager.default.createDirectory(at: archiveUrl.appendingPathComponent("2020"), withIntermediateDirectories: true, attributes: nil)

Variable name should be between 3 and 40 characters long: 'id'
Open

    let id = UUID()

Line should be 120 characters or less: currently 146 characters
Open

        try FileManager.default.createDirectory(at: archiveUrl.appendingPathComponent("2018"), withIntermediateDirectories: true, attributes: nil)

Line should be 120 characters or less: currently 145 characters
Open

                        let selectedTag = information.tagSuggestions.first ?? information.tagSearchterm.lowercased().slugified(withSeparator: "")
Severity
Category
Status
Source
Language