department-of-veterans-affairs/vets-website

View on GitHub
src/platform/pdf/templates/utils.js

Summary

Maintainability
F
4 days
Test Coverage

File utils.js has 406 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Template utils.
 */
import { unset } from 'lodash';
import registerFonts from '../registerFonts';
Severity: Minor
Found in src/platform/pdf/templates/utils.js - About 5 hrs to fix

    Function createRichTextDetailItem has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const createRichTextDetailItem = async (doc, config, x, item) => {
      let titleText = item.title ?? '';
      const content = [];
    
      if (titleText) {
    Severity: Major
    Found in src/platform/pdf/templates/utils.js - About 2 hrs to fix

      Function createRichTextDetailItem has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

      const createRichTextDetailItem = async (doc, config, x, item) => {
        let titleText = item.title ?? '';
        const content = [];
      
        if (titleText) {
      Severity: Minor
      Found in src/platform/pdf/templates/utils.js - About 1 hr 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 createDetailItem has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const createDetailItem = async (doc, config, x, item) => {
        const paragraphOptions = { lineGap: 6 };
        let titleText = item.title ?? '';
        const content = [];
        const monospaceFont = config.text.monospaceFont || config.text.font;
      Severity: Minor
      Found in src/platform/pdf/templates/utils.js - About 1 hr to fix

        Function generateHeaderBanner has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const generateHeaderBanner = async (doc, header, data, config) => {
          doc.moveDown(1);
          const currentHeight = doc.y;
        
          // Calculate text width
        Severity: Minor
        Found in src/platform/pdf/templates/utils.js - About 1 hr to fix

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

          const generateFooterContent = async (
            doc,
            parent,
            data,
            config,
          Severity: Minor
          Found in src/platform/pdf/templates/utils.js - About 1 hr to fix

            Function createImageDetailItem has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            const createImageDetailItem = async (doc, config, x, item) => {
              let titleText = item.title ?? '';
              const content = [];
            
              if (titleText) {
            Severity: Minor
            Found in src/platform/pdf/templates/utils.js - About 1 hr to fix

              Function generateHeaderBanner has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

              const generateHeaderBanner = async (doc, header, data, config) => {
                doc.moveDown(1);
                const currentHeight = doc.y;
              
                // Calculate text width
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js - About 45 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 generateFooterContent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

              const generateFooterContent = async (
                doc,
                parent,
                data,
                config,
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js - 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

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

              const createDetailItem = async (doc, config, x, item) => {
                const paragraphOptions = { lineGap: 6 };
                let titleText = item.title ?? '';
                const content = [];
                const monospaceFont = config.text.monospaceFont || config.text.font;
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js - 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

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

              const getBoundedXPosition = doc => {
                if (doc.x < doc.page.margins.left) return doc.page.margins.left;
              
                const rightMargin = doc.page.width - doc.page.margins.right;
                if (doc.x > rightMargin) return rightMargin;
              Severity: Major
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 3 hrs to fix
              src/platform/pdf/templates/utils.js on lines 35..42

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

              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

              const getBoundedYPosition = doc => {
                if (doc.y < doc.page.margins.top) return doc.page.margins.top;
              
                const bottomMargin = doc.page.height - doc.page.margins.bottom;
                if (doc.y > bottomMargin) return bottomMargin;
              Severity: Major
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 3 hrs to fix
              src/platform/pdf/templates/utils.js on lines 19..26

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

              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

                if (titleText) {
                  titleText += ' ';
                  content.push(
                    doc.struct('P', () => {
                      doc
              Severity: Major
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 3 hrs to fix
              src/platform/pdf/templates/utils.js on lines 492..502

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

              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

                if (titleText) {
                  titleText += ' ';
                  content.push(
                    doc.struct('P', () => {
                      doc
              Severity: Major
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 3 hrs to fix
              src/platform/pdf/templates/utils.js on lines 421..431

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

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

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

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

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

              Refactorings

              Further Reading

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

              export {
                addHorizontalRule,
                createAccessibleDoc,
                createArtifactText,
                createDetailItem,
              Severity: Major
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 2 hrs to fix
              src/applications/disability-benefits/686c-674-v2/config/chapters/674/index.js on lines 17..33

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 77.

              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

                      doc
                        .font(config.text.boldFont)
                        .fontSize(config.text.size)
                        .text(titleText, x, doc.y, paragraphOptions);
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 45 mins to fix
              src/platform/pdf/templates/utils.js on lines 387..390

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 50.

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

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

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

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

              Refactorings

              Further Reading

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

                        doc
                          .font(config.text.boldFont)
                          .fontSize(config.text.size)
                          .text(titleText, x, doc.y, paragraphOptions);
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 45 mins to fix
              src/platform/pdf/templates/utils.js on lines 370..373

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 50.

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

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

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

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

              Refactorings

              Further Reading

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

                      doc
                        .font(item.monospace ? monospaceFont : config.text.font)
                        .fontSize(config.text.size)
                        .text(item.value);
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 40 mins to fix
              src/platform/pdf/templates/utils.js on lines 396..399

              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

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

                      doc
                        .font(item.monospace ? monospaceFont : config.text.font)
                        .fontSize(config.text.size)
                        .text(item.value, x, doc.y, blockValueOptions);
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 40 mins to fix
              src/platform/pdf/templates/utils.js on lines 374..377

              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

              const createSpan = (doc, config, text, options) => {
                return createStruct(
                  doc,
                  'Span',
                  config.text.font,
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 40 mins to fix
              src/platform/pdf/templates/utils.js on lines 128..137

              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

              const createArtifactText = (doc, config, text, options) => {
                return createStruct(
                  doc,
                  'Artifact',
                  config.text.font,
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 1 other location - About 40 mins to fix
              src/platform/pdf/templates/utils.js on lines 107..116

              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

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

                doc.page.margins = {
                  top: 0,
                  bottom: 0,
                  left: config.margins.left,
                  right: 16,
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 2 other locations - About 35 mins to fix
              src/platform/pdf/templates/utils.js on lines 270..275
              src/platform/pdf/templates/utils.js on lines 311..316

              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

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

                  doc.page.margins = {
                    top: 0,
                    bottom: 0,
                    left: config.margins.left,
                    right: 16,
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 2 other locations - About 35 mins to fix
              src/platform/pdf/templates/utils.js on lines 223..228
              src/platform/pdf/templates/utils.js on lines 270..275

              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

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

                  doc.page.margins = {
                    top: 0,
                    bottom: 0,
                    left: config.margins.left,
                    right: 16,
              Severity: Minor
              Found in src/platform/pdf/templates/utils.js and 2 other locations - About 35 mins to fix
              src/platform/pdf/templates/utils.js on lines 223..228
              src/platform/pdf/templates/utils.js on lines 311..316

              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

              There are no issues that match your filters.

              Category
              Status