guess-It-SDP/guessIt

View on GitHub

Showing 181 of 201 total issues

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

    Box(
        modifier = Modifier
            .padding(16.dp)
            .fillMaxWidth()
            .background(
app/src/main/java/com/github/freeman/bootcamp/games/guessit/DisplayRecapsActivity.kt on lines 119..128

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

                        Box(
                            modifier = Modifier
                                .padding(16.dp)
                                .fillMaxWidth()
                                .background(
app/src/main/java/com/github/freeman/bootcamp/MainMenuActivity.kt on lines 203..212

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

        /**
         * Draws a hat on the given face in the canvas using the provided face bitmap and paint object.
         *
         * @param face       The face object representing the detected face.
         * @param canvas     The canvas object where the hat will be drawn.
app/src/main/java/com/github/freeman/bootcamp/facedetection/FaceDetectionActivity.kt on lines 207..226

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

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

        /**
         * Draws a hat on the given face in the canvas using the provided face bitmap and paint object.
         *
         * @param face       The face object representing the detected face.
         * @param canvas     The canvas object where the hat will be drawn.
app/src/main/java/com/github/freeman/bootcamp/facedetection/FaceDetectionActivity.kt on lines 186..205

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

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

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            BootcampComposeTheme {
                Surface {
app/src/main/java/com/github/freeman/bootcamp/games/help/CreditsActivity.kt on lines 36..49
app/src/main/java/com/github/freeman/bootcamp/games/help/WordleRulesActivity.kt on lines 73..86

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

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

        dbRef
            .child(context.getString(R.string.profiles_path))
            .child(userId)
            .child(context.getString(R.string.username_path))
            .setValue(username)
app/src/main/java/com/github/freeman/bootcamp/utilities/firebase/FirebaseUtilities.kt on lines 183..187
app/src/main/java/com/github/freeman/bootcamp/utilities/firebase/FirebaseUtilities.kt on lines 199..203

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

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

            dbRef
                .child(context.getString(R.string.profiles_path))
                .child(userId)
                .child(context.getString(R.string.email_path))
                .setValue(email)
app/src/main/java/com/github/freeman/bootcamp/utilities/firebase/FirebaseUtilities.kt on lines 177..181
app/src/main/java/com/github/freeman/bootcamp/utilities/firebase/FirebaseUtilities.kt on lines 199..203

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

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

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            BootcampComposeTheme {
                Surface {
app/src/main/java/com/github/freeman/bootcamp/games/help/CreditsActivity.kt on lines 36..49
app/src/main/java/com/github/freeman/bootcamp/games/help/GuessItRulesActivity.kt on lines 36..49

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

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

        storageRef
            .child(context.getString(R.string.profiles_path))
            .child(userId)
            .child(context.getString(R.string.picture_path))
            .putBytes(image)
app/src/main/java/com/github/freeman/bootcamp/utilities/firebase/FirebaseUtilities.kt on lines 177..181
app/src/main/java/com/github/freeman/bootcamp/utilities/firebase/FirebaseUtilities.kt on lines 183..187

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

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

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            BootcampComposeTheme {
                Surface {
app/src/main/java/com/github/freeman/bootcamp/games/help/GuessItRulesActivity.kt on lines 36..49
app/src/main/java/com/github/freeman/bootcamp/games/help/WordleRulesActivity.kt on lines 73..86

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

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 WordleRulesDisplay has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

@Composable
fun WordleRulesDisplay() {
    Column(
        modifier = Modifier
            .testTag("wordleRulesScreen")

    Method RoomScreen has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    /**
     * allows to enter a video call room by entering a number in a textField and by clicking on a button
     *
     * @param onNavigate the navigation flow controller
     * @param viewModel view model for RoomScreen display

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

          @Test
          fun privateButtonCanBeClicked() {
              composeRule.onNodeWithTag("privateLobbyButton").assertHasClickAction()
              composeRule.onNodeWithTag("privateLobbyButton").performClick()
              composeRule.onNodeWithTag("privateLobbyButton").assertDoesNotExist()
      app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 46..51
      app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 58..63
      app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 55..61
      app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 79..85
      app/src/androidTest/java/com/github/freeman/bootcamp/wordle/WordleRulseActivityTest.kt on lines 43..48

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

      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 TopAppbarWordleRules has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      @Composable
      fun TopAppbarWordleRules(context: Context = LocalContext.current) {
      
          TopAppBar(
              modifier = Modifier.testTag("topAppbarWordleRules"),

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

            @Test
            fun topAppBarCanBeClicked() {
                composeRule.onNodeWithTag("topAppbarPublicPrivateButton").assertHasClickAction()
                composeRule.onNodeWithTag("topAppbarPublicPrivateButton").performClick()
                composeRule.onNodeWithTag("topAppbarPublicPrivateButton").assertDoesNotExist()
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 58..63
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 70..75
        app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 55..61
        app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 79..85
        app/src/androidTest/java/com/github/freeman/bootcamp/wordle/WordleRulseActivityTest.kt on lines 43..48

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

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

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

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

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

        Refactorings

        Further Reading

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

            @Test
            fun publicButtonCanBeClicked() {
                composeRule.onNodeWithTag("publicLobbyButton").assertHasClickAction()
                composeRule.onNodeWithTag("publicLobbyButton").performClick()
                composeRule.onNodeWithTag("publicLobbyButton").assertDoesNotExist()
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 46..51
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 70..75
        app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 55..61
        app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 79..85
        app/src/androidTest/java/com/github/freeman/bootcamp/wordle/WordleRulseActivityTest.kt on lines 43..48

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

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

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

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

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

        Refactorings

        Further Reading

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

            @Test
            fun creditsScreenIsDisplayed() {
                composeRule.onNodeWithTag("creditsButton").performClick()
        
                composeRule.onNodeWithTag("topAppbarCredits").assertIsDisplayed()
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 46..51
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 58..63
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 70..75
        app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 79..85
        app/src/androidTest/java/com/github/freeman/bootcamp/wordle/WordleRulseActivityTest.kt on lines 43..48

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

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

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

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

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

        Refactorings

        Further Reading

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

            @Test
            fun guessItScreenIsDisplayed() {
                composeRule.onNodeWithTag("guessItRulesButton").performClick()
        
                composeRule.onNodeWithTag("topAppbarGuessItRules").assertIsDisplayed()
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 46..51
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 58..63
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 70..75
        app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 55..61
        app/src/androidTest/java/com/github/freeman/bootcamp/wordle/WordleRulseActivityTest.kt on lines 43..48

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

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

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

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

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

        Refactorings

        Further Reading

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

            @Test
            fun wordleRulesAreDisplayed(){
                composeRule.onNodeWithTag("wordleRulesScreen").assertIsDisplayed()
                composeRule.onNodeWithTag("how_to_play").assertIsDisplayed()
                composeRule.onNodeWithTag("wordleRulesText").assertIsDisplayed()
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 46..51
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 58..63
        app/src/androidTest/java/com/github/freeman/bootcamp/CreatePublicPrivateActivityTest.kt on lines 70..75
        app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 55..61
        app/src/androidTest/java/com/github/freeman/bootcamp/HelpTests.kt on lines 79..85

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

        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 TopAppbarCredits has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        @Composable
        fun TopAppbarCredits(context: Context = LocalContext.current) {
        
            TopAppBar(
                modifier = Modifier.testTag("topAppbarCredits"),
          Severity
          Category
          Status
          Source
          Language