CloudSlang/cs-actions

View on GitHub

Showing 3,994 of 4,023 total issues

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

            resultMap +
              (INSTANCE_NAME -> name) +
              (INSTANCE_DETAILS -> toPretty(prettyPrint, instance)) +
              (DISKS -> disksNames.mkString(COMMA)) +
              (STATUS -> status) +
cs-google/src/main/scala/io/cloudslang/content/google/actions/compute/compute_engine/disks/DetachDisk.scala on lines 162..166
cs-google/src/main/scala/io/cloudslang/content/google/actions/compute/compute_engine/instances/InstancesSetTags.scala on lines 174..178

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 3 locations. Consider refactoring.
Open

            resultMap +
              (INSTANCE_NAME -> name) +
              (INSTANCE_DETAILS -> toPretty(prettyPrint, instance)) +
              (TAGS -> tags.mkString(COMMA)) +
              (STATUS -> status)
cs-google/src/main/scala/io/cloudslang/content/google/actions/compute/compute_engine/disks/AttachDisk.scala on lines 201..205
cs-google/src/main/scala/io/cloudslang/content/google/actions/compute/compute_engine/disks/DetachDisk.scala on lines 162..166

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 3 locations. Consider refactoring.
Open

            resultMap +
              (INSTANCE_NAME -> name) +
              (INSTANCE_DETAILS -> toPretty(prettyPrint, instance)) +
              (DISKS -> disksNames.mkString(COMMA)) +
              (STATUS -> status)
