gerencianet/gn-api-sdk-node

View on GitHub

Showing 96 of 96 total issues

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

gerencianet
    .deletePlan(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/subscription/deletePlan.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
  .getPlans(params)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/subscription/getPlans.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21

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 68.

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

gerencianet
    .cancelCharge(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/cancelCharge.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
  .settleCarnetParcel(params)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/settleCarnetParcel.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
  .cancelParcel(params)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/cancelParcel.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
    .detailCharge(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/detailCharge.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
    .getNotification(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/notification/getNotification.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
  .cancelCarnet(params)
      .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/cancelCarnet.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
    .getInstallments(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/others/getInstallments.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
    .cancelSubscription(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/subscription/cancelSubscription.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
    .detailSubscription(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/subscription/detailSubscription.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
    .settleCharge(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/charge/settleCharge.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/detailCarnet.js on lines 13..21
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet
    .detailCarnet(params)
    .then((resposta) => {
        console.log(resposta)
    })
Severity: Major
Found in examples/default/carnet/detailCarnet.js and 12 other locations - About 1 hr to fix
examples/default/carnet/cancelCarnet.js on lines 13..21
examples/default/carnet/cancelParcel.js on lines 14..22
examples/default/carnet/settleCarnetParcel.js on lines 14..22
examples/default/charge/cancelCharge.js on lines 13..21
examples/default/charge/detailCharge.js on lines 13..21
examples/default/charge/settleCharge.js on lines 13..21
examples/default/notification/getNotification.js on lines 13..21
examples/default/others/getInstallments.js on lines 14..22
examples/default/subscription/cancelSubscription.js on lines 13..21
examples/default/subscription/deletePlan.js on lines 13..21
examples/default/subscription/detailSubscription.js on lines 13..21
examples/default/subscription/getPlans.js on lines 15..23

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 68.

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

gerencianet.pixSend([], body)
.then((resposta) => {
        console.log(resposta);
    })
    .catch((error) => {
Severity: Major
Found in examples/pix/pix/pixSend.js and 3 other locations - About 1 hr to fix
examples/gn/account/gnUpdateSettings.js on lines 24..30
examples/pix/charge/pixCreateImmediateCharge.js on lines 33..39
examples/pix/location/pixCreateLocation.js on lines 12..18

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 63.

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

gerencianet.pixCreateLocation([],body)
.then((resposta) => {
        console.log(resposta);
    })
    .catch((error) => {
Severity: Major
Found in examples/pix/location/pixCreateLocation.js and 3 other locations - About 1 hr to fix
examples/gn/account/gnUpdateSettings.js on lines 24..30
examples/pix/charge/pixCreateImmediateCharge.js on lines 33..39
examples/pix/pix/pixSend.js on lines 18..24

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 63.

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

gerencianet.pixUpdateSettings([],body)
.then((resposta) => {
        console.log(resposta);
    })
    .catch((error) => {
Severity: Major
Found in examples/gn/account/gnUpdateSettings.js and 3 other locations - About 1 hr to fix
examples/pix/charge/pixCreateImmediateCharge.js on lines 33..39
examples/pix/location/pixCreateLocation.js on lines 12..18
examples/pix/pix/pixSend.js on lines 18..24

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 63.

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

gerencianet.pixCreateImmediateCharge([], body)
.then((resposta) => {
        console.log(resposta);
    })
    .catch((error) => {
Severity: Major
Found in examples/pix/charge/pixCreateImmediateCharge.js and 3 other locations - About 1 hr to fix
examples/gn/account/gnUpdateSettings.js on lines 24..30
examples/pix/location/pixCreateLocation.js on lines 12..18
examples/pix/pix/pixSend.js on lines 18..24

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 63.

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

gerencianet.pixDevolution(params, body)
.then((resposta) => {
        console.log(resposta);
    })
    .catch((error) => {
Severity: Major
Found in examples/pix/pix/pixDevolution.js and 4 other locations - About 1 hr to fix
examples/default/subscription/updatePlan.js on lines 17..24
examples/pix/charge/pixCreateCharge.js on lines 38..44
examples/pix/charge/pixUpdateCharge.js on lines 37..43
examples/pix/webhook/pixConfigWebhook.js on lines 18..24

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

gerencianet.pixCreateCharge(params, body)
.then((resposta) => {
        console.log(resposta);
    })
    .catch((error) => {
Severity: Major
Found in examples/pix/charge/pixCreateCharge.js and 4 other locations - About 1 hr to fix
examples/default/subscription/updatePlan.js on lines 17..24
examples/pix/charge/pixUpdateCharge.js on lines 37..43
examples/pix/pix/pixDevolution.js on lines 18..24
examples/pix/webhook/pixConfigWebhook.js on lines 18..24

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

gerencianet
    .updatePlan(params, body)
.then((resposta) => {
        console.log(resposta);
    })
Severity: Major
Found in examples/default/subscription/updatePlan.js and 4 other locations - About 1 hr to fix
examples/pix/charge/pixCreateCharge.js on lines 38..44
examples/pix/charge/pixUpdateCharge.js on lines 37..43
examples/pix/pix/pixDevolution.js on lines 18..24
examples/pix/webhook/pixConfigWebhook.js on lines 18..24

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

Severity
Category
Status
Source
Language