Showing 525 of 525 total issues

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

func (x *FeedMessage) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[0]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *EntitySelector) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[10]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TranslatedString) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[11]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TripUpdate_TripProperties) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[16]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TimeRange) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[6]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *FeedEntity) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[2]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *VehiclePosition) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[4]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *Alert) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[5]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TripDescriptor) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[8]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TripUpdate_StopTimeUpdate_StopTimeProperties) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[17]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TripUpdate) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[3]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TranslatedString_Translation) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[19]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *Position) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[7]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TripUpdate_StopTimeUpdate) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[15]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *TranslatedImage_LocalizedImage) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[20]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658

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

func (x *FeedHeader) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[1]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *Shape) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[13]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *VehicleDescriptor) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[9]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2567..2577
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (x *VehiclePosition_CarriageDetails) ProtoReflect() protoreflect.Message {
    mi := &file_gtfs_realtime_proto_msgTypes[18]
    if protoimpl.UnsafeEnabled && x != nil {
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
        if ms.LoadMessageInfo() == nil {
Severity: Major
Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 55 mins to fix
gtfs/gtfs-realtime.pb.go on lines 798..808
gtfs/gtfs-realtime.pb.go on lines 866..876
gtfs/gtfs-realtime.pb.go on lines 952..962
gtfs/gtfs-realtime.pb.go on lines 1112..1122
gtfs/gtfs-realtime.pb.go on lines 1246..1256
gtfs/gtfs-realtime.pb.go on lines 1399..1409
gtfs/gtfs-realtime.pb.go on lines 1533..1543
gtfs/gtfs-realtime.pb.go on lines 1602..1612
gtfs/gtfs-realtime.pb.go on lines 1726..1736
gtfs/gtfs-realtime.pb.go on lines 1818..1828
gtfs/gtfs-realtime.pb.go on lines 1893..1903
gtfs/gtfs-realtime.pb.go on lines 1987..1997
gtfs/gtfs-realtime.pb.go on lines 2047..2057
gtfs/gtfs-realtime.pb.go on lines 2111..2121
gtfs/gtfs-realtime.pb.go on lines 2193..2203
gtfs/gtfs-realtime.pb.go on lines 2277..2287
gtfs/gtfs-realtime.pb.go on lines 2402..2412
gtfs/gtfs-realtime.pb.go on lines 2486..2496
gtfs/gtfs-realtime.pb.go on lines 2648..2658
gtfs/gtfs-realtime.pb.go on lines 2714..2724

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

func (controller *PartnerController) Show(response http.ResponseWriter, identifier string) {
    partner := controller.findPartner(identifier)
    if partner == nil {
        http.Error(response, fmt.Sprintf("Partner not found: %s", identifier), http.StatusNotFound)
        return
Severity: Minor
Found in api/partner_controller.go and 1 other location - About 55 mins to fix
api/referential_controller.go on lines 49..59

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

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