PDF-Archiver/PDF-Archiver

View on GitHub
ArchiveCore/Sources/ArchiveBackend/Extensions/CIImage.swift

Summary

Maintainability
A
0 mins
Test Coverage

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

        let jpegData = bitmapRep.representation(using: .jpeg, properties: [.compressionFactor: NSNumber(value: Float(quality))])

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

    /// The `CIImage(image: )` initializer does uses the current orientation of the `UIImage`, we fix this be applying a new orientation property.

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

                    .properties: [kCGImagePropertyOrientation: CGImagePropertyOrientation(image.imageOrientation).rawValue]

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

            case .leftMirrored: self = .leftMirrored

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

            case .upMirrored: self = .upMirrored

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

            @unknown default:

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

            case .downMirrored: self = .downMirrored

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

            case .right: self = .right

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

            case .down: self = .down

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

            case .left: self = .left

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

            case .up: self = .up

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

            case .rightMirrored: self = .rightMirrored

There are no issues that match your filters.

Category