Playhi/FreezeYou

View on GitHub

Showing 285 of 313 total issues

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

    needConfirmWhenFreezeUseShortcutAutoFUF {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.needCfmWhenFreeze
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_FREEZE_AND_UNFREEZE
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 45..49
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 69..73
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 75..79
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 93..97
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 117..121
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 129..133
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 39..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 81.

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

    avoidFreezeNotifyingApplications {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.avoidFreezeNotifyingApplications
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_FREEZE_AND_UNFREEZE
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 45..49
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 69..73
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 93..97
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 99..103
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 117..121
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 129..133
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 39..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 81.

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

    cacheApplicationsIcons {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.cacheApplicationsIcons
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_COMMON
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 45..49
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 69..73
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 75..79
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 93..97
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 99..103
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 117..121
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 129..133
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31

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

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

    tryDelApkAfterInstalled {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.tryDelApkAfterInstalled
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_INSTALL_UNINSTALL
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 45..49
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 69..73
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 75..79
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 93..97
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 99..103
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 129..133
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 39..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 81.

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

    avoidFreezeForegroundApplications {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.avoidFreezeForegroundApplications
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_FREEZE_AND_UNFREEZE
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 45..49
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 75..79
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 93..97
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 99..103
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 117..121
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 129..133
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 39..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 81.

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

    tryToAvoidUpdateWhenUsing {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.tryToAvoidUpdateWhenUsing
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_INSTALL_UNINSTALL
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 45..49
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 69..73
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 75..79
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 93..97
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 99..103
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 117..121
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 39..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 81.

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

    shortcutAutoFUF {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.shortcutAutoFUF
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_FREEZE_AND_UNFREEZE
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 45..49
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 69..73
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 75..79
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 99..103
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 117..121
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 129..133
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 39..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 81.

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

    useForegroundService {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.useForegroundService
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_BACKGROUND_SERVICE
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 69..73
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 75..79
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 93..97
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 99..103
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 117..121
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 129..133
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 39..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 81.

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

    noCaution {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.nSCaution
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_COMMON
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 21..25
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 33..37
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 39..43
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 45..49
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 57..61
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 63..67
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 69..73
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 75..79
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 81..85
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 87..91
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 93..97
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 99..103
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 117..121
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 129..133
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 27..31
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 39..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 81.

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

    openImmediatelyAfterUnfreezeUseShortcutAutoFUF {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.openImmediatelyAfterUF
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_FREEZE_AND_UNFREEZE
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 51..55
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 111..115
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 123..127
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 15..19
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 33..37

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

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

    playFUFAnimations {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.playFUFAnimations
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_FREEZE_AND_UNFREEZE
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 51..55
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 105..109
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 123..127
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 15..19
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 33..37

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

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

    saveSortMethodStatus {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.saveSortMethodStatus
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_COMMON
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 51..55
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 105..109
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 111..115
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 123..127
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 15..19

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

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

    showInRecents {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.showInRecents
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_COMMON
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 105..109
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 111..115
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 123..127
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 15..19
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 33..37

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

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

    notAllowInstallWhenIsObsd {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.notAllowWhenIsObsd
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_INSTALL_UNINSTALL
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 51..55
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 105..109
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 111..115
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 15..19
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 33..37

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

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

    allowEditWhenCreateShortcut {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.allowEditWhCreateShortcut
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_COMMON
    },
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 51..55
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 105..109
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 111..115
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 123..127
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 33..37

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

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

                    1 -> requestOpenWebSite(
                        this@AboutActivity, String.format(
                            "https://www.zidon.net/%1\$s/faq/",
                            getString(R.string.correspondingAndAvailableWebsiteUrlLanguageCode)
                        )
Severity: Minor
Found in app/src/main/java/cf/playhi/freezeyou/ui/AboutActivity.kt and 1 other location - About 50 mins to fix
app/src/main/java/cf/playhi/freezeyou/ui/AboutActivity.kt on lines 67..72

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

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

                    3 -> requestOpenWebSite(
                        this@AboutActivity, String.format(
                            "https://www.zidon.net/%1\$s/thanks/",
                            getString(R.string.correspondingAndAvailableWebsiteUrlLanguageCode)
                        )
Severity: Minor
Found in app/src/main/java/cf/playhi/freezeyou/ui/AboutActivity.kt and 1 other location - About 50 mins to fix
app/src/main/java/cf/playhi/freezeyou/ui/AboutActivity.kt on lines 57..62

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

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

    enableInstallPkgFunc {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.enableInstallPkgFunc
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_INSTALL_UNINSTALL
    };
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 163..167

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

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

    enableAuthentication {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.enableAuthentication
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_SECURITY
    };
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultSharedPreferenceStorageBooleanKeys.kt on lines 63..67

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

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

                                    FUFUtils.checkRootPermission()) {
                                ServiceUtils.startService(
                                        InstallPackagesActivity.this,
                                        new Intent(InstallPackagesActivity.this,
                                                InstallPackagesService.class)
app/src/main/java/cf/playhi/freezeyou/ui/InstallPackagesActivity.java on lines 541..552

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

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