mashirozx/mastodon

View on GitHub
app/javascript/mastodon/components/status.js

Summary

Maintainability
F
1 wk
Test Coverage

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

  render () {
    let media = null;
    let statusAvatar, prepend, rebloggedByText, unlistedQuoteText;

    const { intl, hidden, featured, unread, showThread, scrollKey, pictureInPicture, contextType } = this.props;
Severity: Major
Found in app/javascript/mastodon/components/status.js - About 1 day to fix

    File status.js has 617 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import React from 'react';
    import ImmutablePropTypes from 'react-immutable-proptypes';
    import PropTypes from 'prop-types';
    import Avatar from './avatar';
    import AvatarOverlay from './avatar_overlay';
    Severity: Major
    Found in app/javascript/mastodon/components/status.js - About 1 day to fix

      Function render has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring.
      Open

        render () {
          let media = null;
          let statusAvatar, prepend, rebloggedByText, unlistedQuoteText;
      
          const { intl, hidden, featured, unread, showThread, scrollKey, pictureInPicture, contextType } = this.props;
      Severity: Minor
      Found in app/javascript/mastodon/components/status.js - About 6 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Status has 38 functions (exceeds 20 allowed). Consider refactoring.
      Open

      export default @injectIntl
      class Status extends ImmutablePureComponent {
      
        static contextTypes = {
          router: PropTypes.object,
      Severity: Minor
      Found in app/javascript/mastodon/components/status.js - About 5 hrs to fix

        Avoid too many return statements within this function.
        Open

            return (
              <HotKeys handlers={handlers}>
                <div className={classNames('status__wrapper', `status__wrapper-${status.get('visibility')}`, { 'status__wrapper-reply': !!status.get('in_reply_to_id'), unread, focusable: !this.props.muted })} tabIndex={this.props.muted ? null : 0} data-featured={featured ? 'true' : null} aria-label={textForScreenReader(intl, status, rebloggedByText)} ref={this.handleRef}>
                  {prepend}
        
        
        Severity: Major
        Found in app/javascript/mastodon/components/status.js - About 30 mins to fix

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

              const visibilityIconInfo = {
                'public': { icon: 'globe', text: intl.formatMessage(messages.public_short) },
                'unlisted': { icon: 'unlock', text: intl.formatMessage(messages.unlisted_short) },
                'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
                'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 2 other locations - About 4 hrs to fix
          app/javascript/mastodon/features/status/components/detailed_status.js on lines 296..301
          app/javascript/mastodon/features/ui/components/boost_modal.js on lines 87..92

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

          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

          const messages = defineMessages({
            public_short: { id: 'privacy.public.short', defaultMessage: 'Public' },
            unlisted_short: { id: 'privacy.unlisted.short', defaultMessage: 'Unlisted' },
            private_short: { id: 'privacy.private.short', defaultMessage: 'Followers-only' },
            direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 4 other locations - About 3 hrs to fix
          app/javascript/mastodon/features/audio/index.js on lines 15..22
          app/javascript/mastodon/features/notifications/components/filter_bar.js on lines 6..13
          app/javascript/mastodon/features/status/containers/detailed_status_container.js on lines 33..40
          app/javascript/mastodon/features/ui/components/boost_modal.js on lines 18..25

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

          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

                    <div className={classNames('quote-status', `status-${quote_status.get('visibility')}`, { muted: this.props.muted })} data-id={quote_status.get('id')}>
                      <div className='status__info'>
                        <a onClick={this.handleQuoteAccountClick} target='_blank' data-id={quote_status.getIn(['account', 'id'])} href={quote_status.getIn(['account', 'url'])} title={quote_status.getIn(['account', 'acct'])} className='status__display-name'>
                          <div className='status__avatar'><Avatar account={quote_status.get('account')} size={18} /></div>
                          <DisplayName account={quote_status.get('account')} />
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 1 hr to fix
          app/javascript/mastodon/components/status.js on lines 677..685

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

          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

                    <div className={classNames('quote-status', `status-${quote_status.get('visibility')}`, { muted: this.props.muted })} data-id={quote_status.get('id')}>
                      <div className={classNames('status__content unlisted-quote', { 'status__content--with-action': this.context.router })}>
                        <button onClick={this.handleQuoteClick}>
                          <Icon id='unlock:fad' />
                          {unlistedQuoteText}
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 1 hr to fix
          app/javascript/mastodon/components/status.js on lines 689..699

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

          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

            handleOpenVideo = (options) => {
              const status = this._properStatus();
              this.props.onOpenVideo(status.get('id'), status.getIn(['media_attachments', 0]), options);
            }
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 1 hr to fix
          app/javascript/mastodon/components/status.js on lines 234..237

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

          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

            handleOpenVideoQuote = (options) => {
              const status = this._properQuoteStatus();
              this.props.onOpenVideo(status.get('id'), status.getIn(['media_attachments', 0]), options);
            }
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 1 hr to fix
          app/javascript/mastodon/components/status.js on lines 229..232

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

          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

                      <StatusContent status={quote_status} onClick={this.handleQuoteClick} expanded={!status.get('quote_hidden')} onExpandedToggle={this.handleExpandedQuoteToggle} quote />
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 2 other locations - About 1 hr to fix
          app/javascript/mastodon/features/direct_timeline/components/conversation.js on lines 164..170
          app/javascript/mastodon/features/status/components/detailed_status.js on lines 226..226

          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

              if (status.get('quote', null) !== null && typeof status.get('quote') === 'object') {
                return status.get('quote');
              } else {
                return status;
              }
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 1 hr to fix
          app/javascript/mastodon/components/status.js on lines 346..350

          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

              if (status.get('reblog', null) !== null && typeof status.get('reblog') === 'object') {
                return status.get('reblog');
              } else {
                return status;
              }
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 1 hr to fix
          app/javascript/mastodon/components/status.js on lines 356..360

          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

            handleHotkeyMoveDown = e => {
              this.props.onMoveDown(this.props.status.get('id'), e.target.getAttribute('data-featured'));
            }
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 1 hr to fix
          app/javascript/mastodon/components/status.js on lines 318..320

          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

            handleHotkeyMoveUp = e => {
              this.props.onMoveUp(this.props.status.get('id'), e.target.getAttribute('data-featured'));
            }
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 1 hr to fix
          app/javascript/mastodon/components/status.js on lines 322..324

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

              const { intl, hidden, featured, unread, showThread, scrollKey, pictureInPicture, contextType } = this.props;
          Severity: Major
          Found in app/javascript/mastodon/components/status.js and 5 other locations - About 50 mins to fix
          app/javascript/mastodon/components/dropdown_menu.js on lines 142..142
          app/javascript/mastodon/components/media_gallery.js on lines 460..460
          app/javascript/mastodon/features/audio/index.js on lines 462..462
          app/javascript/mastodon/features/notifications/components/column_settings.js on lines 32..32
          app/javascript/mastodon/features/ui/components/report_modal.js on lines 135..144

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

          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

              router.history.push(`/@${status.getIn(['account', 'acct'])}/${status.get('id')}`);
          Severity: Minor
          Found in app/javascript/mastodon/components/status.js and 1 other location - About 35 mins to fix
          app/javascript/mastodon/features/picture_in_picture/components/footer.js on lines 128..128

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

          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

                            <span className='status__visibility-icon'><Icon id={federationIcon.icon} title={federationIcon.text} /></span>
          Severity: Minor
          Found in app/javascript/mastodon/components/status.js and 2 other locations - About 30 mins to fix
          app/javascript/mastodon/components/status.js on lines 717..717
          app/javascript/mastodon/features/ui/components/boost_modal.js on lines 103..103

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

          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

                          <span className='status__visibility-icon'><Icon id={visibilityIcon.icon} title={visibilityIcon.text} /></span>
          Severity: Minor
          Found in app/javascript/mastodon/components/status.js and 2 other locations - About 30 mins to fix
          app/javascript/mastodon/components/status.js on lines 715..715
          app/javascript/mastodon/features/ui/components/boost_modal.js on lines 103..103

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

          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