tofuness/Toshocat

View on GitHub

Showing 100 of 100 total issues

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

$.Velocity.RegisterEffect('toshocat.slideDownIn', {
  defaultDuration: 600,
  calls: [
    [{
      opacity: [1, 0],
Severity: Major
Found in src/utils/velocity-animations.js and 1 other location - About 1 hr to fix
src/utils/velocity-animations.js on lines 1..11

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

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

$.Velocity.RegisterEffect('toshocat.slideRightIn', {
  defaultDuration: 600,
  calls: [
    [{
      opacity: [1, 0],
Severity: Major
Found in src/utils/velocity-animations.js and 1 other location - About 1 hr to fix
src/utils/velocity-animations.js on lines 13..23

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

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

      <div className="sidebar-navigation-link">
        <Link to="/mangalist" activeClassName="active">
          <span className="icon-three-bars"></span>Manga list
        </Link>
      </div>
Severity: Major
Found in src/components/SideBarNavigation.js and 5 other locations - About 1 hr to fix
src/components/SideBarNavigation.js on lines 10..14
src/components/SideBarNavigation.js on lines 24..28
src/components/SideBarNavigation.js on lines 29..33
src/components/SideBarNavigation.js on lines 34..38
src/components/SideBarNavigation.js on lines 43..47

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

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

      <div className="sidebar-navigation-link">
        <Link to="/settings" activeClassName="active">
          <span className="icon-gear"></span>Settings
        </Link>
      </div>
Severity: Major
Found in src/components/SideBarNavigation.js and 5 other locations - About 1 hr to fix
src/components/SideBarNavigation.js on lines 10..14
src/components/SideBarNavigation.js on lines 15..19
src/components/SideBarNavigation.js on lines 24..28
src/components/SideBarNavigation.js on lines 29..33
src/components/SideBarNavigation.js on lines 34..38

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

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

      <div className="sidebar-navigation-link">
        <Link to="/animelist" activeClassName="active">
          <span className="icon-three-bars"></span>Anime list
        </Link>
      </div>
Severity: Major
Found in src/components/SideBarNavigation.js and 5 other locations - About 1 hr to fix
src/components/SideBarNavigation.js on lines 15..19
src/components/SideBarNavigation.js on lines 24..28
src/components/SideBarNavigation.js on lines 29..33
src/components/SideBarNavigation.js on lines 34..38
src/components/SideBarNavigation.js on lines 43..47

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

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

      <div className="sidebar-navigation-link hide">
        <Link to="/chart" activeClassName="active">
          <span className="icon-map"></span>Season Charts
        </Link>
      </div>
Severity: Major
Found in src/components/SideBarNavigation.js and 5 other locations - About 1 hr to fix
src/components/SideBarNavigation.js on lines 10..14
src/components/SideBarNavigation.js on lines 15..19
src/components/SideBarNavigation.js on lines 24..28
src/components/SideBarNavigation.js on lines 34..38
src/components/SideBarNavigation.js on lines 43..47

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

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

      <div className="sidebar-navigation-link">
        <Link to="/calendar" activeClassName="active">
          <span className="icon-calendar"></span>Calendar
        </Link>
      </div>
Severity: Major
Found in src/components/SideBarNavigation.js and 5 other locations - About 1 hr to fix
src/components/SideBarNavigation.js on lines 10..14
src/components/SideBarNavigation.js on lines 15..19
src/components/SideBarNavigation.js on lines 29..33
src/components/SideBarNavigation.js on lines 34..38
src/components/SideBarNavigation.js on lines 43..47

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

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

      <div className="sidebar-navigation-link">
        <Link to="/search" activeClassName="active">
          <span className="icon-search"></span>Search
        </Link>
      </div>
Severity: Major
Found in src/components/SideBarNavigation.js and 5 other locations - About 1 hr to fix
src/components/SideBarNavigation.js on lines 10..14
src/components/SideBarNavigation.js on lines 15..19
src/components/SideBarNavigation.js on lines 24..28
src/components/SideBarNavigation.js on lines 29..33
src/components/SideBarNavigation.js on lines 43..47

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

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

Function render has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    return (
      <div className="search-result">
        <div className="search-result-left">
          <div className="search-result-meta">
Severity: Minor
Found in src/components/SearchResult.js - About 1 hr to fix

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

      propTypes: {
        onChange: PropTypes.func,
        max: PropTypes.number,
        defaultRating: PropTypes.number,
        scaling: PropTypes.number,
    Severity: Major
    Found in src/components/UI/Rating.js and 1 other location - About 1 hr to fix
    src/containers/SearchContainer.js on lines 11..18

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

    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

      return {
        searchType: state.searchType,
        searchQuery: state.searchQuery,
        searchSortBy: state.searchSortBy,
        searchLoading: state.searchLoading,
    Severity: Major
    Found in src/containers/SearchContainer.js and 1 other location - About 1 hr to fix
    src/components/UI/Rating.js on lines 6..13

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

    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

    export function seriesLoading(state = false, action = {}) {
      switch (action.type) {
        case SHOW_SERIES_SUCCESS:
          return false;
        case SHOW_SERIES_FAILURE:
    Severity: Major
    Found in src/reducers/series.js and 1 other location - About 1 hr to fix
    src/reducers/calendar.js on lines 22..33

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

    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

    export function calendarIsLoading(state = false, action = {}) {
      switch (action.type) {
        case LOAD_CALENDAR_REQUEST:
          return true;
        case LOAD_CALENDAR_SUCCESS:
    Severity: Major
    Found in src/reducers/calendar.js and 1 other location - About 1 hr to fix
    src/reducers/series.js on lines 35..46

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

    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

    Function addListItem has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      addListItem(series) {
        if (!this.authenticated) return Promise.reject('not authenticated');
        if (!_.get(series, 'item')) return Promise.reject('no item prop found');
        const listType = utils.isAnime(series.type) ? 'anime' : 'manga';
        const { item } = series;
    Severity: Minor
    Found in src/syncers/MyAnimeListSyncer.js - About 1 hr to fix

      Function updateListItem has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        updateListItem(series) {
          if (!this.authenticated) return Promise.reject('not authenticated');
          const { item } = series;
          return new Promise((resolve, reject) => {
            request
      Severity: Minor
      Found in src/syncers/HummingbirdSyncer.js - About 1 hr to fix

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

          handleShowSeries = () => {
            this.props.showSeries(this.props.series.mal_id, this.props.seriesType, this.props.series);
          }
        Severity: Major
        Found in src/components/ListItem.js and 1 other location - About 1 hr to fix
        src/components/SearchResult.js on lines 8..10

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

        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

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

          handleShowSeries = () => {
            this.props.showSeries(this.props.series.mal_id, this.props.seriesType, this.props.series);
          }
        Severity: Major
        Found in src/components/SearchResult.js and 1 other location - About 1 hr to fix
        src/components/ListItem.js on lines 44..46

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

        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

                      return (
                        <CalendarSeries
                          series={series}
                          showSeries={this.props.showSeries}
                          key={`calendar-series-${series.id}`}
        Severity: Minor
        Found in src/components/CalendarDay.js and 1 other location - About 50 mins to fix
        src/components/CalendarDay.js on lines 65..71

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

        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

                        return (
                          <CalendarFeaturedSeries
                            series={series}
                            showSeries={this.props.showSeries}
                            key={`calendar-featured-series-${series.id}`}
        Severity: Minor
        Found in src/components/CalendarDay.js and 1 other location - About 50 mins to fix
        src/components/CalendarDay.js on lines 73..79

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

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

        export function searchType(state = initialState.searchType, action = {}) {
          switch (action.type) {
            case SET_SEARCH_TYPE:
              return action.searchType;
            default:
        Severity: Major
        Found in src/reducers/search.js and 8 other locations - About 45 mins to fix
        src/reducers/calendar.js on lines 13..20
        src/reducers/list.js on lines 63..70
        src/reducers/list.js on lines 72..79
        src/reducers/list.js on lines 81..88
        src/reducers/list.js on lines 102..109
        src/reducers/list.js on lines 120..127
        src/reducers/search.js on lines 18..25
        src/reducers/search.js on lines 36..43

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

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

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

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

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

        Refactorings

        Further Reading

        Severity
        Category
        Status
        Source
        Language