ali2210/WizDwarf

View on GitHub
other/proteins/proteins.go

Summary

Maintainability
F
1 mo
Test Coverage

File proteins.go has 2490 lines of code (exceeds 500 allowed). Consider refactoring.
Open

/* This codebase desgin according to mozilla open source license.
Redistribution , contribution and improve codebase under license
convensions. @contact Ali Hassan AliMatrixCode@protonmail.com */

package proteins
Severity: Major
Found in other/proteins/proteins.go - About 6 days to fix

    Function GetAmino has 696 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func GetAmino(s string, i, j int) Aminochain {
        switch s[i:j] {
        case "TTT":
            aminochain.Symbol = "F"
            aminochain.Mass = 165.192
    Severity: Major
    Found in other/proteins/proteins.go - About 3 days to fix

      Function GetPKa has 251 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func GetPKa(str string, i, j int) (string, string, string) {
          switch str[i:j] {
          case "TTT":
              aminochain.Symbol = "F"
              aminochain.Acidity_a = "1.83"
      Severity: Major
      Found in other/proteins/proteins.go - About 1 day to fix

        Function GetCarbon has 197 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

        func GetCarbon(s string, i, j int) (int64, string) {
            switch s[i:j] {
            case "TTT":
                aminochain.Symbol = "F"
                aminochain.Carbon = 9
        Severity: Major
        Found in other/proteins/proteins.go - About 6 hrs to fix

          Function GetSulphur has 197 lines of code (exceeds 50 allowed). Consider refactoring.
          Open

          func GetSulphur(s string, i, j int) (int64, string) {
              switch s[i:j] {
              case "TTT":
                  aminochain.Symbol = "F"
                  aminochain.Sulphur = 0
          Severity: Major
          Found in other/proteins/proteins.go - About 6 hrs to fix

            Function GetHydrogen has 197 lines of code (exceeds 50 allowed). Consider refactoring.
            Open

            func GetHydrogen(str string, i, j int) (int64, string) {
                switch str[i:j] {
                case "TTT":
                    aminochain.Symbol = "F"
                    aminochain.Hydrogen = 11
            Severity: Major
            Found in other/proteins/proteins.go - About 6 hrs to fix

              Function GetNitrogen has 197 lines of code (exceeds 50 allowed). Consider refactoring.
              Open

              func GetNitrogen(s string, i, j int) (int64, string) {
                  switch s[i:j] {
                  case "TTT":
                      aminochain.Symbol = "F"
                      aminochain.Nitrogen = 1
              Severity: Major
              Found in other/proteins/proteins.go - About 6 hrs to fix

                Function GetMagnetism has 195 lines of code (exceeds 50 allowed). Consider refactoring.
                Open

                func GetMagnetism(s string, i, j int) (string, string) {
                    switch s[i:j] {
                    case "TTT":
                        aminochain.Symbol = "F"
                        aminochain.Magnetic = "0.0"
                Severity: Major
                Found in other/proteins/proteins.go - About 6 hrs to fix

                  Function GetOxgygen has 195 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

                  func GetOxgygen(s string, i, j int) (int64, string) {
                      switch s[i:j] {
                      case "TTT":
                          aminochain.Symbol = "F"
                          aminochain.Oxygen = 2
                  Severity: Major
                  Found in other/proteins/proteins.go - About 6 hrs to fix

                    Function GetMolarMass has 191 lines of code (exceeds 50 allowed). Consider refactoring.
                    Open

                    func GetMolarMass(s string, i, j int) (float64, string) {
                        switch s[i:j] {
                        case "TTT":
                            aminochain.Symbol = "F"
                            aminochain.Mass = 165.192
                    Severity: Major
                    Found in other/proteins/proteins.go - About 6 hrs to fix

                      Function Class has 133 lines of code (exceeds 50 allowed). Consider refactoring.
                      Open

                      func Class(s string, i, j int) string {
                          switch s[i:j] {
                          case "TTT":
                              aminochain.Symbol = "F"
                      
                      
                      Severity: Major
                      Found in other/proteins/proteins.go - About 4 hrs to fix

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

                        func GetHydrogen(str string, i, j int) (int64, string) {
                            switch str[i:j] {
                            case "TTT":
                                aminochain.Symbol = "F"
                                aminochain.Hydrogen = 11
                        Severity: Major
                        Found in other/proteins/proteins.go and 3 other locations - About 2 days to fix
                        other/proteins/proteins.go on lines 832..1094
                        other/proteins/proteins.go on lines 1631..1893
                        other/proteins/proteins.go on lines 1898..2160

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

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

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

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

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

                        Refactorings

                        Further Reading

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

                        func GetCarbon(s string, i, j int) (int64, string) {
                            switch s[i:j] {
                            case "TTT":
                                aminochain.Symbol = "F"
                                aminochain.Carbon = 9
                        Severity: Major
                        Found in other/proteins/proteins.go and 3 other locations - About 2 days to fix
                        other/proteins/proteins.go on lines 1099..1361
                        other/proteins/proteins.go on lines 1631..1893
                        other/proteins/proteins.go on lines 1898..2160

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

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

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

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

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

                        Refactorings

                        Further Reading

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

                        func GetNitrogen(s string, i, j int) (int64, string) {
                            switch s[i:j] {
                            case "TTT":
                                aminochain.Symbol = "F"
                                aminochain.Nitrogen = 1
                        Severity: Major
                        Found in other/proteins/proteins.go and 3 other locations - About 2 days to fix
                        other/proteins/proteins.go on lines 832..1094
                        other/proteins/proteins.go on lines 1099..1361
                        other/proteins/proteins.go on lines 1898..2160

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

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

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

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

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

                        Refactorings

                        Further Reading

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

                        func GetSulphur(s string, i, j int) (int64, string) {
                            switch s[i:j] {
                            case "TTT":
                                aminochain.Symbol = "F"
                                aminochain.Sulphur = 0
                        Severity: Major
                        Found in other/proteins/proteins.go and 3 other locations - About 2 days to fix
                        other/proteins/proteins.go on lines 832..1094
                        other/proteins/proteins.go on lines 1099..1361
                        other/proteins/proteins.go on lines 1631..1893

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

                        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 "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 "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 "CGG":
                                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 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 "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 "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 "CGC":
                                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 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

                        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

                        There are no issues that match your filters.

                        Category
                        Status