filestack/filestack-swift

View on GitHub
Tests/FilestackSDKTests/TransformableTests.swift

Summary

Maintainability
F
2 wks
Test Coverage

File TransformableTests.swift has 1267 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import OHHTTPStubs
import OHHTTPStubsSwift
import XCTest

@testable import FilestackSDK
Severity: Major
Found in Tests/FilestackSDKTests/TransformableTests.swift - About 3 days to fix

    TransformableTests has 117 methods (exceeds 20 allowed). Consider refactoring.
    Open

    class TransformableTests: XCTestCase {
        private let processStubConditions = isScheme(Constants.cdnURL.scheme!) && isHost(Constants.cdnURL.host!)
        private let client = Client(apiKey: "My-API-KEY")
    
        private var transformable: Transformable!
    Severity: Major
    Found in Tests/FilestackSDKTests/TransformableTests.swift - About 2 days to fix

      Function testChainedTransformationsURLWithExternalURL has 88 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          func testChainedTransformationsURLWithExternalURL() {
              let security = Seeds.Securities.basic
              let client = Client(apiKey: "MY-API-KEY", security: security)
      
              let transformable = client.transformable(externalURL: URL(string: "https://SOME-EXTERNAL-URL/photo.jpg")!)
      Severity: Major
      Found in Tests/FilestackSDKTests/TransformableTests.swift - About 3 hrs to fix

        Function testChainedTransformationsURL has 87 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            func testChainedTransformationsURL() {
                let security = Seeds.Securities.basic
                let client = Client(apiKey: "MY-API-KEY", security: security)
        
                let transformable = client.transformable(handle: "MY-HANDLE")
        Severity: Major
        Found in Tests/FilestackSDKTests/TransformableTests.swift - About 3 hrs to fix

          Function testStoreImageTransformation has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              func testStoreImageTransformation() {
                  stub(condition: processStubConditions) { _ in
          
                      let json: [String: Any] = [
                          "container": "filestack-web-demo",
          Severity: Minor
          Found in Tests/FilestackSDKTests/TransformableTests.swift - About 1 hr to fix

            Function testVideoConvertTransformationURL has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                func testVideoConvertTransformationURL() {
                    transformable.add(transform: AVTransform()
                        .preset("h264")
                        .force(false)
                        .width(1080)
            Severity: Minor
            Found in Tests/FilestackSDKTests/TransformableTests.swift - About 1 hr to fix

              Function testMinifyJSTransformationWithOptionalsURL has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  func testMinifyJSTransformationWithOptionalsURL() {
                      transformable.add(transform: MinifyJSTransform()
                          .booleans(true)
                          .builtIns(false)
                          .consecutiveAdds(true)
              Severity: Minor
              Found in Tests/FilestackSDKTests/TransformableTests.swift - About 1 hr to fix

                Function testAudioConvertTransformationURL has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    func testAudioConvertTransformationURL() {
                        transformable
                            .add(transform: AVTransform()
                                .preset("m4a")
                                .force(false)
                Severity: Minor
                Found in Tests/FilestackSDKTests/TransformableTests.swift - About 1 hr to fix

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("debug")
                              .appendingPathComponent("resize=width:50,height:25,fit:crop,align:bottom")
                              .appendingPathComponent("crop=dim:[20,30,150,250]")
                              .appendingPathComponent("flip")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 3 hrs to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1280..1309

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 235.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("MY-API-KEY")
                              .appendingPathComponent("debug")
                              .appendingPathComponent("resize=width:50,height:25,fit:crop,align:bottom")
                              .appendingPathComponent("crop=dim:[20,30,150,250]")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 3 hrs to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1153..1182

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 235.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testPartialBlurTransformationUrl() {
                          let firstObj = CGRect(x: 10, y: 20, width: 30, height: 40)
                          let secondObj = CGRect(x: 11, y: 21, width: 31, height: 41)
                          transformable.add(transform: PartialBlurTransform(objects: [firstObj, secondObj]))
                  
                  
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 207..217

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 105.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testPartialPixelateTransformationUrl() {
                          let firstObj = CGRect(x: 10, y: 20, width: 30, height: 40)
                          let secondObj = CGRect(x: 11, y: 21, width: 31, height: 41)
                          transformable.add(transform: PartialPixelateTransform(objects: [firstObj, secondObj]))
                  
                  
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 195..205

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 105.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testSmartCropTransformationWithModeFaceURL() {
                          transformable.add(transform: SmartCropTransform()
                                              .mode(.face)
                                              .fillColor(.white)
                                              .width(512)
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 469..483

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 94.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testSmartCropTransformationWithModeAutoURL() {
                          transformable.add(transform: SmartCropTransform()
                                              .mode(.auto)
                                              .fillColor(.white)
                                              .width(512)
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 501..515

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 94.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testConvertTransformationWithOptionalsURL() {
                          transformable.add(transform: ConvertTransform()
                              .format(.jpg)
                              .compress()
                              .strip()
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 945..957

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 78.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                      func testResizeTransformationWithOptionalsURL() {
                          transformable.add(transform: ResizeTransform().width(50).fit(.crop).align(.center))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("resize=width:50,fit:crop,align:center")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 641..649
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 786..794

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 78.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                      func testBorderTransformationURL() {
                          transformable.add(transform: BorderTransform().width(3).color(.white).background(.red))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("border=width:3,color:FFFFFFFF,background:FF0000FF")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 269..277
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 641..649

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 78.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                      func testVignetteTransformationURL() {
                          transformable.add(transform: VignetteTransform().amount(80).blurMode(.gaussian).background(.black))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("vignette=amount:80,blurmode:gaussian,background:000000FF")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 269..277
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 786..794

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 78.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testConvertPreservingInputQualityTransformationURL() {
                          transformable.add(transform: ConvertTransform()
                              .format(.jpg)
                              .compress()
                              .preserveInputQuality()
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 931..943

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 78.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testASCIIWithReverseTransformationUrl() {
                          transformable.add(transform: ASCIITransform().background(.red).foreground(.blue).reverse())
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("ascii=background:FF0000FF,foreground:0000FFFF,colored:true,reverse:true")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 239..247

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 74.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testWatermarkTransformationURL() {
                          transformable.add(transform: WatermarkTransform(file: "WATERMARK-HANDLE").size(50).position(.top))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("watermark=file:WATERMARK-HANDLE,size:50,position:[top]")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 309..317

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 74.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testRotateTransformationURL() {
                          transformable.add(transform: RotateTransform(deg: 320).exif(true).background(.white))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("rotate=deg:320,exif:true,background:FFFFFFFF")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 359..367

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 74.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testUpscaleTransformationUrl() {
                          transformable.add(transform: UpscaleTransform().noise(.low).style(.artwork).noUpscale())
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("upscale=noise:low,style:artwork,upscale:false")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 73..81

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 74.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                      func testShadowTransformationWithOptionalsURL() {
                          transformable.add(transform: ShadowTransform().blur(15).opacity(20))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("shadow=blur:15,opacity:20")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 3 other locations - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 219..227
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1457..1469
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1622..1632

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 70.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                      func testProgressiveJPEGTransformationUrl() {
                          transformable.add(transform: ProgressiveJPEGTransform().quality(15).metadata(true))
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("pjpg=quality:15,metadata:true")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 3 other locations - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 756..764
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1457..1469
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1622..1632

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 70.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                      func testMinifyCSSTransformationWithOptionsURL() {
                          transformable.add(transform: MinifyCSSTransform()
                              .level(1)
                              .gzip(true))
                  
                  
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 3 other locations - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 219..227
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 756..764
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1457..1469

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 70.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                      func testDocumentDetectionTransformationURL() {
                          transformable.add(transform: DocumentDetectionTransform()
                              .coords(false)
                              .preprocess(true))
                  
                  
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 3 other locations - About 1 hr to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 219..227
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 756..764
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1622..1632

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 70.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testCompressTransformationUrl() {
                          transformable.add(transform: CompressTransform().metadata(true))
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("compress=metadata:true")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testSharpenTransformationURL() {
                          transformable.add(transform: SharpenTransform().amount(3))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("sharpen=amount:3")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testBlurTransformationURL() {
                          transformable.add(transform: BlurTransform().amount(5))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("blur=amount:5")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testBlurFacesTransformationUrl() {
                          transformable.add(transform: BlurFacesTransform().amount(30))
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("blur_faces=amount:30.0")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testBorderTransformationWithOptionalsURL() {
                          transformable.add(transform: BorderTransform().width(5))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("border=width:5")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testOilPaintTransformationUrl() {
                          transformable.add(transform: OilPaintTransform().amount(13))
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("oil_paint=amount:13")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testVignetteTransformationWithOptionalsURL() {
                          transformable.add(transform: VignetteTransform().amount(35))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("vignette=amount:35")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testPolaroidTransformationWithOptionalsURL() {
                          transformable.add(transform: PolaroidTransform().rotate(45))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("polaroid=rotate:45")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testSepiaTransformationURL() {
                          transformable.add(transform: SepiaTransform().tone(85))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("sepia=tone:85")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testBlackAndWhiteTransformationURL() {
                          transformable.add(transform: BlackAndWhiteTransform().threshold(45))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("blackwhite=threshold:45")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 93..101
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      func testCacheTransformationUrl() {
                          transformable.add(transform: CacheTransform().expiry(3600))
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("cache=expiry:3600")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 10 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 83..91
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 134..142
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 185..193
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 661..669
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 691..699
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 806..814
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 816..824
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 836..844
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 866..874
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 886..894

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                      func testEnhanceTransformationWithPresetsUrl() {
                          transformable.add(transform: EnhanceTransform()
                              .preset(.beautifyPlus))
                  
                          let expectedUrl = Constants.cdnURL
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 3 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 399..407
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 439..447
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 766..774

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          transformable.add(transform: AVTransform()
                              .preset("h264")
                              .force(false)
                              .width(1080)
                              .height(720)
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1579..1587

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                      func testCircleTransformationURL() {
                          transformable.add(transform: CircleTransform().background(.red))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("circle=background:FF0000FF")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 3 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 154..163
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 399..407
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 439..447

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          transformable.add(transform: MinifyJSTransform()
                              .booleans(true)
                              .builtIns(false)
                              .consecutiveAdds(true)
                              .deadcode(false)
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 990..998

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                      func testDetectFacesTransformationWithOptionalsURL() {
                          transformable.add(transform: DetectFacesTransform().color(.red))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("detect_faces=color:FF0000FF")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 3 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 154..163
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 439..447
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 766..774

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                      func testCropFacesTransformationWithOptionals2URL() {
                          transformable.add(transform: CropFacesTransform().mode(.crop))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("crop_faces=mode:crop")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 3 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 154..163
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 399..407
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 766..774

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                          let transformable = client.transformable(externalURL: URL(string: "https://SOME-EXTERNAL-URL/photo.jpg")!)
                              .add(transform: ResizeTransform().width(50).height(25).fit(.crop).align(.bottom))
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1225..1226

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 59.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                      func testWatermarkTransformationWithPairedPositionAndOptionalsURL() {
                          transformable.add(transform: WatermarkTransform(file: "WATERMARK-HANDLE"))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("watermark=file:WATERMARK-HANDLE")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 329..337
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 969..977

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 58.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                      func testQualityTransformationURL() {
                          transformable.add(transform: QualityTransform(value: 88))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("quality=value:88")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 329..337
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 379..387

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 58.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                      func testRotateTransformationWithOptionalsURL() {
                          transformable.add(transform: RotateTransform(deg: 150))
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("rotate=deg:150")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 379..387
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 969..977

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 58.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testCacheTransformationWithMaxExpiryUrl() {
                          transformable.add(transform: CacheTransform().maxExpiry())
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("cache=expiry:max")
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 631..639

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 58.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      func testRoundedCornersMaxRadiusTransformationWithoutArgumentsURL() {
                          transformable.add(transform: RoundedCornersTransform().maxRadius())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("rounded_corners=radius:max")
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 50 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 103..111

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 58.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 3 locations. Consider refactoring.
                  Open

                          let transformable = client.transformable(handle: "MY-HANDLE")
                              .add(transform: ResizeTransform().width(50).height(25).fit(.crop).align(.bottom))
                              .add(transform: CropTransform(x: 20, y: 30, width: 150, height: 250))
                              .add(transform: FlipTransform())
                              .add(transform: FlopTransform())
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 518..524
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1225..1239

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 56.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 3 locations. Consider refactoring.
                  Open

                          let transformable = client.transformable(externalURL: URL(string: "https://SOME-EXTERNAL-URL/photo.jpg")!)
                              .add(transform: ResizeTransform().width(50).height(25).fit(.crop).align(.bottom))
                              .add(transform: CropTransform(x: 20, y: 30, width: 150, height: 250))
                              .add(transform: FlipTransform())
                              .add(transform: FlopTransform())
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 518..524
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1098..1112

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 56.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 3 locations. Consider refactoring.
                  Open

                          transformable.add(transform: PixelateFacesTransform()
                              .faces([3])
                              .minSize(0.25)
                              .maxSize(0.45)
                              .buffer(200)
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1098..1112
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1225..1239

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 56.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testNoMetadataTransformationURL() {
                          transformable.add(transform: NoMetadataTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("no_metadata")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testEnhanceTransformationUrl() {
                          transformable.add(transform: EnhanceTransform())
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("enhance")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testRoundedCornersTransformationWithoutArgumentsURL() {
                          transformable.add(transform: RoundedCornersTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("rounded_corners")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testCircleTransformationWithoutArgumentsURL() {
                          transformable.add(transform: CircleTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("circle")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testZipTransformationURL() {
                          transformable.add(transform: ZipTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("zip")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testOCRTransformationURL() {
                          transformable.add(transform: OCRTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("ocr")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testMinifyJSTransformationURL() {
                          transformable.add(transform: MinifyJSTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("minify_js")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testNegativeTransformationUrl() {
                          transformable.add(transform: NegativeTransform())
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("negative")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testSecureForWorkTransformationURL() {
                          transformable.add(transform: SecureForWorkTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("sfw")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testMonochromeTransformationURL() {
                          transformable.add(transform: MonochromeTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("monochrome")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testFlipTransformationURL() {
                          transformable.add(transform: FlipTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("flip")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testTornEdgesTransformationWithoutArgumentsURL() {
                          transformable.add(transform: TornEdgesTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("torn_edges")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testAutoImageTransformationURL() {
                          transformable.add(transform: AutoImageTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("auto_image")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testMinifyCSSTransformationURL() {
                          transformable.add(transform: MinifyCSSTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("minify_css")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testFlopTransformationURL() {
                          transformable.add(transform: FlopTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("flop")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testSharpenTransformationWithoutArgumentsURL() {
                          transformable.add(transform: SharpenTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("sharpen")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testRedEyeRemovalTransformationUrl() {
                          transformable.add(transform: RedEyeRemovalTransform())
                  
                          let expectedUrl = Constants.cdnURL
                              .appendingPathComponent("redeye")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testImageSizeTransformationURL() {
                          transformable.add(transform: ImageSizeTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("imagesize")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testDetectFacesTransformationWithoutArgumentsURL() {
                          transformable.add(transform: DetectFacesTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("detect_faces")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testSepiaTransformationWithoutArgumentsURL() {
                          transformable.add(transform: SepiaTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("sepia")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testPolaroidTransformationWithoutArgumentsURL() {
                          transformable.add(transform: PolaroidTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("polaroid")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testShadowTransformationWithoutArgumentsURL() {
                          transformable.add(transform: ShadowTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("shadow")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testBorderTransformationWithoutArgumentsURL() {
                          transformable.add(transform: BorderTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("border")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testBlurTransformationWithoutArgumentsURL() {
                          transformable.add(transform: BlurTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("blur")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testTagsTransformationURL() {
                          transformable.add(transform: TagsTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("tags")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testVignetteTransformationWithoutArgumentsURL() {
                          transformable.add(transform: VignetteTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("vignette")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testBlackAndWhiteTransformationWithoutArgumentsURL() {
                          transformable.add(transform: BlackAndWhiteTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("blackwhite")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1538..1546
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 28 locations. Consider refactoring.
                  Open

                      func testCopyrightTransformationURL() {
                          transformable.add(transform: CopyrightTransform())
                  
                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("copyright")
                  Severity: Major
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 27 other locations - About 45 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 144..152
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 175..183
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 229..237
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 289..297
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 299..307
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 339..347
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 349..357
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 409..417
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 611..619
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 651..659
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 681..689
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 711..719
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 746..754
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 776..784
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 796..804
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 826..834
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 846..854
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 856..864
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 876..884
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 896..904
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 959..967
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 979..987
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1528..1536
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1548..1556
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1558..1566
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1568..1576
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1612..1620

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 54.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 3 locations. Consider refactoring.
                  Open

                          transformable.add(transform: ShadowTransform()
                              .blur(10)
                              .opacity(35)
                              .vector(x: 30, y: 30)
                              .color(.black)
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 40 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1098..1122
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1225..1249

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 49.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          let expectedURL = Constants.cdnURL.appendingPathComponent("minify_js=booleans:true,builtIns:false," +
                              "consecutiveAdds:true,deadcode:false,evaluate:true,flipComparisons:false,guards:true,infinity:false," +
                              "mangle:true,memberExpressions:false,mergeVars:true,numericLiterals:false,propertyLiterals:true," +
                              "regexpConstructors:false,removeConsole:true,removeDebugger:false,removeUndefined:true,simplify:false," +
                              "simplifyComparisons:true,typeConstructors:false,undefinedToVoid:true")
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 35 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1067..1075

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 45.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent(
                                  "video_convert=preset:m4a,force:false,title:Chapter 1," +
                                      "extname:m4a,filename:chapter_1,location:S3,path:/myfiles/chapter_1.m4a," +
                                      "access:public,container:user-audios," +
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 1 other location - About 35 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1602..1607

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 45.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("store=location:S3,region:us-east-1,container:filestack-web-demo,path:my/custom/path/,filename:custom_flower_crop.jpg,access:public,base64decode:true")
                              .appendingPathComponent("crop=dim:[301,269,1226,1100]")
                              .appendingPathComponent("security=policy:\(security.encodedPolicy),signature:\(security.signature)")
                              .appendingPathComponent("MY-HANDLE")
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 30 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1085..1089
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1478..1482

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 41.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("debug")
                              .appendingPathComponent("flip")
                              .appendingPathComponent("flop")
                              .appendingPathComponent("MY-HANDLE")
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 30 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1346..1350
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1478..1482

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 41.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                          let expectedURL = Constants.cdnURL
                              .appendingPathComponent("MY-API-KEY")
                              .appendingPathComponent("doc_detection=coords:false,preprocess:true")
                              .appendingPathComponent("security=policy:\(security.encodedPolicy),signature:\(security.signature)")
                              .appendingPathComponent("https://SOME-EXTERNAL-URL/photo.jpg")
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 30 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1085..1089
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1346..1350

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 41.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 3 locations. Consider refactoring.
                  Open

                          transformable.add(transform: CropFacesTransform().mode(.fill).width(250).height(150).faces([4]))
                  Severity: Minor
                  Found in Tests/FilestackSDKTests/TransformableTests.swift and 2 other locations - About 30 mins to fix
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1098..1105
                  Tests/FilestackSDKTests/TransformableTests.swift on lines 1225..1232

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 40.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  There are no issues that match your filters.

                  Category
                  Status