ArtifactForms/MeshLibCore

View on GitHub

Showing 407 of 407 total issues

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

  public static float max(float... values) {
    if (values.length == 0) return Float.NaN;

    float max = values[0];
    for (int i = 1; i < values.length; i++) max = Math.max(max, values[i]);
Severity: Major
Found in src/main/java/math/Mathf.java and 1 other location - About 1 hr to fix
src/main/java/math/Mathf.java on lines 198..204

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

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

        for (int i = 0; i < face.indices.length; i++) {
            Vector3f v = mesh.vertices.get(face.indices[i]);
            Vector3f v0 = v.mult(m);
            v.set(v0.getX(), v.getY(), v0.getZ());
        }
Severity: Major
Found in src/main/java/mesh/util/Mesh3DUtil.java and 2 other locations - About 1 hr to fix
src/main/java/mesh/util/Mesh3DUtil.java on lines 44..48
src/main/java/mesh/util/Mesh3DUtil.java on lines 66..70

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

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

  public static float min(float... values) {
    if (values.length == 0) return Float.NaN;

    float min = values[0];
    for (int i = 1; i < values.length; i++) min = Math.min(min, values[i]);
Severity: Major
Found in src/main/java/math/Mathf.java and 1 other location - About 1 hr to fix
src/main/java/math/Mathf.java on lines 184..190

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

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

        for (int i = 0; i < face.indices.length; i++) {
            Vector3f v = mesh.vertices.get(face.indices[i]);
            Vector3f v0 = v.mult(m);
            v.set(v.getX(), v0.getY(), v0.getZ());
        }
Severity: Major
Found in src/main/java/mesh/util/Mesh3DUtil.java and 2 other locations - About 1 hr to fix
src/main/java/mesh/util/Mesh3DUtil.java on lines 55..59
src/main/java/mesh/util/Mesh3DUtil.java on lines 66..70

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

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

Method fpsViewRH has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static Matrix4f fpsViewRH(Vector3f eye, float pitch, float yaw) {
    float cosPitch = Mathf.cos(pitch);
    float sinPitch = Mathf.sin(pitch);
    float cosYaw = Mathf.cos(yaw);
    float sinYaw = Mathf.sin(yaw);
Severity: Minor
Found in src/main/java/math/Matrix4f.java - About 1 hr to fix

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

      public static int max(int[] values) {
        if (values.length == 0) return 0;
    
        int max = values[0];
        for (int i = 1; i < values.length; i++) max = Math.max(max, values[i]);
    Severity: Major
    Found in src/main/java/math/Mathf.java and 1 other location - About 1 hr to fix
    src/main/java/math/Mathf.java on lines 134..140

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

    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

      public static int min(int[] values) {
        if (values.length == 0) return 0;
    
        int min = values[0];
        for (int i = 1; i < values.length; i++) min = Math.min(min, values[i]);
    Severity: Major
    Found in src/main/java/math/Mathf.java and 1 other location - About 1 hr to fix
    src/main/java/math/Mathf.java on lines 148..154

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

    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

        public CubeJointLatticeCylinderCreator() {
            vertices = 32;
            subdivisionsY = 3;
            radius = 1f;
            height = 2f;
    src/main/java/mesh/creator/unsorted/CubeJointLatticeCreator.java on lines 34..43

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 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

        public CubeJointLatticeCreator() {
            subdivisionsX = 10;
            subdivisionsY = 10;
            tileSizeX = 0.1f;
            tileSizeY = 0.1f;
    src/main/java/mesh/creator/unsorted/CubeJointLatticeCylinderCreator.java on lines 35..44

    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

        private void createVertices() {
            addVertex(-radius, +radius, +radius);
            addVertex(+radius, +radius, -radius);
            addVertex(+radius, -radius, +radius);
            addVertex(-radius, -radius, -radius);
    Severity: Minor
    Found in src/main/java/mesh/creator/platonic/TetrahedronCreator.java and 1 other location - About 55 mins to fix
    src/main/java/mesh/creator/primitives/WedgeCreator.java on lines 33..38

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 67.

    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

        public void selectInner() {
            for (Face3D face : mesh.faces) {
                Vector3f normal = mesh.calculateFaceNormal(face);
                Vector3f v = mesh.getVertexAt(face.indices[0]);
                if (normal.dot(v) < 0) {
    Severity: Minor
    Found in src/main/java/mesh/selection/FaceSelection.java and 1 other location - About 55 mins to fix
    src/main/java/mesh/selection/FaceSelection.java on lines 356..364

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

    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

        public void selectOuter() {
            for (Face3D face : mesh.faces) {
                Vector3f normal = mesh.calculateFaceNormal(face);
                Vector3f v = mesh.getVertexAt(face.indices[0]);
                if (normal.dot(v) > 0) {
    Severity: Minor
    Found in src/main/java/mesh/selection/FaceSelection.java and 1 other location - About 55 mins to fix
    src/main/java/mesh/selection/FaceSelection.java on lines 366..374

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

    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

        private void addBottomVertices() {
            addVertex(-radius, +radius, +radius);
            addVertex(+radius, +radius, +radius);
            addVertex(+radius, +radius, -radius);
            addVertex(-radius, +radius, -radius);
    Severity: Minor
    Found in src/main/java/mesh/creator/primitives/WedgeCreator.java and 1 other location - About 55 mins to fix
    src/main/java/mesh/creator/platonic/TetrahedronCreator.java on lines 16..21

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

    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

    Method connectJoints has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

        private void connectJoints() {
            for (int i = 0; i < cubes.length; i++) {
                for (int j = 0; j < cubes[0].length; j++) {
                    if ((j + 1) < cubes[0].length)
                        connectRightLeft(i, j);
    Severity: Minor
    Found in src/main/java/mesh/creator/unsorted/CubeJointLatticeCreator.java - 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

    Method calculateWallHeight has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

        private void calculateWallHeight() {
            float minY = 0;
            float maxY = 0;
            FaceSelection selection = new FaceSelection(mesh);
            selection.selectSimilarNormal(new Vector3f(-1, 0, 0), 0);
    Severity: Minor
    Found in src/main/java/mesh/creator/assets/SciFiFloorCreator.java - 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

    Method innerBoundary has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

        public void innerBoundary() {
            TraverseHelper helper = new TraverseHelper(mesh);
    
            HashSet<Face3D> deselected = new HashSet<Face3D>();
    
    
    Severity: Minor
    Found in src/main/java/mesh/selection/FaceSelection.java - 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

    Method outerBoundary has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

        public void outerBoundary() {
            TraverseHelper helper = new TraverseHelper(mesh);
    
            HashSet<Face3D> deselected = new HashSet<Face3D>();
    
    
    Severity: Minor
    Found in src/main/java/mesh/selection/FaceSelection.java - 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

    Method createFaces has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

        private void createFaces() {
            for (int row = 0; row < (rings - 2) / 2; row++) {
                for (int col = 0; col < segments; col++) {
                    int a = getIndex(row, col + 1);
                    int b = getIndex(row + 1, col + 1);
    Severity: Minor
    Found in src/main/java/mesh/creator/primitives/HalfUVSphere.java - 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

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

      public static Material createWater() {
        return new Material.Builder()
            .setColor(new Color(0.0f, 0.5f, 1.0f))
            .setAmbient(new float[] {0.1f, 0.3f, 0.5f})
            .setDiffuse(new float[] {0.3f, 0.5f, 0.7f})
    Severity: Major
    Found in src/main/java/engine/render/MaterialFactory.java and 4 other locations - About 55 mins to fix
    src/main/java/engine/render/MaterialFactory.java on lines 30..38
    src/main/java/engine/render/MaterialFactory.java on lines 47..55
    src/main/java/engine/render/MaterialFactory.java on lines 64..72
    src/main/java/engine/render/MaterialFactory.java on lines 82..90

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

    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

        public void add(Insets other) {
            if (other == null) {
                throw new NullPointerException("Insets to add cannot be null.");
            }
            this.top += other.top;
    Severity: Minor
    Found in src/main/java/workspace/ui/border/Insets.java and 1 other location - About 55 mins to fix
    src/main/java/workspace/ui/border/Insets.java on lines 49..57

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

    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