GladysProject/Gladys

View on GitHub

Showing 2,690 of 2,690 total issues

Function downloadUpgrade has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function downloadUpgrade(tag) {
  // reset download upgrade status
  this.downloadUpgradeError = null;
  this.downloadUpgradeFinished = null;
  this.downloadUpgradeLastEvent = null;
Severity: Minor
Found in server/lib/system/system.downloadUpgrade.js - About 1 hr to fix

    Function getCaldavSetting has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      async getCaldavSetting(state) {
        store.setState({
          caldavGetSettingsStatus: CalDAVStatus.Getting
        });
    
    
    Severity: Minor
    Found in front/src/routes/integration/all/caldav/share-page/actions.js - About 1 hr to fix

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

        render({ bluetoothStatus = {} }, { uuid, peripheral, status }) {
          let content;
          if (bluetoothStatus.ready) {
            switch (status) {
              case RequestStatus.Getting:

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

          render(props, {}) {
            return (
              <BaseEditBox {...props} titleKey="dashboard.boxTitle.clock">
                <div className="form-group">
                  <label>
        Severity: Minor
        Found in front/src/components/boxs/clock/EditClock.jsx - About 1 hr to fix

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

                        <div class="card">
                          <div class="card-body">
                            <p>
                              <MarkupText id="resetPassword.resetSuccess" />
                            </p>
          Severity: Major
          Found in front/src/routes/gateway-reset-password/ResetPassword.js and 4 other locations - About 1 hr to fix
          front/src/routes/scene/edit-scene/actions/CalendarIsEventRunning.jsx on lines 180..186
          front/src/routes/scene/edit-scene/triggers/CalendarEventIsComing.jsx on lines 164..170
          front/src/routes/settings/settings-gateway/GatewayPricing.jsx on lines 12..18
          front/src/routes/settings/settings-gateway/GatewayPricing.jsx on lines 29..35

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

              <div class="row mb-4">
                <div class="col-md-12">
                  <p>
                    <Text id="gatewayPricing.pricingSentence" />
                  </p>
          front/src/routes/gateway-reset-password/ResetPassword.js on lines 42..48
          front/src/routes/scene/edit-scene/actions/CalendarIsEventRunning.jsx on lines 180..186
          front/src/routes/scene/edit-scene/triggers/CalendarEventIsComing.jsx on lines 164..170
          front/src/routes/settings/settings-gateway/GatewayPricing.jsx on lines 29..35

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

                  <div class="row">
                    <div class="col-md-12">
                      <p>
                        <Text id="editScene.actionsCard.calendarEventIsRunning.description" />
                      </p>
          front/src/routes/gateway-reset-password/ResetPassword.js on lines 42..48
          front/src/routes/scene/edit-scene/triggers/CalendarEventIsComing.jsx on lines 164..170
          front/src/routes/settings/settings-gateway/GatewayPricing.jsx on lines 12..18
          front/src/routes/settings/settings-gateway/GatewayPricing.jsx on lines 29..35

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

              <div class="row mb-4">
                <div class="col-md-12">
                  <p>
                    <Text id="gatewayPricing.supportOpenSource" />
                  </p>
          front/src/routes/gateway-reset-password/ResetPassword.js on lines 42..48
          front/src/routes/scene/edit-scene/actions/CalendarIsEventRunning.jsx on lines 180..186
          front/src/routes/scene/edit-scene/triggers/CalendarEventIsComing.jsx on lines 164..170
          front/src/routes/settings/settings-gateway/GatewayPricing.jsx on lines 12..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 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 5 locations. Consider refactoring.
          Open

                  <div class="row">
                    <div class="col-md-12">
                      <p>
                        <Text id="editScene.triggersCard.calendarEventIsComing.description" />
                      </p>
          front/src/routes/gateway-reset-password/ResetPassword.js on lines 42..48
          front/src/routes/scene/edit-scene/actions/CalendarIsEventRunning.jsx on lines 180..186
          front/src/routes/settings/settings-gateway/GatewayPricing.jsx on lines 12..18
          front/src/routes/settings/settings-gateway/GatewayPricing.jsx on lines 29..35

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

                            <span class="input-icon-addon cursor-pointer" onClick={this.togglePassword}>
                              <i
                                class={cx('fe', {
                                  'fe-eye': !showPassword,
                                  'fe-eye-off': showPassword
          front/src/routes/integration/all/mqtt/setup-page/SetupForm.jsx on lines 100..107
          front/src/routes/integration/all/zigbee2mqtt/setup-page/remote/SetupRemoteOptions.jsx on lines 119..126
          front/src/routes/integration/all/zwavejs-ui/setup-page/index.js on lines 231..238

          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

            'patch /api/v1/user': {
              id: '215811c9-c0aa-4148-8a4b-e02892d7446f',
              firstname: 'tony',
              lastname: 'Stark',
              email: 'tony.stark@gladysassistant.com',
          Severity: Major
          Found in front/src/config/demo.js and 2 other locations - About 1 hr to fix
          front/src/config/demo.js on lines 4..18
          front/src/config/demo.js on lines 50..64

          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

          const EditMELCloudDevice = props => (
            <MELCloudPage user={props.user}>
              <UpdateDevice
                {...props}
                integrationName="melcloud"
          front/src/routes/integration/all/ewelink/edit-page/index.js on lines 5..14
          front/src/routes/integration/all/tuya/edit-page/index.js on lines 5..14

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

                            <span class="input-icon-addon cursor-pointer" onClick={this.togglePassword}>
                              <i
                                class={cx('fe', {
                                  'fe-eye': !showPassword,
                                  'fe-eye-off': showPassword
          front/src/routes/integration/all/mqtt/setup-page/SetupForm.jsx on lines 100..107
          front/src/routes/integration/all/node-red/setup-page/SetupTab.jsx on lines 248..255
          front/src/routes/integration/all/zwavejs-ui/setup-page/index.js on lines 231..238

          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

            'post /api/v1/login': {
              id: '215811c9-c0aa-4148-8a4b-e02892d7446f',
              firstname: 'tony',
              lastname: 'Stark',
              email: 'tony.stark@gladysassistant.com',
          Severity: Major
          Found in front/src/config/demo.js and 2 other locations - About 1 hr to fix
          front/src/config/demo.js on lines 50..64
          front/src/config/demo.js on lines 65..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 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

              getBoxData(state, key, x, y) {
                // we refresh the state the be sure we have the latest state
                const currentState = store.getState();
                // we get the current box data and return it
                return get(currentState, `${DASHBOARD_BOX_DATA_KEY}${key}.${x}_${y}`);
          Severity: Major
          Found in front/src/actions/dashboard/boxActions.js and 1 other location - About 1 hr to fix
          front/src/actions/dashboard/boxActions.js on lines 45..50

          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

          const EditTuyaDevice = props => (
            <TuyaPage user={props.user}>
              <UpdateDevice
                {...props}
                integrationName="tuya"
          Severity: Major
          Found in front/src/routes/integration/all/tuya/edit-page/index.js and 2 other locations - About 1 hr to fix
          front/src/routes/integration/all/ewelink/edit-page/index.js on lines 5..14
          front/src/routes/integration/all/melcloud/edit-page/index.js on lines 5..14

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

                      <span class="input-icon-addon cursor-pointer" onClick={this.togglePassword}>
                        <i
                          class={cx('fe', {
                            'fe-eye': !showPassword,
                            'fe-eye-off': showPassword
          front/src/routes/integration/all/node-red/setup-page/SetupTab.jsx on lines 248..255
          front/src/routes/integration/all/zigbee2mqtt/setup-page/remote/SetupRemoteOptions.jsx on lines 119..126
          front/src/routes/integration/all/zwavejs-ui/setup-page/index.js on lines 231..238

          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

              return (
                <RoomHumidityBox
                  {...props}
                  humidity={humidity}
                  unit={unit}
          Severity: Major
          Found in front/src/components/boxs/room-humidity/RoomHumidity.jsx and 1 other location - About 1 hr to fix
          front/src/components/boxs/room-temperature/RoomTemperature.jsx on lines 114..125

          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

              {
                name,
                email,
                password,
                fieldsErrored,
          Severity: Major
          Found in front/src/routes/signup-gateway/index.js and 1 other location - About 1 hr to fix
          server/services/zigbee2mqtt/lib/getConfiguration.js on lines 33..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 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

            return {
              z2mDriverPath,
              z2mDongleName,
              z2mTcpPort,
              z2mMqttUsername,
          Severity: Major
          Found in server/services/zigbee2mqtt/lib/getConfiguration.js and 1 other location - About 1 hr to fix
          front/src/routes/signup-gateway/index.js on lines 119..132

          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

          Severity
          Category
          Status
          Source
          Language