topfreegames/khan

View on GitHub
lib/mocks/khan.go

Summary

Maintainability
D
3 days
Test Coverage

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

func (m *MockKhanInterface) ApproveDenyMembershipApplication(arg0 context.Context, arg1 *lib.ApplicationApprovalPayload) (*lib.Result, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "ApproveDenyMembershipApplication", arg0, arg1)
    ret0, _ := ret[0].(*lib.Result)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 6 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 38..44
lib/mocks/khan.go on lines 68..74
lib/mocks/khan.go on lines 113..119
lib/mocks/khan.go on lines 128..134
lib/mocks/khan.go on lines 158..164
lib/mocks/khan.go on lines 263..269

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

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

func (m *MockKhanInterface) PromoteDemote(arg0 context.Context, arg1 *lib.PromoteDemotePayload) (*lib.Result, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "PromoteDemote", arg0, arg1)
    ret0, _ := ret[0].(*lib.Result)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 6 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 38..44
lib/mocks/khan.go on lines 53..59
lib/mocks/khan.go on lines 68..74
lib/mocks/khan.go on lines 113..119
lib/mocks/khan.go on lines 128..134
lib/mocks/khan.go on lines 263..269

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

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

func (m *MockKhanInterface) ApplyForMembership(arg0 context.Context, arg1 *lib.ApplicationPayload) (*lib.ClanApplyResult, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "ApplyForMembership", arg0, arg1)
    ret0, _ := ret[0].(*lib.ClanApplyResult)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 6 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 53..59
lib/mocks/khan.go on lines 68..74
lib/mocks/khan.go on lines 113..119
lib/mocks/khan.go on lines 128..134
lib/mocks/khan.go on lines 158..164
lib/mocks/khan.go on lines 263..269

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

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

func (m *MockKhanInterface) ApproveDenyMembershipInvitation(arg0 context.Context, arg1 *lib.InvitationApprovalPayload) (*lib.Result, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "ApproveDenyMembershipInvitation", arg0, arg1)
    ret0, _ := ret[0].(*lib.Result)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 6 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 38..44
lib/mocks/khan.go on lines 53..59
lib/mocks/khan.go on lines 113..119
lib/mocks/khan.go on lines 128..134
lib/mocks/khan.go on lines 158..164
lib/mocks/khan.go on lines 263..269

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

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

func (m *MockKhanInterface) UpdateClan(arg0 context.Context, arg1 *lib.ClanPayload) (*lib.Result, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "UpdateClan", arg0, arg1)
    ret0, _ := ret[0].(*lib.Result)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 6 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 38..44
lib/mocks/khan.go on lines 53..59
lib/mocks/khan.go on lines 68..74
lib/mocks/khan.go on lines 113..119
lib/mocks/khan.go on lines 128..134
lib/mocks/khan.go on lines 158..164

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

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

func (m *MockKhanInterface) InviteForMembership(arg0 context.Context, arg1 *lib.InvitationPayload) (*lib.Result, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "InviteForMembership", arg0, arg1)
    ret0, _ := ret[0].(*lib.Result)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 6 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 38..44
lib/mocks/khan.go on lines 53..59
lib/mocks/khan.go on lines 68..74
lib/mocks/khan.go on lines 113..119
lib/mocks/khan.go on lines 158..164
lib/mocks/khan.go on lines 263..269

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

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

func (m *MockKhanInterface) DeleteMembership(arg0 context.Context, arg1 *lib.DeleteMembershipPayload) (*lib.Result, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "DeleteMembership", arg0, arg1)
    ret0, _ := ret[0].(*lib.Result)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 6 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 38..44
lib/mocks/khan.go on lines 53..59
lib/mocks/khan.go on lines 68..74
lib/mocks/khan.go on lines 128..134
lib/mocks/khan.go on lines 158..164
lib/mocks/khan.go on lines 263..269

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

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

func (m *MockKhanInterface) LeaveClan(arg0 context.Context, arg1 string) (*lib.LeaveClanResult, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "LeaveClan", arg0, arg1)
    ret0, _ := ret[0].(*lib.LeaveClanResult)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 4 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 173..179
lib/mocks/khan.go on lines 188..194
lib/mocks/khan.go on lines 218..224
lib/mocks/khan.go on lines 233..239

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

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

func (m *MockKhanInterface) RetrievePlayer(arg0 context.Context, arg1 string) (*lib.Player, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "RetrievePlayer", arg0, arg1)
    ret0, _ := ret[0].(*lib.Player)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 4 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 143..149
lib/mocks/khan.go on lines 173..179
lib/mocks/khan.go on lines 188..194
lib/mocks/khan.go on lines 233..239

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

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

func (m *MockKhanInterface) RetrieveClan(arg0 context.Context, arg1 string) (*lib.Clan, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "RetrieveClan", arg0, arg1)
    ret0, _ := ret[0].(*lib.Clan)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 4 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 143..149
