TiagoMSSantos/MobileRT

View on GitHub

Showing 18 of 520 total issues

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

package puscas.mobilertapp.constants;

import androidx.annotation.NonNull;

import java.util.logging.Logger;
Severity: Major
Found in app/src/main/java/puscas/mobilertapp/constants/Scene.java and 1 other location - About 1 hr to fix
app/src/main/java/puscas/mobilertapp/constants/Shader.java on lines 1..78

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

package puscas.mobilertapp.constants;

import androidx.annotation.NonNull;

import java.util.logging.Logger;
Severity: Major
Found in app/src/main/java/puscas/mobilertapp/constants/Shader.java and 1 other location - About 1 hr to fix
app/src/main/java/puscas/mobilertapp/constants/Scene.java on lines 1..78

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithRegularGrid() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 119..129
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 79..89
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 96..106

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithNaive() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 119..129
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 79..89
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 96..106

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithWhitted() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 119..129
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 79..89
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 96..106

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithDepthMap() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 119..129
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 96..106

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithDiffuse() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 119..129
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 79..89

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithBVH() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 119..129
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 79..89
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 96..106

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithPathTracing() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 119..129
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 79..89
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 96..106

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneFromInternalStorageOBJ() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 79..89
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 96..106

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithNoShadows() throws TimeoutException {
        mockFileManagerReply(false,
            ConstantsAndroidTests.CORNELL_BOX_WATER_OBJ,
            ConstantsAndroidTests.CORNELL_BOX_WATER_MTL,
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 119..129
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 28..38
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/AcceleratorTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 45..55
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 62..72
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 79..89
app/src/androidTest/java/puscas/mobilertapp/engine/ShaderTest.java on lines 96..106

Duplicated Code

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

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

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

Tuning

This issue has a mass of 61.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 5L * 1000L)
    public void testFilesExistAndReadableSdCard() {
        final String sdCardPath = UtilsContext.getSdCardPath(this.activity);

        final List<String> paths = Collections.singletonList(sdCardPath + ConstantsUI.FILE_SEPARATOR + Constants.OBJ_FILE_TEAPOT);
app/src/androidTest/java/puscas/mobilertapp/system/FileSystemTest.java on lines 103..109

Duplicated Code

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

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

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

Tuning

This issue has a mass of 47.

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 5L * 1000L)
    public void testFilesNotExistSdCard() {
        final String sdCardPath = UtilsContext.getSdCardPath(this.activity);

        final List<String> paths = Collections.singletonList(sdCardPath + ConstantsUI.FILE_SEPARATOR + Constants.OBJ_FILE_NOT_EXISTS_SD_CARD);
app/src/androidTest/java/puscas/mobilertapp/system/FileSystemTest.java on lines 77..83

Duplicated Code

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

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

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

Tuning

This issue has a mass of 47.

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

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

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

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

Refactorings

Further Reading

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

        GlobalScope.async(context = Dispatchers.Main, start = CoroutineStart.DEFAULT, block = {
            onProgressUpdate()
        })
app/src/main/java/puscas/mobilertapp/utils/AsyncTaskCoroutine.kt on lines 116..118

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

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

            lastJob = GlobalScope.async(context = Dispatchers.IO, start = CoroutineStart.DEFAULT, block = {
                doInBackground()
            })
app/src/main/java/puscas/mobilertapp/utils/AsyncTaskCoroutine.kt on lines 97..99

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

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 3L * 60L * 1000L)
    public void testRenderSceneWithPerspective() throws TimeoutException {
        final int numCores = UtilsContext.getNumOfCores(this.activity);
        assertRenderScene(numCores, Scene.CORNELL, Shader.WHITTED, Accelerator.BVH, 5, 1, false, false);
    }
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 161..165
app/src/androidTest/java/puscas/mobilertapp/engine/CameraTest.java on lines 26..30

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

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 2L * 60L * 1000L)
    public void testRenderSceneWithoutAccelerator() throws TimeoutException {
        final int numCores = UtilsContext.getNumOfCores(this.activity);
        assertRenderScene(numCores, Scene.CORNELL, Shader.WHITTED, Accelerator.NONE, 1, 1, false, true);
    }
app/src/androidTest/java/puscas/mobilertapp/engine/CameraTest.java on lines 26..30
app/src/androidTest/java/puscas/mobilertapp/engine/CameraTest.java on lines 37..41

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

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

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

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

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

Refactorings

Further Reading

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

    @Test(timeout = 3L * 60L * 1000L)
    public void testRenderSceneWithOrthographic() throws TimeoutException {
        final int numCores = UtilsContext.getNumOfCores(this.activity);
        assertRenderScene(numCores, Scene.SPHERES, Shader.WHITTED, Accelerator.BVH, 5, 1, false, false);
    }
app/src/androidTest/java/puscas/mobilertapp/RayTracingTest.java on lines 161..165
app/src/androidTest/java/puscas/mobilertapp/engine/CameraTest.java on lines 37..41

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

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