rl404/go-malscraper

View on GitHub

Showing 369 of 389 total issues

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

func (_m *API) GetUserAnime(query model.UserListQuery) ([]model.UserAnime, int, error) {
    ret := _m.Called(query)

    var r0 []model.UserAnime
    if rf, ok := ret.Get(0).(func(model.UserListQuery) []model.UserAnime); ok {
Severity: Major
Found in service/mocks/API.go and 5 other locations - About 4 hrs to fix
service/mocks/API.go on lines 2082..2109
service/mocks/API.go on lines 2202..2229
service/mocks/API.go on lines 2262..2289
service/mocks/API.go on lines 2292..2319
service/mocks/API.go on lines 2352..2379

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

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

func (_m *API) GetUserManga(query model.UserListQuery) ([]model.UserManga, int, error) {
    ret := _m.Called(query)

    var r0 []model.UserManga
    if rf, ok := ret.Get(0).(func(model.UserListQuery) []model.UserManga); ok {
Severity: Major
Found in service/mocks/API.go and 5 other locations - About 4 hrs to fix
service/mocks/API.go on lines 1932..1959
service/mocks/API.go on lines 2202..2229
service/mocks/API.go on lines 2262..2289
service/mocks/API.go on lines 2292..2319
service/mocks/API.go on lines 2352..2379

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

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

func (_m *API) SearchManga(query model.Query) ([]model.MangaSearch, int, error) {
    ret := _m.Called(query)

    var r0 []model.MangaSearch
    if rf, ok := ret.Get(0).(func(model.Query) []model.MangaSearch); ok {
Severity: Major
Found in service/mocks/API.go and 5 other locations - About 4 hrs to fix
service/mocks/API.go on lines 1932..1959
service/mocks/API.go on lines 2082..2109
service/mocks/API.go on lines 2202..2229
service/mocks/API.go on lines 2262..2289
service/mocks/API.go on lines 2352..2379

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

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

func (_m *API) SearchUser(query model.UserQuery) ([]model.UserSearch, int, error) {
    ret := _m.Called(query)

    var r0 []model.UserSearch
    if rf, ok := ret.Get(0).(func(model.UserQuery) []model.UserSearch); ok {
Severity: Major
Found in service/mocks/API.go and 5 other locations - About 4 hrs to fix
service/mocks/API.go on lines 1932..1959
service/mocks/API.go on lines 2082..2109
service/mocks/API.go on lines 2202..2229
service/mocks/API.go on lines 2262..2289
service/mocks/API.go on lines 2292..2319

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

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 (_m *API) GetClub(id int) (*model.Club, int, error) {
    ret := _m.Called(id)

    var r0 *model.Club
    if rf, ok := ret.Get(0).(func(int) *model.Club); ok {
Severity: Major
Found in service/mocks/API.go and 13 other locations - About 4 hrs to fix
service/mocks/API.go on lines 16..43
service/mocks/API.go on lines 344..371
service/mocks/API.go on lines 434..461
service/mocks/API.go on lines 524..551
service/mocks/API.go on lines 794..821
service/mocks/API.go on lines 944..971
service/mocks/API.go on lines 1212..1239
service/mocks/API.go on lines 1272..1299
service/mocks/API.go on lines 1362..1389
service/mocks/API.go on lines 1692..1719
service/mocks/API.go on lines 1902..1929
service/mocks/API.go on lines 1992..2019
service/mocks/API.go on lines 2172..2199

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

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 (_m *API) GetNews(id int) (*model.News, int, error) {
    ret := _m.Called(id)

    var r0 *model.News
    if rf, ok := ret.Get(0).(func(int) *model.News); ok {
Severity: Major
Found in service/mocks/API.go and 13 other locations - About 4 hrs to fix
service/mocks/API.go on lines 16..43
service/mocks/API.go on lines 344..371
service/mocks/API.go on lines 434..461
service/mocks/API.go on lines 524..551
service/mocks/API.go on lines 704..731
service/mocks/API.go on lines 794..821
service/mocks/API.go on lines 944..971
service/mocks/API.go on lines 1212..1239
service/mocks/API.go on lines 1362..1389
service/mocks/API.go on lines 1692..1719
service/mocks/API.go on lines 1902..1929
service/mocks/API.go on lines 1992..2019
service/mocks/API.go on lines 2172..2199

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

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

func (_m *API) GetAnimeStaff(id int) ([]model.Role, int, error) {
    ret := _m.Called(id)

    var r0 []model.Role
    if rf, ok := ret.Get(0).(func(int) []model.Role); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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

func (_m *API) GetClubs(page int) ([]model.ClubSearch, int, error) {
    ret := _m.Called(page)

    var r0 []model.ClubSearch
    if rf, ok := ret.Get(0).(func(int) []model.ClubSearch); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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

func (_m *API) GetMangaNews(id int) ([]model.NewsItem, int, error) {
    ret := _m.Called(id)

    var r0 []model.NewsItem
    if rf, ok := ret.Get(0).(func(int) []model.NewsItem); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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

func (_m *API) GetAnimeCharacter(id int) ([]model.CharacterItem, int, error) {
    ret := _m.Called(id)

    var r0 []model.CharacterItem
    if rf, ok := ret.Get(0).(func(int) []model.CharacterItem); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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

func (_m *API) GetAnimeRecommendation(id int) ([]model.Recommendation, int, error) {
    ret := _m.Called(id)

    var r0 []model.Recommendation
    if rf, ok := ret.Get(0).(func(int) []model.Recommendation); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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

func (_m *API) GetAnimeClub(id int) ([]model.ClubItem, int, error) {
    ret := _m.Called(id)

    var r0 []model.ClubItem
    if rf, ok := ret.Get(0).(func(int) []model.ClubItem); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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

func (_m *API) GetAnimeNews(id int) ([]model.NewsItem, int, error) {
    ret := _m.Called(id)

    var r0 []model.NewsItem
    if rf, ok := ret.Get(0).(func(int) []model.NewsItem); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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

func (_m *API) GetCharacterArticle(id int) ([]model.ArticleItem, int, error) {
    ret := _m.Called(id)

    var r0 []model.ArticleItem
    if rf, ok := ret.Get(0).(func(int) []model.ArticleItem); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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 (_m *API) GetManga(id int) (*model.Manga, int, error) {
    ret := _m.Called(id)

    var r0 *model.Manga
    if rf, ok := ret.Get(0).(func(int) *model.Manga); ok {
Severity: Major
Found in service/mocks/API.go and 13 other locations - About 4 hrs to fix
service/mocks/API.go on lines 16..43
service/mocks/API.go on lines 344..371
service/mocks/API.go on lines 434..461
service/mocks/API.go on lines 524..551
service/mocks/API.go on lines 704..731
service/mocks/API.go on lines 794..821
service/mocks/API.go on lines 1212..1239
service/mocks/API.go on lines 1272..1299
service/mocks/API.go on lines 1362..1389
service/mocks/API.go on lines 1692..1719
service/mocks/API.go on lines 1902..1929
service/mocks/API.go on lines 1992..2019
service/mocks/API.go on lines 2172..2199

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

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

func (_m *API) GetMangaRecommendation(id int) ([]model.Recommendation, int, error) {
    ret := _m.Called(id)

    var r0 []model.Recommendation
    if rf, ok := ret.Get(0).(func(int) []model.Recommendation); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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

func (_m *API) GetMangaArticle(id int) ([]model.ArticleItem, int, error) {
    ret := _m.Called(id)

    var r0 []model.ArticleItem
    if rf, ok := ret.Get(0).(func(int) []model.ArticleItem); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1452..1479
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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 (_m *API) GetAnime(id int) (*model.Anime, int, error) {
    ret := _m.Called(id)

    var r0 *model.Anime
    if rf, ok := ret.Get(0).(func(int) *model.Anime); ok {
Severity: Major
Found in service/mocks/API.go and 13 other locations - About 4 hrs to fix
service/mocks/API.go on lines 344..371
service/mocks/API.go on lines 434..461
service/mocks/API.go on lines 524..551
service/mocks/API.go on lines 704..731
service/mocks/API.go on lines 794..821
service/mocks/API.go on lines 944..971
service/mocks/API.go on lines 1212..1239
service/mocks/API.go on lines 1272..1299
service/mocks/API.go on lines 1362..1389
service/mocks/API.go on lines 1692..1719
service/mocks/API.go on lines 1902..1929
service/mocks/API.go on lines 1992..2019
service/mocks/API.go on lines 2172..2199

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

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 (_m *API) GetCharacter(id int) (*model.Character, int, error) {
    ret := _m.Called(id)

    var r0 *model.Character
    if rf, ok := ret.Get(0).(func(int) *model.Character); ok {
Severity: Major
Found in service/mocks/API.go and 13 other locations - About 4 hrs to fix
service/mocks/API.go on lines 16..43
service/mocks/API.go on lines 344..371
service/mocks/API.go on lines 434..461
service/mocks/API.go on lines 704..731
service/mocks/API.go on lines 794..821
service/mocks/API.go on lines 944..971
service/mocks/API.go on lines 1212..1239
service/mocks/API.go on lines 1272..1299
service/mocks/API.go on lines 1362..1389
service/mocks/API.go on lines 1692..1719
service/mocks/API.go on lines 1902..1929
service/mocks/API.go on lines 1992..2019
service/mocks/API.go on lines 2172..2199

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

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

func (_m *API) GetPeopleManga(id int) ([]model.Role, int, error) {
    ret := _m.Called(id)

    var r0 []model.Role
    if rf, ok := ret.Get(0).(func(int) []model.Role); ok {
Severity: Major
Found in service/mocks/API.go and 23 other locations - About 4 hrs to fix
service/mocks/API.go on lines 46..73
service/mocks/API.go on lines 76..103
service/mocks/API.go on lines 106..133
service/mocks/API.go on lines 194..221
service/mocks/API.go on lines 254..281
service/mocks/API.go on lines 314..341
service/mocks/API.go on lines 554..581
service/mocks/API.go on lines 584..611
service/mocks/API.go on lines 674..701
service/mocks/API.go on lines 824..851
service/mocks/API.go on lines 854..881
service/mocks/API.go on lines 974..1001
service/mocks/API.go on lines 1004..1031
service/mocks/API.go on lines 1034..1061
service/mocks/API.go on lines 1092..1119
service/mocks/API.go on lines 1152..1179
service/mocks/API.go on lines 1392..1419
service/mocks/API.go on lines 1422..1449
service/mocks/API.go on lines 1482..1509
service/mocks/API.go on lines 1542..1569
service/mocks/API.go on lines 1812..1839
service/mocks/API.go on lines 1872..1899
service/mocks/API.go on lines 1962..1989

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

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