lib/mocks/khan.go on lines 188..194
lib/mocks/khan.go on lines 218..224
lib/mocks/khan.go on lines 233..239

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

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

func (m *MockKhanInterface) RetrieveClanSummary(arg0 context.Context, arg1 string) (*lib.ClanSummary, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "RetrieveClanSummary", arg0, arg1)
    ret0, _ := ret[0].(*lib.ClanSummary)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 4 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 143..149
lib/mocks/khan.go on lines 173..179
lib/mocks/khan.go on lines 218..224
lib/mocks/khan.go on lines 233..239

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

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

func (m *MockKhanInterface) SearchClans(arg0 context.Context, arg1 string) (*lib.SearchClansResult, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "SearchClans", arg0, arg1)
    ret0, _ := ret[0].(*lib.SearchClansResult)
    ret1, _ := ret[1].(error)
Severity: Major
Found in lib/mocks/khan.go and 4 other locations - About 1 hr to fix
lib/mocks/khan.go on lines 143..149
lib/mocks/khan.go on lines 173..179
lib/mocks/khan.go on lines 188..194
lib/mocks/khan.go on lines 218..224

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

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

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

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

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

Refactorings

Further Reading

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

func (mr *MockKhanInterfaceMockRecorder) CreatePlayer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePlayer", reflect.TypeOf((*MockKhanInterface)(nil).CreatePlayer), arg0, arg1, arg2, arg3)
}
Severity: Minor
Found in lib/mocks/khan.go and 1 other location - About 45 mins to fix
lib/mocks/khan.go on lines 287..290

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

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

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

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

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

Refactorings

Further Reading

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

func (mr *MockKhanInterfaceMockRecorder) UpdatePlayer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePlayer", reflect.TypeOf((*MockKhanInterface)(nil).UpdatePlayer), arg0, arg1, arg2, arg3)
}
Severity: Minor
Found in lib/mocks/khan.go and 1 other location - About 45 mins to fix
lib/mocks/khan.go on lines 107..110

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

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

func (mr *MockKhanInterfaceMockRecorder) ApplyForMembership(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyForMembership", reflect.TypeOf((*MockKhanInterface)(nil).ApplyForMembership), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) CreateClan(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClan", reflect.TypeOf((*MockKhanInterface)(nil).CreateClan), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) ApproveDenyMembershipApplication(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApproveDenyMembershipApplication", reflect.TypeOf((*MockKhanInterface)(nil).ApproveDenyMembershipApplication), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) RetrieveClansSummary(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetrieveClansSummary", reflect.TypeOf((*MockKhanInterface)(nil).RetrieveClansSummary), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) DeleteMembership(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMembership", reflect.TypeOf((*MockKhanInterface)(nil).DeleteMembership), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) PromoteDemote(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PromoteDemote", reflect.TypeOf((*MockKhanInterface)(nil).PromoteDemote), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) RetrieveClanSummary(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetrieveClanSummary", reflect.TypeOf((*MockKhanInterface)(nil).RetrieveClanSummary), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) RetrievePlayer(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetrievePlayer", reflect.TypeOf((*MockKhanInterface)(nil).RetrievePlayer), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) ApproveDenyMembershipInvitation(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApproveDenyMembershipInvitation", reflect.TypeOf((*MockKhanInterface)(nil).ApproveDenyMembershipInvitation), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) SearchClans(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchClans", reflect.TypeOf((*MockKhanInterface)(nil).SearchClans), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) LeaveClan(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LeaveClan", reflect.TypeOf((*MockKhanInterface)(nil).LeaveClan), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) RetrieveClan(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetrieveClan", reflect.TypeOf((*MockKhanInterface)(nil).RetrieveClan), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) InviteForMembership(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InviteForMembership", reflect.TypeOf((*MockKhanInterface)(nil).InviteForMembership), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245
lib/mocks/khan.go on lines 272..275

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

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

func (mr *MockKhanInterfaceMockRecorder) UpdateClan(arg0, arg1 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClan", reflect.TypeOf((*MockKhanInterface)(nil).UpdateClan), arg0, arg1)
}
Severity: Major
Found in lib/mocks/khan.go and 13 other locations - About 45 mins to fix
lib/mocks/khan.go on lines 47..50
lib/mocks/khan.go on lines 62..65
lib/mocks/khan.go on lines 77..80
lib/mocks/khan.go on lines 92..95
lib/mocks/khan.go on lines 122..125
lib/mocks/khan.go on lines 137..140
lib/mocks/khan.go on lines 152..155
lib/mocks/khan.go on lines 167..170
lib/mocks/khan.go on lines 182..185
lib/mocks/khan.go on lines 197..200
lib/mocks/khan.go on lines 212..215
lib/mocks/khan.go on lines 227..230
lib/mocks/khan.go on lines 242..245

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

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