PDF-Archiver/PDF-Archiver

View on GitHub

Showing 405 of 405 total issues

Function parameters should be aligned vertically if they're in multiple lines in a declaration.
Open

               line: UInt = #line) {

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

                        foundDocument.specification = isTagged ? (data.specification ?? "n/a").replacingOccurrences(of: "-", with: " ") : (data.specification ?? "n/a")

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

            !url.lastPathComponent.lowercased().contains(Constants.documentTagPlaceholder.lowercased()) else { return false }

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

        guard let enumerator = FileManager.default.enumerator(at: url, includingPropertiesForKeys: properties) else { return [] }

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

struct TagListView_Previews: PreviewProvider {

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

                        Text("Not synchronized - your documents are only stored locally in this app. They can be transferred via the Finder on a Mac, for example.")

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

                case .local:

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

            // if a folder was deleted during enumeration, there occurs a "no such file" error - we assume that there will be another change triggered

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

        } else if let newTags = try NSKeyedUnarchiver.unarchivedArrayOfObjects(ofClass: NSString.self, from: data) as? [String] {
Severity: Minor
Found in Shared/Other/Extensions/URL.swift by swiftlint

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

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

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

struct WrappingHStack_Previews: PreviewProvider {

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

    func save(data: Data, at: URL) throws

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

                StorageSelectionView(selection: $viewModel.selectedArchiveType, onCompletion: viewModel.handleDocumentPicker)
Severity: Minor
Found in Shared/Settings/MoreTabView.swift by swiftlint

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

        Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

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

                        add(XCTAttachment(uniformTypeIdentifier: "image/png", name: "diff image", payload: diffImageData, userInfo: nil))

TODO found
Open

    #warning("TODO: remove all @MainActor annotation on views etc. in iOS 18")

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

    private let fileProperties: [URLResourceKey] = [.ubiquitousItemDownloadingStatusKey, .ubiquitousItemIsDownloadingKey, .fileSizeKey, .localizedNameKey]

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

            UserDefaults.appGroup.set(lastVersionPromptedForReview, forKey: UserDefaultsKeys.lastVersionPromptedForReviewKey.rawValue)

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

//        let document3 = Document(path: URL(fileURLWithPath: "~/Downloads/2010-05-12--aaa-example-description__tag1_tag2.pdf"), taggingStatus: .untagged, downloadStatus: defaultDownloadStatus, byteSize: defaultSize)

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

//        let document2 = Document(path: URL(fileURLWithPath: "~/Downloads/2018-05-12--example-description__tag1_tag2.pdf"), taggingStatus: .tagged, downloadStatus: defaultDownloadStatus, byteSize: defaultSize)
Severity
Category
Status
Source
Language