ali2210/WizDwarf

View on GitHub

Showing 170 of 170 total issues

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

    case "GAC":
        aminochain.Symbol = "D"
        aminochain.Mass = 133.103
        aminochain.Acidity_a = "1.99"
        aminochain.Acidity_b = "9.90" + "*/sc" + "3.90" //*/sc means side-chain pk_A
Severity: Major
Found in other/proteins/proteins.go and 9 other locations - About 30 mins to fix
other/proteins/proteins.go on lines 2958..2968
other/proteins/proteins.go on lines 2982..2992
other/proteins/proteins.go on lines 2994..3004
other/proteins/proteins.go on lines 3054..3064
other/proteins/proteins.go on lines 3066..3076
other/proteins/proteins.go on lines 3078..3088
other/proteins/proteins.go on lines 3090..3100
other/proteins/proteins.go on lines 3126..3136
other/proteins/proteins.go on lines 3138..3148

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

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

    case "GAG":
        aminochain.Symbol = "E"
        aminochain.Mass = 147.130
        aminochain.Acidity_a = "2.10"
        aminochain.Acidity_b = "9.47" + "*/sc" + "4.07"
Severity: Major
Found in other/proteins/proteins.go and 9 other locations - About 30 mins to fix
other/proteins/proteins.go on lines 2958..2968
other/proteins/proteins.go on lines 2970..2980
other/proteins/proteins.go on lines 2982..2992
other/proteins/proteins.go on lines 3054..3064
other/proteins/proteins.go on lines 3066..3076
other/proteins/proteins.go on lines 3078..3088
other/proteins/proteins.go on lines 3090..3100
other/proteins/proteins.go on lines 3126..3136
other/proteins/proteins.go on lines 3138..3148

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

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

    case "GAT":
        aminochain.Symbol = "D"
        aminochain.Mass = 133.103
        aminochain.Acidity_a = "1.99"
        aminochain.Acidity_b = "9.90" + "*/sc" + "3.90" //*/sc means side-chain pk_A
Severity: Major
Found in other/proteins/proteins.go and 9 other locations - About 30 mins to fix
other/proteins/proteins.go on lines 2970..2980
other/proteins/proteins.go on lines 2982..2992
other/proteins/proteins.go on lines 2994..3004
other/proteins/proteins.go on lines 3054..3064
other/proteins/proteins.go on lines 3066..3076
other/proteins/proteins.go on lines 3078..3088
other/proteins/proteins.go on lines 3090..3100
other/proteins/proteins.go on lines 3126..3136
other/proteins/proteins.go on lines 3138..3148

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

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

    case "AGA":
        aminochain.Symbol = "R"
        aminochain.Mass = 174.204
        aminochain.Acidity_a = "2.18"
        aminochain.Acidity_b = "9.09" + "*/gc" + "13.2" //gc meeans guanidino
Severity: Major
Found in other/proteins/proteins.go and 9 other locations - About 30 mins to fix
other/proteins/proteins.go on lines 2958..2968
other/proteins/proteins.go on lines 2970..2980
other/proteins/proteins.go on lines 2982..2992
other/proteins/proteins.go on lines 2994..3004
other/proteins/proteins.go on lines 3054..3064
other/proteins/proteins.go on lines 3066..3076
other/proteins/proteins.go on lines 3078..3088
other/proteins/proteins.go on lines 3090..3100
other/proteins/proteins.go on lines 3138..3148

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

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

    case "AGG":
        aminochain.Symbol = "R"
        aminochain.Mass = 174.204
        aminochain.Acidity_a = "2.18"
        aminochain.Acidity_b = "9.09" + "*/gc" + "13.2" //gc meeans guanidino
Severity: Major
Found in other/proteins/proteins.go and 9 other locations - About 30 mins to fix
other/proteins/proteins.go on lines 2958..2968
other/proteins/proteins.go on lines 2970..2980
other/proteins/proteins.go on lines 2982..2992
other/proteins/proteins.go on lines 2994..3004
other/proteins/proteins.go on lines 3054..3064
other/proteins/proteins.go on lines 3066..3076
other/proteins/proteins.go on lines 3078..3088
other/proteins/proteins.go on lines 3090..3100
other/proteins/proteins.go on lines 3126..3136

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

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

    case "GAA":
        aminochain.Symbol = "E"
        aminochain.Mass = 147.130
        aminochain.Acidity_a = "2.10"
        aminochain.Acidity_b = "9.47" + "*/sc" + "4.07"
Severity: Major
Found in other/proteins/proteins.go and 9 other locations - About 30 mins to fix
other/proteins/proteins.go on lines 2958..2968
other/proteins/proteins.go on lines 2970..2980
other/proteins/proteins.go on lines 2994..3004
other/proteins/proteins.go on lines 3054..3064
other/proteins/proteins.go on lines 3066..3076
other/proteins/proteins.go on lines 3078..3088
other/proteins/proteins.go on lines 3090..3100
other/proteins/proteins.go on lines 3126..3136
other/proteins/proteins.go on lines 3138..3148

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

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

    case "CGT":
        aminochain.Symbol = "R"
        aminochain.Mass = 174.204
        aminochain.Acidity_a = "2.18"
        aminochain.Acidity_b = "9.09" + "*/gc" + "13.2" //gc meeans guanidino
Severity: Major
Found in other/proteins/proteins.go and 9 other locations - About 30 mins to fix
other/proteins/proteins.go on lines 2958..2968
other/proteins/proteins.go on lines 2970..2980
other/proteins/proteins.go on lines 2982..2992
other/proteins/proteins.go on lines 2994..3004
other/proteins/proteins.go on lines 3066..3076
other/proteins/proteins.go on lines 3078..3088
other/proteins/proteins.go on lines 3090..3100
other/proteins/proteins.go on lines 3126..3136
other/proteins/proteins.go on lines 3138..3148

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

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

    case "CGA":
        aminochain.Symbol = "R"
        aminochain.Mass = 174.204
        aminochain.Acidity_a = "2.18"
        aminochain.Acidity_b = "9.09" + "*/gc" + "13.2" //gc meeans guanidino
Severity: Major
Found in other/proteins/proteins.go and 9 other locations - About 30 mins to fix
other/proteins/proteins.go on lines 2958..2968
other/proteins/proteins.go on lines 2970..2980
other/proteins/proteins.go on lines 2982..2992
other/proteins/proteins.go on lines 2994..3004
other/proteins/proteins.go on lines 3054..3064
other/proteins/proteins.go on lines 3066..3076
other/proteins/proteins.go on lines 3090..3100
other/proteins/proteins.go on lines 3126..3136
other/proteins/proteins.go on lines 3138..3148

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

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

                if !ok {
                    w.WriteHeader(http.StatusBadRequest)
                    distorted(w, r)
                    cacheObject.Set_Key("Internal:", err.Error())

Severity: Minor
Found in main.go and 1 other location - About 30 mins to fix
main.go on lines 1969..1982

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

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

            if !ok {
                w.WriteHeader(http.StatusBadRequest)
                distorted(w, r)
                cacheObject.Set_Key("Internal:", err.Error())

Severity: Minor
Found in main.go and 1 other location - About 30 mins to fix
main.go on lines 1940..1953

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

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