gtfs/gtfs-realtime.pb.go

Summary

Maintainability
F
1 wk
Test Coverage

File gtfs-realtime.pb.go has 2670 lines of code (exceeds 500 allowed). Consider refactoring.
Open

// Copyright 2015 The GTFS Specifications Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Severity: Major
Found in gtfs/gtfs-realtime.pb.go - About 6 days to fix

    Function file_gtfs_realtime_proto_init has 318 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func file_gtfs_realtime_proto_init() {
        if File_gtfs_realtime_proto != nil {
            return
        }
        if !protoimpl.UnsafeEnabled {
    Severity: Major
    Found in gtfs/gtfs-realtime.pb.go - About 1 day to fix

      Function file_gtfs_realtime_proto_init has a Cognitive Complexity of 65 (exceeds 20 allowed). Consider refactoring.
      Open

      func file_gtfs_realtime_proto_init() {
          if File_gtfs_realtime_proto != nil {
              return
          }
          if !protoimpl.UnsafeEnabled {
      Severity: Minor
      Found in gtfs/gtfs-realtime.pb.go - About 7 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

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

      func (x *TripUpdate_StopTimeEvent) ProtoReflect() protoreflect.Message {
          mi := &file_gtfs_realtime_proto_msgTypes[14]
          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 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 *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 *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 *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 *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 *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 *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 *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 *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 *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 *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 *TranslatedImage) ProtoReflect() protoreflect.Message {
          mi := &file_gtfs_realtime_proto_msgTypes[12]
          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 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 *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 *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 *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_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

              file_gtfs_realtime_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*FeedHeader); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TimeRange); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TripUpdate); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*Shape); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TripUpdate_StopTimeEvent); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*VehiclePosition_CarriageDetails); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TripDescriptor); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TranslatedImage); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TripUpdate_TripProperties); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TranslatedString_Translation); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*FeedEntity); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*Alert); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TranslatedString); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TripUpdate_StopTimeUpdate); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*EntitySelector); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*Position); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TripUpdate_StopTimeUpdate_StopTimeProperties); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*FeedMessage); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*VehiclePosition); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*VehicleDescriptor); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549
      gtfs/gtfs-realtime.pb.go on lines 3550..3563

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

      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

              file_gtfs_realtime_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
                  switch v := v.(*TranslatedImage_LocalizedImage); i {
                  case 0:
                      return &v.state
                  case 1:
      Severity: Major
      Found in gtfs/gtfs-realtime.pb.go and 20 other locations - About 45 mins to fix
      gtfs/gtfs-realtime.pb.go on lines 3270..3283
      gtfs/gtfs-realtime.pb.go on lines 3284..3297
      gtfs/gtfs-realtime.pb.go on lines 3298..3311
      gtfs/gtfs-realtime.pb.go on lines 3312..3325
      gtfs/gtfs-realtime.pb.go on lines 3326..3339
      gtfs/gtfs-realtime.pb.go on lines 3340..3353
      gtfs/gtfs-realtime.pb.go on lines 3354..3367
      gtfs/gtfs-realtime.pb.go on lines 3368..3381
      gtfs/gtfs-realtime.pb.go on lines 3382..3395
      gtfs/gtfs-realtime.pb.go on lines 3396..3409
      gtfs/gtfs-realtime.pb.go on lines 3410..3423
      gtfs/gtfs-realtime.pb.go on lines 3424..3437
      gtfs/gtfs-realtime.pb.go on lines 3438..3451
      gtfs/gtfs-realtime.pb.go on lines 3452..3465
      gtfs/gtfs-realtime.pb.go on lines 3466..3479
      gtfs/gtfs-realtime.pb.go on lines 3480..3493
      gtfs/gtfs-realtime.pb.go on lines 3494..3507
      gtfs/gtfs-realtime.pb.go on lines 3508..3521
      gtfs/gtfs-realtime.pb.go on lines 3522..3535
      gtfs/gtfs-realtime.pb.go on lines 3536..3549

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

      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