Playhi/FreezeYou

View on GitHub
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt

Summary

Maintainability
D
2 days
Test Coverage

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

    notificationBarDisableClickDisappear {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.disableClickDisappear
        override fun category(): Int =
            CATEGORY_SETTINGS or CATEGORY_SETTINGS_NOTIFICATION or CATEGORY_SETTINGS_NOTIFICATION_FUF
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 135..140
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 142..147

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

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

    notificationBarFreezeImmediately {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.notificationBarFreezeImmediately
        override fun category(): Int =
            CATEGORY_SETTINGS or CATEGORY_SETTINGS_NOTIFICATION or CATEGORY_SETTINGS_NOTIFICATION_FUF
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 135..140
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 156..161

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

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

    createQuickFUFNotiAfterUnfrozen {
        override fun defaultValue(): Boolean = true
        override fun titleTextStringId(): Int = R.string.createQuickFUFNotiAfterUnfrozen
        override fun category(): Int =
            CATEGORY_SETTINGS or CATEGORY_SETTINGS_NOTIFICATION or CATEGORY_SETTINGS_NOTIFICATION_FUF
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 142..147
app/src/main/java/cf/playhi/freezeyou/storage/key/DefaultMultiProcessMMKVStorageBooleanKeys.kt on lines 156..161

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

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

    freezeOnceQuit {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.freezeOnceQuit
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_AUTOMATION
    },
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 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
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

    openImmediately {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.openImmediately
        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 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

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

    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

    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

    openAndUFImmediately {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.openAndUFImmediately
        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 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

    onekeyFreezeWhenLockScreen {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.freezeAfterScreenLock
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_AUTOMATION
    },
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 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
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

    debugModeEnabled {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.debugMode
        override fun category(): Int = CATEGORY_SETTINGS or CATEGORY_SETTINGS_ADVANCE
    },
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
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

    lesserToast {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.lesserToast
        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 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

    includeFUFActivityInRecents {
        override fun defaultValue(): Boolean = false
        override fun titleTextStringId(): Int = R.string.includeFUFActivityInRecents
        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 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

    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

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

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

There are no issues that match your filters.

Category
Status