ali2210/WizDwarf

View on GitHub

Showing 88 of 170 total issues

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

func (x *Compressed) ProtoReflect() protoreflect.Message {
    mi := &file_other_collection_gallery_proto_msgTypes[2]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in other/collection/gallery.pb.go and 15 other locations - About 55 mins to fix
other/bucket/proto/bucket.pb.go on lines 151..161
other/bucket/proto/bucket.pb.go on lines 213..223
other/bucket/proto/bucket.pb.go on lines 268..278
other/bucket/proto/bucket.pb.go on lines 316..326
other/genetic/binary/codebank.pb.go on lines 97..107
other/genetic/binary/codebank.pb.go on lines 153..163
other/genetic/binary/codebank.pb.go on lines 212..222
other/jsonpb/jsonledit/jsons.pb.go on lines 55..65
other/proteins/binary/binary.pb.go on lines 60..70
other/proteins/binary/binary.pb.go on lines 140..150
other/proteins/binary/binary.pb.go on lines 206..216
other/collection/gallery.pb.go on lines 55..65
other/collection/gallery.pb.go on lines 145..155
other/collection/gallery.pb.go on lines 251..261
other/collection/gallery.pb.go on lines 314..324

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

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

func (x *Query) ProtoReflect() protoreflect.Message {
    mi := &file_other_bucket_proto_bucket_proto_msgTypes[2]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in other/bucket/proto/bucket.pb.go and 15 other locations - About 55 mins to fix
other/bucket/proto/bucket.pb.go on lines 151..161
other/bucket/proto/bucket.pb.go on lines 213..223
other/bucket/proto/bucket.pb.go on lines 316..326
other/genetic/binary/codebank.pb.go on lines 97..107
other/genetic/binary/codebank.pb.go on lines 153..163
other/genetic/binary/codebank.pb.go on lines 212..222
other/jsonpb/jsonledit/jsons.pb.go on lines 55..65
other/proteins/binary/binary.pb.go on lines 60..70
other/proteins/binary/binary.pb.go on lines 140..150
other/proteins/binary/binary.pb.go on lines 206..216
other/collection/gallery.pb.go on lines 55..65
other/collection/gallery.pb.go on lines 145..155
other/collection/gallery.pb.go on lines 194..204
other/collection/gallery.pb.go on lines 251..261
other/collection/gallery.pb.go on lines 314..324

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

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

func (x *Request) ProtoReflect() protoreflect.Message {
    mi := &file_other_genetic_binary_codebank_proto_msgTypes[2]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in other/genetic/binary/codebank.pb.go and 15 other locations - About 55 mins to fix
other/bucket/proto/bucket.pb.go on lines 151..161
other/bucket/proto/bucket.pb.go on lines 213..223
other/bucket/proto/bucket.pb.go on lines 268..278
other/bucket/proto/bucket.pb.go on lines 316..326
other/genetic/binary/codebank.pb.go on lines 97..107
other/genetic/binary/codebank.pb.go on lines 153..163
other/jsonpb/jsonledit/jsons.pb.go on lines 55..65
other/proteins/binary/binary.pb.go on lines 60..70
other/proteins/binary/binary.pb.go on lines 140..150
other/proteins/binary/binary.pb.go on lines 206..216
other/collection/gallery.pb.go on lines 55..65
other/collection/gallery.pb.go on lines 145..155
other/collection/gallery.pb.go on lines 194..204
other/collection/gallery.pb.go on lines 251..261
other/collection/gallery.pb.go on lines 314..324

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

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

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

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

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

Refactorings

Further Reading

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

        if !strings.Contains(iterate.Value().FieldByName("Acidity_b").String(), "undefined") && !strings.Contains(iterate.Value().FieldByName("Symbol").String(), " ") && special_proteins(iterate.Value().FieldByName("Symbol").String()) {
            molecules_traits_b = iterate.Value().FieldByName("Acidity_b").String()
        }
Severity: Major
Found in other/molecules/molecules.go and 2 other locations - About 55 mins to fix
other/molecules/molecules.go on lines 42..44
other/molecules/molecules.go on lines 51..53

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

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

func (x *Lifecode) ProtoReflect() protoreflect.Message {
    mi := &file_other_genetic_binary_codebank_proto_msgTypes[0]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in other/genetic/binary/codebank.pb.go and 15 other locations - About 55 mins to fix
other/bucket/proto/bucket.pb.go on lines 151..161
other/bucket/proto/bucket.pb.go on lines 213..223
other/bucket/proto/bucket.pb.go on lines 268..278
other/bucket/proto/bucket.pb.go on lines 316..326
other/genetic/binary/codebank.pb.go on lines 153..163
other/genetic/binary/codebank.pb.go on lines 212..222
other/jsonpb/jsonledit/jsons.pb.go on lines 55..65
other/proteins/binary/binary.pb.go on lines 60..70
other/proteins/binary/binary.pb.go on lines 140..150
other/proteins/binary/binary.pb.go on lines 206..216
other/collection/gallery.pb.go on lines 55..65
other/collection/gallery.pb.go on lines 145..155
other/collection/gallery.pb.go on lines 194..204
other/collection/gallery.pb.go on lines 251..261
other/collection/gallery.pb.go on lines 314..324

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

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

func (x *Lifecode_Status) ProtoReflect() protoreflect.Message {
    mi := &file_other_genetic_binary_codebank_proto_msgTypes[1]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in other/genetic/binary/codebank.pb.go and 15 other locations - About 55 mins to fix
other/bucket/proto/bucket.pb.go on lines 151..161
other/bucket/proto/bucket.pb.go on lines 213..223
other/bucket/proto/bucket.pb.go on lines 268..278
other/bucket/proto/bucket.pb.go on lines 316..326
other/genetic/binary/codebank.pb.go on lines 97..107
other/genetic/binary/codebank.pb.go on lines 212..222
other/jsonpb/jsonledit/jsons.pb.go on lines 55..65
other/proteins/binary/binary.pb.go on lines 60..70
other/proteins/binary/binary.pb.go on lines 140..150
other/proteins/binary/binary.pb.go on lines 206..216
other/collection/gallery.pb.go on lines 55..65
other/collection/gallery.pb.go on lines 145..155
other/collection/gallery.pb.go on lines 194..204
other/collection/gallery.pb.go on lines 251..261
other/collection/gallery.pb.go on lines 314..324

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

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

func (x *Metadata_File) ProtoReflect() protoreflect.Message {
    mi := &file_other_collection_gallery_proto_msgTypes[3]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in other/collection/gallery.pb.go and 15 other locations - About 55 mins to fix
other/bucket/proto/bucket.pb.go on lines 151..161
other/bucket/proto/bucket.pb.go on lines 213..223
other/bucket/proto/bucket.pb.go on lines 268..278
other/bucket/proto/bucket.pb.go on lines 316..326
other/genetic/binary/codebank.pb.go on lines 97..107
other/genetic/binary/codebank.pb.go on lines 153..163
other/genetic/binary/codebank.pb.go on lines 212..222
other/jsonpb/jsonledit/jsons.pb.go on lines 55..65
other/proteins/binary/binary.pb.go on lines 60..70
other/proteins/binary/binary.pb.go on lines 140..150
other/proteins/binary/binary.pb.go on lines 206..216
other/collection/gallery.pb.go on lines 55..65
other/collection/gallery.pb.go on lines 145..155
other/collection/gallery.pb.go on lines 194..204
other/collection/gallery.pb.go on lines 314..324

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

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

func (x *QState) ProtoReflect() protoreflect.Message {
    mi := &file_other_bucket_proto_bucket_proto_msgTypes[3]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in other/bucket/proto/bucket.pb.go and 15 other locations - About 55 mins to fix
other/bucket/proto/bucket.pb.go on lines 151..161
other/bucket/proto/bucket.pb.go on lines 213..223
other/bucket/proto/bucket.pb.go on lines 268..278
other/genetic/binary/codebank.pb.go on lines 97..107
other/genetic/binary/codebank.pb.go on lines 153..163
other/genetic/binary/codebank.pb.go on lines 212..222
other/jsonpb/jsonledit/jsons.pb.go on lines 55..65
other/proteins/binary/binary.pb.go on lines 60..70
other/proteins/binary/binary.pb.go on lines 140..150
other/proteins/binary/binary.pb.go on lines 206..216
other/collection/gallery.pb.go on lines 55..65
other/collection/gallery.pb.go on lines 145..155
other/collection/gallery.pb.go on lines 194..204
other/collection/gallery.pb.go on lines 251..261
other/collection/gallery.pb.go on lines 314..324

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

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

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

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

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

Refactorings

Further Reading

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

        if !strings.Contains(iterate.Value().FieldByName("Magnetic").String(), "undefined") && !strings.Contains(iterate.Value().FieldByName("Symbol").String(), " ") && special_proteins(iterate.Value().FieldByName("Symbol").String()) {
            molecule_magnetic = iterate.Value().FieldByName("Magnetic").String()
        }
Severity: Major
Found in other/molecules/molecules.go and 2 other locations - About 55 mins to fix
other/molecules/molecules.go on lines 42..44
other/molecules/molecules.go on lines 46..48

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

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

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

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

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

Refactorings

Further Reading

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

pusher.allChannels().forEach((channels) =>{

  if (channels.name !== "keygen"){
    alert("The channel is not encrypted and not ready to be sent!", channel.name);
    return
Severity: Minor
Found in js/dvault.js and 1 other location - About 50 mins to fix
js/analysis.js on lines 25..30

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

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

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

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

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

Refactorings

Further Reading

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

  pusher.allChannels().forEach((channels) =>{
    if (channels.name !== "protein"){
      alert("The channel is not encrypted and not ready to be sent!", channel.name);
      return
    }
Severity: Minor
Found in js/analysis.js and 1 other location - About 50 mins to fix
js/dvault.js on lines 22..28

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

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

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

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

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

Refactorings

Further Reading

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

func Make_string(chain *binary.Micromolecule) string {

    symbols := ""
    if reflect.ValueOf(chain).Elem().Kind() == reflect.Struct {
        symbols = reflect.ValueOf(chain).Elem().Field(3).String()
Severity: Minor
Found in other/molecules/molecules.go and 2 other locations - About 35 mins to fix
other/molecules/molecules.go on lines 151..159
other/molecules/molecules.go on lines 162..169

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

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

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

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

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

Refactorings

Further Reading

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

func Mass(molecule *binary.Micromolecule) float64 {

    mass := 0.00
    if reflect.ValueOf(molecule).Elem().Kind() == reflect.Struct {
        mass = reflect.ValueOf(molecule).Elem().Field(4).Float()
Severity: Minor
Found in other/molecules/molecules.go and 2 other locations - About 35 mins to fix
other/molecules/molecules.go on lines 151..159
other/molecules/molecules.go on lines 231..238

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

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

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

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

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

Refactorings

Further Reading

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

func Symbol(molecule *binary.Micromolecule) string {

    symbol := ""
    if reflect.ValueOf(molecule).Elem().Kind() == reflect.Struct {

Severity: Minor
Found in other/molecules/molecules.go and 2 other locations - About 35 mins to fix
other/molecules/molecules.go on lines 162..169
other/molecules/molecules.go on lines 231..238

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

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

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

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

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

Refactorings

Further Reading

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

        if err != nil {

            w.WriteHeader(http.StatusBadRequest)
            distorted(w, r)
            cacheObject.Set_Key("Internal:", err.Error())
Severity: Minor
Found in main.go and 1 other location - About 35 mins to fix
main.go on lines 1910..1923

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

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

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

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

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

Refactorings

Further Reading

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

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

Severity: Minor
Found in main.go and 1 other location - About 35 mins to fix
main.go on lines 1885..1899

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

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 "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 "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 "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

Severity
Category
Status
Source
Language