api/src/data/utils.ts

Summary

Maintainability
F
6 days
Test Coverage

File utils.ts has 785 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import * as AWS from 'aws-sdk';
import utils from 'erxes-api-utils';
import { IEmailParams as IEmailParamsC } from 'erxes-api-utils/lib/emails';
import { ISendNotification as ISendNotificationC } from 'erxes-api-utils/lib/requests';
import * as fileType from 'file-type';
Severity: Major
Found in api/src/data/utils.ts - About 1 day to fix

    Function getImportCsvInfo has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const getImportCsvInfo = async (fileName: string) => {
      const UPLOAD_SERVICE_TYPE = await getConfig('UPLOAD_SERVICE_TYPE', 'AWS');
    
      return new Promise(async (resolve, reject) => {
        if (UPLOAD_SERVICE_TYPE === 'local') {
    Severity: Major
    Found in api/src/data/utils.ts - About 2 hrs to fix

      Function checkFile has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const checkFile = async (file, source?: string) => {
        if (!file) {
          throw new Error('Invalid file');
        }
      
      
      Severity: Major
      Found in api/src/data/utils.ts - About 2 hrs to fix

        Function readFileRequest has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export const readFileRequest = async (key: string): Promise<any> => {
          const UPLOAD_SERVICE_TYPE = await getConfig('UPLOAD_SERVICE_TYPE', 'AWS');
        
          if (UPLOAD_SERVICE_TYPE === 'GCS') {
            const GCS_BUCKET = await getConfig('GOOGLE_CLOUD_STORAGE_BUCKET');
        Severity: Minor
        Found in api/src/data/utils.ts - About 1 hr to fix

          Function findCompany has 44 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export const findCompany = async doc => {
            let company;
          
            if (doc.companyPrimaryName) {
              company = await models.Companies.findOne({
          Severity: Minor
          Found in api/src/data/utils.ts - About 1 hr to fix

            Function getCsvHeadersInfo has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export const getCsvHeadersInfo = async (fileName: string) => {
              const UPLOAD_SERVICE_TYPE = await getConfig('UPLOAD_SERVICE_TYPE', 'AWS');
            
              return new Promise(async resolve => {
                if (UPLOAD_SERVICE_TYPE === 'local') {
            Severity: Minor
            Found in api/src/data/utils.ts - About 1 hr to fix

              Function uploadFileAWS has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export const uploadFileAWS = async (
                file: { name: string; path: string; type: string },
                forcePrivate: boolean = false
              ): Promise<string> => {
                const IS_PUBLIC = forcePrivate
              Severity: Minor
              Found in api/src/data/utils.ts - About 1 hr to fix

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

                export const createAWS = async () => {
                  const AWS_ACCESS_KEY_ID = await getConfig('AWS_ACCESS_KEY_ID');
                  const AWS_SECRET_ACCESS_KEY = await getConfig('AWS_SECRET_ACCESS_KEY');
                  const AWS_BUCKET = await getConfig('AWS_BUCKET');
                  const AWS_COMPATIBLE_SERVICE_ENDPOINT = await getConfig(
                Severity: Minor
                Found in api/src/data/utils.ts - About 1 hr to fix

                  Function checkFile has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                  Open

                  export const checkFile = async (file, source?: string) => {
                    if (!file) {
                      throw new Error('Invalid file');
                    }
                  
                  
                  Severity: Minor
                  Found in api/src/data/utils.ts - About 55 mins 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

                  Function findCompany has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                  export const findCompany = async doc => {
                    let company;
                  
                    if (doc.companyPrimaryName) {
                      company = await models.Companies.findOne({
                  Severity: Minor
                  Found in api/src/data/utils.ts - About 35 mins 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

                  Avoid too many return statements within this function.
                  Open

                      return 'Invalid configured file type';
                  Severity: Major
                  Found in api/src/data/utils.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                      return 'ok';
                    Severity: Major
                    Found in api/src/data/utils.ts - About 30 mins to fix

                      Function uploadFile has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                      Open

                      export const uploadFile = async (
                        apiUrl: string,
                        file,
                        fromEditor = false
                      ): Promise<any> => {
                      Severity: Minor
                      Found in api/src/data/utils.ts - About 25 mins 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

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

                            readStream
                              .pipe(csvParser())
                              .on('data', data => {
                                i++;
                                if (i <= 3) {
                      Severity: Major
                      Found in api/src/data/utils.ts and 1 other location - About 4 hrs to fix
                      api/src/data/utils.ts on lines 104..120

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

                      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

                            readStream
                              .pipe(csvParser())
                              .on('data', data => {
                                i++;
                                if (i <= 3) {
                      Severity: Major
                      Found in api/src/data/utils.ts and 1 other location - About 4 hrs to fix
                      api/src/data/utils.ts on lines 133..150

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

                      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

                        if (!company && doc.name) {
                          company = await models.Companies.findOne({
                            $or: [{ names: { $in: [doc.name] } }, { primaryName: doc.name }]
                          });
                        }
                      Severity: Major
                      Found in api/src/data/utils.ts and 5 other locations - About 2 hrs to fix
                      api/src/data/utils.ts on lines 986..993
                      api/src/data/utils.ts on lines 1020..1024
                      api/src/data/utils.ts on lines 1026..1030
                      api/src/data/utils.ts on lines 1032..1039
                      api/src/data/utils.ts on lines 1041..1048

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

                      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

                        if (!company && doc.phone) {
                          company = await models.Companies.findOne({
                            $or: [{ phones: { $in: [doc.phone] } }, { primaryPhone: doc.phone }]
                          });
                        }
                      Severity: Major
                      Found in api/src/data/utils.ts and 5 other locations - About 2 hrs to fix
                      api/src/data/utils.ts on lines 986..993
                      api/src/data/utils.ts on lines 1014..1018
                      api/src/data/utils.ts on lines 1020..1024
                      api/src/data/utils.ts on lines 1032..1039
                      api/src/data/utils.ts on lines 1041..1048

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

                      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

                        if (!company && doc.email) {
                          company = await models.Companies.findOne({
                            $or: [{ emails: { $in: [doc.email] } }, { primaryEmail: doc.email }]
                          });
                        }
                      Severity: Major
                      Found in api/src/data/utils.ts and 5 other locations - About 2 hrs to fix
                      api/src/data/utils.ts on lines 986..993
                      api/src/data/utils.ts on lines 1014..1018
                      api/src/data/utils.ts on lines 1026..1030
                      api/src/data/utils.ts on lines 1032..1039
                      api/src/data/utils.ts on lines 1041..1048

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

                      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

                        if (!company && doc.companyPrimaryEmail) {
                          company = await models.Companies.findOne({
                            $or: [
                              { emails: { $in: [doc.companyPrimaryEmail] } },
                              { primaryEmail: doc.companyPrimaryEmail }
                      Severity: Major
                      Found in api/src/data/utils.ts and 5 other locations - About 2 hrs to fix
                      api/src/data/utils.ts on lines 986..993
                      api/src/data/utils.ts on lines 1014..1018
                      api/src/data/utils.ts on lines 1020..1024
                      api/src/data/utils.ts on lines 1026..1030
                      api/src/data/utils.ts on lines 1041..1048

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

                      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

                        if (!customer && doc.customerPrimaryPhone) {
                          customer = await models.Customers.findOne({
                            $or: [
                              { phones: { $in: [doc.customerPrimaryPhone] } },
                              { primaryPhone: doc.customerPrimaryPhone }
                      Severity: Major
                      Found in api/src/data/utils.ts and 5 other locations - About 2 hrs to fix
                      api/src/data/utils.ts on lines 1014..1018
                      api/src/data/utils.ts on lines 1020..1024
                      api/src/data/utils.ts on lines 1026..1030
                      api/src/data/utils.ts on lines 1032..1039
                      api/src/data/utils.ts on lines 1041..1048

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

                      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

                        if (!company && doc.companyPrimaryPhone) {
                          company = await models.Companies.findOne({
                            $or: [
                              { phones: { $in: [doc.companyPrimaryPhone] } },
                              { primaryPhone: doc.companyPrimaryPhone }
                      Severity: Major
                      Found in api/src/data/utils.ts and 5 other locations - About 2 hrs to fix
                      api/src/data/utils.ts on lines 986..993
                      api/src/data/utils.ts on lines 1014..1018
                      api/src/data/utils.ts on lines 1020..1024
                      api/src/data/utils.ts on lines 1026..1030
                      api/src/data/utils.ts on lines 1032..1039

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

                      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 (doc.companyPrimaryName) {
                          company = await models.Companies.findOne({
                            $or: [
                              { names: { $in: [doc.companyPrimaryName] } },
                              { primaryName: doc.companyPrimaryName }
                      Severity: Major
                      Found in api/src/data/utils.ts and 1 other location - About 1 hr to fix
                      api/src/data/utils.ts on lines 977..984

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

                      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 (doc.customerPrimaryEmail) {
                          customer = await models.Customers.findOne({
                            $or: [
                              { emails: { $in: [doc.customerPrimaryEmail] } },
                              { primaryEmail: doc.customerPrimaryEmail }
                      Severity: Major
                      Found in api/src/data/utils.ts and 1 other location - About 1 hr to fix
                      api/src/data/utils.ts on lines 1005..1012

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

                      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 (!company && doc.companyCode) {
                          company = await models.Companies.findOne({ code: doc.companyCode });
                        }
                      Severity: Minor
                      Found in api/src/data/utils.ts and 1 other location - About 40 mins to fix
                      api/src/data/utils.ts on lines 995..997

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

                      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 (!customer && doc.customerCode) {
                          customer = await models.Customers.findOne({ code: doc.customerCode });
                        }
                      Severity: Minor
                      Found in api/src/data/utils.ts and 1 other location - About 40 mins to fix
                      api/src/data/utils.ts on lines 1050..1052

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

                      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