synapsecns/sanguine

View on GitHub

Showing 13,422 of 13,422 total issues

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

func (_m *ILightInbox) WatchInvalidReceipt(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInvalidReceipt) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInvalidReceipt) event.Subscription); ok {
Severity: Major
Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IBondingManager) WatchDisputeResolved(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerDisputeResolved) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *bondingmanager.BondingManagerDisputeResolved) event.Subscription); ok {
Severity: Major
Found in agents/contracts/bondingmanager/mocks/i_bonding_manager.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IBondingManager) WatchProposedAgentRootCancelled(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerProposedAgentRootCancelled) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *bondingmanager.BondingManagerProposedAgentRootCancelled) event.Subscription); ok {
Severity: Major
Found in agents/contracts/bondingmanager/mocks/i_bonding_manager.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *ILightManager) WatchAgentRootProposed(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerAgentRootProposed) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightmanager.LightManagerAgentRootProposed) event.Subscription); ok {
Severity: Major
Found in agents/contracts/lightmanager/mocks/i_light_manager.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IOrigin) WatchInitialized(opts *bind.WatchOpts, sink chan<- *origin.OriginInitialized) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *origin.OriginInitialized) event.Subscription); ok {
Severity: Major
Found in agents/contracts/origin/mocks/i_origin.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IOrigin) WatchTipWithdrawalCompleted(opts *bind.WatchOpts, sink chan<- *origin.OriginTipWithdrawalCompleted) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *origin.OriginTipWithdrawalCompleted) event.Subscription); ok {
Severity: Major
Found in agents/contracts/origin/mocks/i_origin.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019

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

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

func (_m *ILightInbox) WatchInitialized(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInitialized) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInitialized) event.Subscription); ok {
Severity: Major
Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *ILightInbox) WatchInvalidReceiptReport(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInvalidReceiptReport) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInvalidReceiptReport) event.Subscription); ok {
Severity: Major
Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *ILightManager) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *lightmanager.LightManagerRootUpdated) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightmanager.LightManagerRootUpdated) event.Subscription); ok {
Severity: Major
Found in agents/contracts/lightmanager/mocks/i_light_manager.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *ILightInbox) WatchAttestationAccepted(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxAttestationAccepted) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxAttestationAccepted) event.Subscription); ok {
Severity: Major
Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IInbox) WatchAttestationAccepted(opts *bind.WatchOpts, sink chan<- *inbox.InboxAttestationAccepted) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxAttestationAccepted) event.Subscription); ok {
Severity: Major
Found in agents/contracts/inbox/mocks/i_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IInbox) WatchInvalidStateReport(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidStateReport) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidStateReport) event.Subscription); ok {
Severity: Major
Found in agents/contracts/inbox/mocks/i_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IGasOracle) WatchSummitTipUpdated(opts *bind.WatchOpts, sink chan<- *gasoracle.GasOracleSummitTipUpdated) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *gasoracle.GasOracleSummitTipUpdated) event.Subscription); ok {
Severity: Major
Found in agents/contracts/gasoracle/mocks/i_gas_oracle.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IBondingManager) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerRootUpdated) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *bondingmanager.BondingManagerRootUpdated) event.Subscription); ok {
Severity: Major
Found in agents/contracts/bondingmanager/mocks/i_bonding_manager.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IInbox) WatchInitialized(opts *bind.WatchOpts, sink chan<- *inbox.InboxInitialized) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInitialized) event.Subscription); ok {
Severity: Major
Found in agents/contracts/inbox/mocks/i_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IInbox) WatchInvalidStateWithSnapshot(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidStateWithSnapshot) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidStateWithSnapshot) event.Subscription); ok {
Severity: Major
Found in agents/contracts/inbox/mocks/i_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IInbox) WatchInvalidAttestationReport(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidAttestationReport) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidAttestationReport) event.Subscription); ok {
Severity: Major
Found in agents/contracts/inbox/mocks/i_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IBondingManager) WatchAgentRootProposed(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerAgentRootProposed) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *bondingmanager.BondingManagerAgentRootProposed) event.Subscription); ok {
Severity: Major
Found in agents/contracts/bondingmanager/mocks/i_bonding_manager.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *ILightInbox) WatchInvalidStateReport(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInvalidStateReport) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInvalidStateReport) event.Subscription); ok {
Severity: Major
Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

func (_m *IInbox) WatchInvalidReceipt(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidReceipt) (event.Subscription, error) {
    ret := _m.Called(opts, sink)

    var r0 event.Subscription
    if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidReceipt) event.Subscription); ok {
Severity: Major
Found in agents/contracts/inbox/mocks/i_inbox.go and 36 other locations - About 3 hrs to fix
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
agents/contracts/origin/mocks/i_origin.go on lines 907..927
agents/contracts/origin/mocks/i_origin.go on lines 999..1019
agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

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

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language