rl404/go-malscraper

View on GitHub

Showing 369 of 389 total issues

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

func (_m *API) GetAnimeWithGenre(id int, page int) ([]model.AnimeItem, int, error) {
    ret := _m.Called(id, page)

    var r0 []model.AnimeItem
    if rf, ok := ret.Get(0).(func(int, int) []model.AnimeItem); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetNewsList(page int, tag string) ([]model.NewsItem, int, error) {
    ret := _m.Called(page, tag)

    var r0 []model.NewsItem
    if rf, ok := ret.Get(0).(func(int, string) []model.NewsItem); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetSeason(season string, year int) ([]model.AnimeItem, int, error) {
    ret := _m.Called(season, year)

    var r0 []model.AnimeItem
    if rf, ok := ret.Get(0).(func(string, int) []model.AnimeItem); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetUserFriend(username string, page int) ([]model.UserFriend, int, error) {
    ret := _m.Called(username, page)

    var r0 []model.UserFriend
    if rf, ok := ret.Get(0).(func(string, int) []model.UserFriend); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetMangaReview(id int, page int) ([]model.Review, int, error) {
    ret := _m.Called(id, page)

    var r0 []model.Review
    if rf, ok := ret.Get(0).(func(int, int) []model.Review); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetMangaWithGenre(id int, page int) ([]model.MangaItem, int, error) {
    ret := _m.Called(id, page)

    var r0 []model.MangaItem
    if rf, ok := ret.Get(0).(func(int, int) []model.MangaItem); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetReviews(_type string, page int) ([]model.Review, int, error) {
    ret := _m.Called(_type, page)

    var r0 []model.Review
    if rf, ok := ret.Get(0).(func(string, int) []model.Review); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetAnimeEpisode(id int, page int) ([]model.Episode, int, error) {
    ret := _m.Called(id, page)

    var r0 []model.Episode
    if rf, ok := ret.Get(0).(func(int, int) []model.Episode); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetAnimeReview(id int, page int) ([]model.Review, int, error) {
    ret := _m.Called(id, page)

    var r0 []model.Review
    if rf, ok := ret.Get(0).(func(int, int) []model.Review); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetClubMember(id int, page int) ([]model.ClubMember, int, error) {
    ret := _m.Called(id, page)

    var r0 []model.ClubMember
    if rf, ok := ret.Get(0).(func(int, int) []model.ClubMember); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetProducer(id int, page int) ([]model.AnimeItem, int, error) {
    ret := _m.Called(id, page)

    var r0 []model.AnimeItem
    if rf, ok := ret.Get(0).(func(int, int) []model.AnimeItem); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetUserReview(username string, page int) ([]model.Review, int, error) {
    ret := _m.Called(username, page)

    var r0 []model.Review
    if rf, ok := ret.Get(0).(func(string, int) []model.Review); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

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

    var r0 []model.Role
    if rf, ok := ret.Get(0).(func(string, int) []model.Role); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetMagazine(id int, page int) ([]model.MangaItem, int, error) {
    ret := _m.Called(id, page)

    var r0 []model.MangaItem
    if rf, ok := ret.Get(0).(func(int, int) []model.MangaItem); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetTopAnime(_type int, page int) ([]model.TopAnime, int, error) {
    ret := _m.Called(_type, page)

    var r0 []model.TopAnime
    if rf, ok := ret.Get(0).(func(int, int) []model.TopAnime); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) GetTopManga(_type int, page int) ([]model.TopManga, int, error) {
    ret := _m.Called(_type, page)

    var r0 []model.TopManga
    if rf, ok := ret.Get(0).(func(int, int) []model.TopManga); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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

func (_m *API) SearchPeople(query string, page int) ([]model.PeopleSearch, int, error) {
    ret := _m.Called(query, page)

    var r0 []model.PeopleSearch
    if rf, ok := ret.Get(0).(func(string, int) []model.PeopleSearch); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2052..2079
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259

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

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

func (_m *API) GetUserHistory(username string, _type string) ([]model.UserHistory, int, error) {
    ret := _m.Called(username, _type)

    var r0 []model.UserHistory
    if rf, ok := ret.Get(0).(func(string, string) []model.UserHistory); ok {
Severity: Major
Found in service/mocks/API.go and 21 other locations - About 4 hrs to fix
service/mocks/API.go on lines 136..163
service/mocks/API.go on lines 284..311
service/mocks/API.go on lines 404..431
service/mocks/API.go on lines 494..521
service/mocks/API.go on lines 614..641
service/mocks/API.go on lines 734..761
service/mocks/API.go on lines 884..911
service/mocks/API.go on lines 1182..1209
service/mocks/API.go on lines 1242..1269
service/mocks/API.go on lines 1302..1329
service/mocks/API.go on lines 1572..1599
service/mocks/API.go on lines 1662..1689
service/mocks/API.go on lines 1722..1749
service/mocks/API.go on lines 1752..1779
service/mocks/API.go on lines 1782..1809
service/mocks/API.go on lines 1842..1869
service/mocks/API.go on lines 2022..2049
service/mocks/API.go on lines 2112..2139
service/mocks/API.go on lines 2142..2169
service/mocks/API.go on lines 2232..2259
service/mocks/API.go on lines 2322..2349

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

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) SearchAnime(query model.Query) ([]model.AnimeSearch, int, error) {
    ret := _m.Called(query)

    var r0 []model.AnimeSearch
    if rf, ok := ret.Get(0).(func(model.Query) []model.AnimeSearch); 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 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) SearchClub(query model.ClubQuery) ([]model.ClubSearch, int, error) {
    ret := _m.Called(query)

    var r0 []model.ClubSearch
    if rf, ok := ret.Get(0).(func(model.ClubQuery) []model.ClubSearch); 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 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

Severity
Category
Status
Source
Language