rl404/go-malscraper

View on GitHub
service/mocks/API.go

Summary

Maintainability
F
1 mo
Test Coverage

File API.go has 1900 lines of code (exceeds 500 allowed). Consider refactoring.
Open

// Code generated by mockery v2.4.0-beta. DO NOT EDIT.

package mocks

import (
Severity: Major
Found in service/mocks/API.go - About 4 days to fix

    API has 79 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type API struct {
        mock.Mock
    }
    Severity: Major
    Found in service/mocks/API.go - About 1 day to fix

      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) 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) 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) SearchCharacter(query string, page int) ([]model.CharacterSearch, int, error) {
          ret := _m.Called(query, page)
      
          var r0 []model.CharacterSearch
          if rf, ok := ret.Get(0).(func(string, int) []model.CharacterSearch); 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 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) 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) GetUserRecommendation(username string, page int) ([]model.Recommendation, int, error) {
          ret := _m.Called(username, page)
      
          var r0 []model.Recommendation
          if rf, ok := ret.Get(0).(func(string, int) []model.Recommendation); 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 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) 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) 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) 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) 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) 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) 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) GetRecommendations(_type string, page int) ([]model.Recommendation, int, error) {
          ret := _m.Called(_type, page)
      
          var r0 []model.Recommendation
          if rf, ok := ret.Get(0).(func(string, int) []model.Recommendation); 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 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) 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) GetArticles(page int, tag string) ([]model.ArticleItem, int, error) {
          ret := _m.Called(page, tag)
      
          var r0 []model.ArticleItem
          if rf, ok := ret.Get(0).(func(int, string) []model.ArticleItem); 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 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) 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) 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 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) 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 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 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) 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) 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) 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) 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

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

      func (_m *API) GetTopCharacter(page int) ([]model.TopCharacter, int, error) {
          ret := _m.Called(page)
      
          var r0 []model.TopCharacter
          if rf, ok := ret.Get(0).(func(int) []model.TopCharacter); 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 1452..1479
      service/mocks/API.go on lines 1482..1509
      service/mocks/API.go on lines 1542..1569
      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) GetArticle(id int) (*model.Article, int, error) {
          ret := _m.Called(id)
      
          var r0 *model.Article
          if rf, ok := ret.Get(0).(func(int) *model.Article); 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 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 24 locations. Consider refactoring.
      Open

      func (_m *API) GetAnimeArticle(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 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 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) 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 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 14 locations. Consider refactoring.
      Open

      func (_m *API) GetReview(id int) (*model.Review, int, error) {
          ret := _m.Called(id)
      
          var r0 *model.Review
          if rf, ok := ret.Get(0).(func(int) *model.Review); 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 1272..1299
      service/mocks/API.go on lines 1362..1389
      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) GetPeopleStaff(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 1452..1479
      service/mocks/API.go on lines 1482..1509
      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 24 locations. Consider refactoring.
      Open

      func (_m *API) GetPeopleCharacter(id int) ([]model.PeopleCharacter, int, error) {
          ret := _m.Called(id)
      
          var r0 []model.PeopleCharacter
          if rf, ok := ret.Get(0).(func(int) []model.PeopleCharacter); 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 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) GetUser(username string) (*model.User, int, error) {
          ret := _m.Called(username)
      
          var r0 *model.User
          if rf, ok := ret.Get(0).(func(string) *model.User); 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 1272..1299
      service/mocks/API.go on lines 1362..1389
      service/mocks/API.go on lines 1692..1719
      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) 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 14 locations. Consider refactoring.
      Open

      func (_m *API) GetUserStats(username string) (*model.UserStats, int, error) {
          ret := _m.Called(username)
      
          var r0 *model.UserStats
          if rf, ok := ret.Get(0).(func(string) *model.UserStats); 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 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

      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) GetMangaClub(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 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 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) 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) GetPeopleNews(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 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 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) GetTopPeople(page int) ([]model.TopPeople, int, error) {
          ret := _m.Called(page)
      
          var r0 []model.TopPeople
          if rf, ok := ret.Get(0).(func(int) []model.TopPeople); 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 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 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) 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

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

      func (_m *API) GetUserClub(username string) ([]model.Item, int, error) {
          ret := _m.Called(username)
      
          var r0 []model.Item
          if rf, ok := ret.Get(0).(func(string) []model.Item); 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 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

      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) GetMangaStats(id int) (*model.Stats, int, error) {
          ret := _m.Called(id)
      
          var r0 *model.Stats
          if rf, ok := ret.Get(0).(func(int) *model.Stats); 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 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 14 locations. Consider refactoring.
      Open

      func (_m *API) GetClubRelated(id int) (*model.ClubRelated, int, error) {
          ret := _m.Called(id)
      
          var r0 *model.ClubRelated
          if rf, ok := ret.Get(0).(func(int) *model.ClubRelated); 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 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) 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) 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 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 14 locations. Consider refactoring.
      Open

      func (_m *API) GetPeople(id int) (*model.People, int, error) {
          ret := _m.Called(id)
      
          var r0 *model.People
          if rf, ok := ret.Get(0).(func(int) *model.People); 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 1272..1299
      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) GetCharacterVA(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 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) GetMangaCharacter(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 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) GetCharacterClub(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 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 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) GetAnimeStats(id int) (*model.Stats, int, error) {
          ret := _m.Called(id)
      
          var r0 *model.Stats
          if rf, ok := ret.Get(0).(func(int) *model.Stats); 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 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 24 locations. Consider refactoring.
      Open

      func (_m *API) GetPeopleArticle(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 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 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) GetUserFavorite(username string) (*model.UserFavorite, int, error) {
          ret := _m.Called(username)
      
          var r0 *model.UserFavorite
          if rf, ok := ret.Get(0).(func(string) *model.UserFavorite); 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 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 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) GetGenres(_type string) ([]model.ItemCount, int, error) {
          ret := _m.Called(_type)
      
          var r0 []model.ItemCount
          if rf, ok := ret.Get(0).(func(string) []model.ItemCount); 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 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 5 locations. Consider refactoring.
      Open

      func (_m *API) GetClubPicture(id int) ([]string, int, error) {
          ret := _m.Called(id)
      
          var r0 []string
          if rf, ok := ret.Get(0).(func(int) []string); ok {
      Severity: Major
      Found in service/mocks/API.go and 4 other locations - About 3 hrs to fix
      service/mocks/API.go on lines 224..251
      service/mocks/API.go on lines 644..671
      service/mocks/API.go on lines 1122..1149
      service/mocks/API.go on lines 1512..1539

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

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

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

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

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

      Refactorings

      Further Reading

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

      func (_m *API) GetCharacterPicture(id int) ([]string, int, error) {
          ret := _m.Called(id)
      
          var r0 []string
          if rf, ok := ret.Get(0).(func(int) []string); ok {
      Severity: Major
      Found in service/mocks/API.go and 4 other locations - About 3 hrs to fix
      service/mocks/API.go on lines 224..251
      service/mocks/API.go on lines 764..791
      service/mocks/API.go on lines 1122..1149
      service/mocks/API.go on lines 1512..1539

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

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

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

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

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

      Refactorings

      Further Reading

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

      func (_m *API) GetMangaPicture(id int) ([]string, int, error) {
          ret := _m.Called(id)
      
          var r0 []string
          if rf, ok := ret.Get(0).(func(int) []string); ok {
      Severity: Major
      Found in service/mocks/API.go and 4 other locations - About 3 hrs to fix
      service/mocks/API.go on lines 224..251
      service/mocks/API.go on lines 644..671
      service/mocks/API.go on lines 764..791
      service/mocks/API.go on lines 1512..1539

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

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

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

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

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

      Refactorings

      Further Reading

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

      func (_m *API) GetPeoplePicture(id int) ([]string, int, error) {
          ret := _m.Called(id)
      
          var r0 []string
          if rf, ok := ret.Get(0).(func(int) []string); ok {
      Severity: Major
      Found in service/mocks/API.go and 4 other locations - About 3 hrs to fix
      service/mocks/API.go on lines 224..251
      service/mocks/API.go on lines 644..671
      service/mocks/API.go on lines 764..791
      service/mocks/API.go on lines 1122..1149

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

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

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

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

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

      Refactorings

      Further Reading

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

      func (_m *API) GetAnimePicture(id int) ([]string, int, error) {
          ret := _m.Called(id)
      
          var r0 []string
          if rf, ok := ret.Get(0).(func(int) []string); ok {
      Severity: Major
      Found in service/mocks/API.go and 4 other locations - About 3 hrs to fix
      service/mocks/API.go on lines 644..671
      service/mocks/API.go on lines 764..791
      service/mocks/API.go on lines 1122..1149
      service/mocks/API.go on lines 1512..1539

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

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

      func (_m *API) GetProducers() ([]model.ItemCount, int, error) {
          ret := _m.Called()
      
          var r0 []model.ItemCount
          if rf, ok := ret.Get(0).(func() []model.ItemCount); ok {
      Severity: Major
      Found in service/mocks/API.go and 2 other locations - About 3 hrs to fix
      service/mocks/API.go on lines 464..491
      service/mocks/API.go on lines 914..941

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

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

      func (_m *API) GetMagazines() ([]model.ItemCount, int, error) {
          ret := _m.Called()
      
          var r0 []model.ItemCount
          if rf, ok := ret.Get(0).(func() []model.ItemCount); ok {
      Severity: Major
      Found in service/mocks/API.go and 2 other locations - About 3 hrs to fix
      service/mocks/API.go on lines 464..491
      service/mocks/API.go on lines 1602..1629

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

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

      func (_m *API) GetArticleTag() ([]model.ArticleTagItem, int, error) {
          ret := _m.Called()
      
          var r0 []model.ArticleTagItem
          if rf, ok := ret.Get(0).(func() []model.ArticleTagItem); ok {
      Severity: Major
      Found in service/mocks/API.go and 2 other locations - About 3 hrs to fix
      service/mocks/API.go on lines 914..941
      service/mocks/API.go on lines 1602..1629

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

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

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

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

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

      Refactorings

      Further Reading

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

      func (_m *API) GetMangaMoreInfo(id int) (string, int, error) {
          ret := _m.Called(id)
      
          var r0 string
          if rf, ok := ret.Get(0).(func(int) string); ok {
      Severity: Major
      Found in service/mocks/API.go and 1 other location - About 3 hrs to fix
      service/mocks/API.go on lines 166..191

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

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

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

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

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

      Refactorings

      Further Reading

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

      func (_m *API) GetAnimeMoreInfo(id int) (string, int, error) {
          ret := _m.Called(id)
      
          var r0 string
          if rf, ok := ret.Get(0).(func(int) string); ok {
      Severity: Major
      Found in service/mocks/API.go and 1 other location - About 3 hrs to fix
      service/mocks/API.go on lines 1064..1089

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

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

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

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

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

      Refactorings

      Further Reading

      There are no issues that match your filters.

      Category
      Status