cs-google/src/main/scala/io/cloudslang/content/google/actions/compute/compute_engine/disks/AttachDisk.scala on lines 201..205
cs-google/src/main/scala/io/cloudslang/content/google/actions/compute/compute_engine/instances/InstancesSetTags.scala on lines 174..178

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 9 locations. Consider refactoring.
Open

    public GetModifiedDateInputs(final String source, final String threshold, final String localeLang, final String localeCountry) {
        this.source = source;
        this.threshold = threshold;
        this.localeLang = localeLang;
        this.localeCountry = localeCountry;
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/entities/GetMonitorsDeployedAtInputs.java on lines 26..32
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/utils/RemoteServer.java on lines 38..43
cs-rft/src/main/java/io/cloudslang/content/rft/entities/RemoteSecureCopyInputs.java on lines 46..51
cs-rft/src/main/java/io/cloudslang/content/rft/entities/sftp/SFTPUploadFileInputs.java on lines 28..33
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 179..185
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 373..378
cs-ssh/src/main/java/io/cloudslang/content/ssh/entities/ConnectionDetails.java on lines 32..37
cs-utilities/src/main/java/io/cloudslang/content/utilities/entities/ProcessResponseEntity.java on lines 28..33

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

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

    public static void setConnectionParameters(HttpClientInputs httpClientInputs,
                                               @NotNull final String connectTimeout,
                                               @NotNull final String socketTimeout,
                                               @NotNull final String keepAlive,
                                               @NotNull final String connectionsMaxPerRoot,
cs-microsoft-ad/src/main/java/io/cloudslang/content/microsoftAD/utils/HttpUtils.java on lines 195..206
cs-office-365/src/main/java/io/cloudslang/content/office365/utils/HttpUtils.java on lines 203..214

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 9 locations. Consider refactoring.
Open

    public LocalSCPProcessor(File tmp, String destPath, String sourceFileName, int connectionTimeout) {
        this.tmp = tmp;
        this.destPath = destPath;
        this.sourceFileName = sourceFileName;
        this.connectionTimeout = connectionTimeout;
cs-filesystem/src/main/java/io/cloudslang/content/filesystem/entities/GetModifiedDateInputs.java on lines 28..33
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/entities/GetMonitorsDeployedAtInputs.java on lines 26..32
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/utils/RemoteServer.java on lines 38..43
cs-rft/src/main/java/io/cloudslang/content/rft/entities/RemoteSecureCopyInputs.java on lines 46..51
cs-rft/src/main/java/io/cloudslang/content/rft/entities/sftp/SFTPUploadFileInputs.java on lines 28..33
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 179..185
cs-ssh/src/main/java/io/cloudslang/content/ssh/entities/ConnectionDetails.java on lines 32..37
cs-utilities/src/main/java/io/cloudslang/content/utilities/entities/ProcessResponseEntity.java on lines 28..33

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 9 locations. Consider refactoring.
Open

    public RemoteServer(String id, String os, String name, String host) {
        this.id = id;
        this.os = os;
        this.name = name;
        this.host = host;
cs-filesystem/src/main/java/io/cloudslang/content/filesystem/entities/GetModifiedDateInputs.java on lines 28..33
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/entities/GetMonitorsDeployedAtInputs.java on lines 26..32
cs-rft/src/main/java/io/cloudslang/content/rft/entities/RemoteSecureCopyInputs.java on lines 46..51
cs-rft/src/main/java/io/cloudslang/content/rft/entities/sftp/SFTPUploadFileInputs.java on lines 28..33
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 179..185
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 373..378
cs-ssh/src/main/java/io/cloudslang/content/ssh/entities/ConnectionDetails.java on lines 32..37
cs-utilities/src/main/java/io/cloudslang/content/utilities/entities/ProcessResponseEntity.java on lines 28..33

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

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

    public static void setConnectionParameters(HttpClientInputs httpClientInputs,
                                               @NotNull final String connectTimeout,
                                               @NotNull final String socketTimeout,
                                               @NotNull final String keepAlive,
                                               @NotNull final String connectionsMaxPerRoot,
cs-office-365/src/main/java/io/cloudslang/content/office365/utils/HttpUtils.java on lines 203..214
cs-oracle-cloud/src/main/java/io/cloudslang/content/oracle/oci/utils/HttpUtils.java on lines 100..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 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 9 locations. Consider refactoring.
Open

    private GetMonitorsDeployedAtInputs(String targetServer, String colDelimiter, String rowDelimiter,
                                        SiteScopeCommonInputs commonInputs){
        this.targetServer = targetServer;
        this.colDelimiter = colDelimiter;
        this.rowDelimiter = rowDelimiter;
cs-filesystem/src/main/java/io/cloudslang/content/filesystem/entities/GetModifiedDateInputs.java on lines 28..33
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/utils/RemoteServer.java on lines 38..43
cs-rft/src/main/java/io/cloudslang/content/rft/entities/RemoteSecureCopyInputs.java on lines 46..51
cs-rft/src/main/java/io/cloudslang/content/rft/entities/sftp/SFTPUploadFileInputs.java on lines 28..33
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 179..185
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 373..378
cs-ssh/src/main/java/io/cloudslang/content/ssh/entities/ConnectionDetails.java on lines 32..37
cs-utilities/src/main/java/io/cloudslang/content/utilities/entities/ProcessResponseEntity.java on lines 28..33

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 9 locations. Consider refactoring.
Open

    public ConnectionDetails(String host, int port, String username, String password) {
        this.host = host;
        this.port = port;
        this.username = username;
        this.password = password;
cs-filesystem/src/main/java/io/cloudslang/content/filesystem/entities/GetModifiedDateInputs.java on lines 28..33
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/entities/GetMonitorsDeployedAtInputs.java on lines 26..32
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/utils/RemoteServer.java on lines 38..43
cs-rft/src/main/java/io/cloudslang/content/rft/entities/RemoteSecureCopyInputs.java on lines 46..51
cs-rft/src/main/java/io/cloudslang/content/rft/entities/sftp/SFTPUploadFileInputs.java on lines 28..33
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 179..185
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 373..378
cs-utilities/src/main/java/io/cloudslang/content/utilities/entities/ProcessResponseEntity.java on lines 28..33

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 9 locations. Consider refactoring.
Open

    public RemoteSecureCopyInputs(String srcPath, String destHost, String destPath, String destUsername) {
        this.srcPath = srcPath;
        this.destHost = destHost;
        this.destPath = destPath;
        this.destUsername = destUsername;
cs-filesystem/src/main/java/io/cloudslang/content/filesystem/entities/GetModifiedDateInputs.java on lines 28..33
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/entities/GetMonitorsDeployedAtInputs.java on lines 26..32
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/utils/RemoteServer.java on lines 38..43
cs-rft/src/main/java/io/cloudslang/content/rft/entities/sftp/SFTPUploadFileInputs.java on lines 28..33
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 179..185
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 373..378
cs-ssh/src/main/java/io/cloudslang/content/ssh/entities/ConnectionDetails.java on lines 32..37
cs-utilities/src/main/java/io/cloudslang/content/utilities/entities/ProcessResponseEntity.java on lines 28..33

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 9 locations. Consider refactoring.
Open

    public ProcessResponseEntity(final String stdout, final String stderr, final int exitCode, boolean timeout) {
        this.exitCode = exitCode;
        this.stdout = stdout;
        this.stderr = stderr;
        this.timeout = timeout;
cs-filesystem/src/main/java/io/cloudslang/content/filesystem/entities/GetModifiedDateInputs.java on lines 28..33
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/entities/GetMonitorsDeployedAtInputs.java on lines 26..32
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/utils/RemoteServer.java on lines 38..43
cs-rft/src/main/java/io/cloudslang/content/rft/entities/RemoteSecureCopyInputs.java on lines 46..51
cs-rft/src/main/java/io/cloudslang/content/rft/entities/sftp/SFTPUploadFileInputs.java on lines 28..33
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 179..185
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 373..378
cs-ssh/src/main/java/io/cloudslang/content/ssh/entities/ConnectionDetails.java on lines 32..37

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

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

    public static void setConnectionParameters(HttpClientInputs httpClientInputs,
                                               @NotNull final String connectTimeout,
                                               @NotNull final String socketTimeout,
                                               @NotNull final String keepAlive,
                                               @NotNull final String connectionsMaxPerRoot,
cs-microsoft-ad/src/main/java/io/cloudslang/content/microsoftAD/utils/HttpUtils.java on lines 195..206
cs-oracle-cloud/src/main/java/io/cloudslang/content/oracle/oci/utils/HttpUtils.java on lines 100..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 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 9 locations. Consider refactoring.
Open

    public SFTPUploadFileInputs(SFTPCommonInputs sftpCommonInputs, String remotePath, String localPath, String localFile) {
        this.sftpCommonInputs = sftpCommonInputs;
        this.remotePath = remotePath;
        this.localPath = localPath;
        this.localFile = localFile;
cs-filesystem/src/main/java/io/cloudslang/content/filesystem/entities/GetModifiedDateInputs.java on lines 28..33
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/entities/GetMonitorsDeployedAtInputs.java on lines 26..32
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/utils/RemoteServer.java on lines 38..43
cs-rft/src/main/java/io/cloudslang/content/rft/entities/RemoteSecureCopyInputs.java on lines 46..51
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 179..185
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 373..378
cs-ssh/src/main/java/io/cloudslang/content/ssh/entities/ConnectionDetails.java on lines 32..37
cs-utilities/src/main/java/io/cloudslang/content/utilities/entities/ProcessResponseEntity.java on lines 28..33

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 9 locations. Consider refactoring.
Open

    public SCPLocalProcessor(String srcPath, File dest, ScpCopier parent, int connectionTimeout) {
        this.srcPath = srcPath;
        this.dest = dest;
        this.parent = parent;
        this.connectionTimeout = connectionTimeout;
cs-filesystem/src/main/java/io/cloudslang/content/filesystem/entities/GetModifiedDateInputs.java on lines 28..33
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/entities/GetMonitorsDeployedAtInputs.java on lines 26..32
cs-microfocus-sitescope/src/main/java/io/cloudslang/content/sitescope/utils/RemoteServer.java on lines 38..43
cs-rft/src/main/java/io/cloudslang/content/rft/entities/RemoteSecureCopyInputs.java on lines 46..51
cs-rft/src/main/java/io/cloudslang/content/rft/entities/sftp/SFTPUploadFileInputs.java on lines 28..33
cs-rft/src/main/java/io/cloudslang/content/rft/remote_copy/ScpCopier.java on lines 373..378
cs-ssh/src/main/java/io/cloudslang/content/ssh/entities/ConnectionDetails.java on lines 32..37
cs-utilities/src/main/java/io/cloudslang/content/utilities/entities/ProcessResponseEntity.java on lines 28..33

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 5 locations. Consider refactoring.
Open

    @Test
    public void testDetachVolume() throws Exception {
        toTest.execute(getCommonInputs("DetachVolume", HEADERS), getVolumeCustomInputs(), getVolumeInputs());

        verify(amazonSignatureServiceMock, times(1)).signRequestHeaders(any(InputsWrapper.class), eq(getHeadersMap()),
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 106..113
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 144..151
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 191..198
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 200..207

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 5 locations. Consider refactoring.
Open

    @Test
    public void testCreateSnapshot() throws Exception {
        toTest.execute(getCommonInputs("CreateSnapshot", HEADERS), getVolumeCustomInputs(), getVolumeInputs());

        verify(amazonSignatureServiceMock, times(1)).signRequestHeaders(any(InputsWrapper.class), eq(getHeadersMap()),
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 106..113
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 144..151
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 191..198
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 507..514

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 5 locations. Consider refactoring.
Open

    @Test
    public void testAddLaunchPermissionsToImage() throws Exception {
        toTest.execute(getCommonInputs("ModifyImageAttribute", HEADERS), getAddLaunchPermissionsToImageInputs(), getAddLaunchPermissionsToImageCustomInputs());

        verify(amazonSignatureServiceMock, times(1)).signRequestHeaders(any(InputsWrapper.class), eq(getHeadersMap()),
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 144..151
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 191..198
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 200..207
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 507..514

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 5 locations. Consider refactoring.
Open

    @Test
    public void testAttachVolume() throws Exception {
        toTest.execute(getCommonInputs("AttachVolume", HEADERS), getVolumeCustomInputs(), getVolumeInputs());

        verify(amazonSignatureServiceMock, times(1)).signRequestHeaders(any(InputsWrapper.class), eq(getHeadersMap()),
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 106..113
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 191..198
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 200..207
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 507..514

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 5 locations. Consider refactoring.
Open

    @Test
    public void testCreateImage() throws Exception {
        toTest.execute(getCommonInputs("CreateImage", HEADERS), getCreateImageInputs(), getCreateImageCustomInputs());

        verify(amazonSignatureServiceMock, times(1)).signRequestHeaders(any(InputsWrapper.class), eq(getHeadersMap()),
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 106..113
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 144..151
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 200..207
cs-amazon/src/test/java/io/cloudslang/content/amazon/execute/QueryApiExecutorTest.java on lines 507..514

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

Severity
Category
Status
Source
Language