teamdigitale/italia-app

View on GitHub
ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts

Summary

Maintainability
F
1 wk
Test Coverage

File featureFlagWithMinAppVersionStatus.test.ts has 493 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import * as O from "fp-ts/lib/Option";
import DeviceInfo from "react-native-device-info";
import { BackendStatus } from "../../../../definitions/content/BackendStatus";
import { isPropertyWithMinAppVersionEnabled } from "../featureFlagWithMinAppVersionStatus";

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

      it("should return (fastlogin - opt_in) enabled --- eq min version & local flag enabled & optional config eq min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) disabled --- > min version & local flag enabled & optional config eq min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "3.0.0.0", android: "3.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag enabled & optional config > min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.9.9.9", android: "2.9.9.9" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag enabled & optional config eq min version & optional local flag disabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag enabled & optional config < min version & optional local flag disabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "1.0.0.0", android: "1.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) enabled --- < min version & local flag enabled & optional config eq min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "1.0.0.0", android: "1.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag disabled & optional config eq min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag enabled & optional config > min version & optional local flag disabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.9.9.9", android: "2.9.9.9" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) enabled --- eq min version & local flag enabled & optional config < min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "1.9.9.9", android: "1.9.9.9" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) disabled --- < min version & local flag disabled & optional config eq min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "1.0.0.0", android: "1.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 398..414
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin - opt_in) disabled --- > min version & local flag disabled & optional config eq min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "3.0.0.0", android: "3.0.0.0" },
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 236..252
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 254..270
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 272..288
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 290..306
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 308..324
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 326..342
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 344..360
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 362..378
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 380..396
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 450..466

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 107.

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

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

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

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

    Refactorings

    Further Reading

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

      it("should return (fastlogin) enabled --- eq min version & local flag enabled & optional config < min version", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "1.0.0.0", android: "1.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 172..186
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 204..218
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 220..234

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

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

      it("should return (fastlogin) enabled --- eq min version & local flag enabled & optional config > min version", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {
            min_app_version: { ios: "3.0.0.0", android: "3.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 188..202
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 204..218
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 220..234

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

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

      it("should return (fastlogin) disabled --- > min version & local flag enabled & optional config > min version", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "3.0.0.0", android: "3.0.0.0" },
          opt_in: {
            min_app_version: { ios: "3.0.0.0", android: "3.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 172..186
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 188..202
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 204..218

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

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

      it("should return (fastlogin) disabled --- > min version & local flag enabled & optional config < min version", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "3.0.0.0", android: "3.0.0.0" },
          opt_in: {
            min_app_version: { ios: "1.0.0.0", android: "1.0.0.0" }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 172..186
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 188..202
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 220..234

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

    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

      it("should return (fastlogin - opt_in) disabled --- min version undefined & local flag disabled & optional config eq min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
          }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 416..431

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

    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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag enabled & optional config (only min_app_version) undefined & optional local flag disabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {}
        });
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 483..497

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

    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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag enabled & optional config (only min_app_version) undefined & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" },
          opt_in: {}
        });
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 514..528

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

    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

      it("should return (fastlogin - opt_in) disabled --- min version undefined & local flag enabled & optional config eq min version & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          opt_in: {
            min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
          }
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 433..448

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

    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

      it("should return (nativelogin) disabled --- nativelogin undefined & local flag enabled", () => {
        const store = O.some({
          config: {}
        }) as unknown as O.Option<BackendStatus>;
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 132..143

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

      it("should return (nativelogin) disabled --- nativelogin undefined & local flag disabled", () => {
        const store = O.some({
          config: {}
        }) as unknown as O.Option<BackendStatus>;
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 119..130

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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag enabled & optional config undefined & optional local flag enabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 499..512

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

    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

      it("should return (fastlogin - opt_in) disabled --- eq min version & local flag enabled & optional config undefined & optional local flag disabled", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 468..481

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

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

      it("should return (nativelogin) disabled --- < min version & local flag disabled", () => {
        const store = customConfigNativeLogin({
          min_app_version: { ios: "1.0.0.0", android: "1.0.0.0" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 19..30
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 32..43
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 45..56
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 58..69
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 84..95
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 159..170

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

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

      it("should return (nativelogin) enabled --- < min version & local flag enabled", () => {
        const store = customConfigNativeLogin({
          min_app_version: { ios: "1.1.1.1", android: "1.1.1.1" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 19..30
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 45..56
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 58..69
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 71..82
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 84..95
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 159..170

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

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

      it("should return (nativelogin) enabled --- eq min version & local flag enabled", () => {
        const store = customConfigNativeLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 32..43
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 45..56
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 58..69
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 71..82
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 84..95
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 159..170

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

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

      it("should return (nativelogin) disabled --- eq min version & local flag disabled", () => {
        const store = customConfigNativeLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 19..30
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 32..43
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 45..56
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 71..82
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 84..95
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 159..170

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

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

      it("should return (nativelogin) disabled --- > min version & local flag disabled", () => {
        const store = customConfigNativeLogin({
          min_app_version: { ios: "3.0.0.0", android: "3.0.0.0" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 19..30
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 32..43
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 45..56
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 58..69
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 71..82
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 159..170

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

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

      it("should return (fastlogin) enabled --- eq min version & local flag enabled & optional config undefined", () => {
        const store = customConfigFastLogin({
          min_app_version: { ios: "2.0.0.0", android: "2.0.0.0" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 19..30
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 32..43
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 45..56
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 58..69
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 71..82
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 84..95

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

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

      it("should return (nativelogin) disabled --- > min version & local flag enabled", () => {
        const store = customConfigNativeLogin({
          min_app_version: { ios: "2.0.0.1", android: "2.0.0.1" }
        });
        expect(
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 19..30
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 32..43
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 58..69
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 71..82
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 84..95
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 159..170

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

    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

      const customConfigFastLogin = (
        fastLoginConfig: object
      ): O.Option<BackendStatus> =>
        O.some({
          config: {
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 10..17

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

    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

      const customConfigNativeLogin = (
        nativeLoginConfig: object
      ): O.Option<BackendStatus> =>
        O.some({
          config: {
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 150..157

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

    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

      it("should return (nativelogin) disabled --- min version undefined & local flag enabled", () => {
        const store = customConfigNativeLogin({});
        expect(
          isPropertyWithMinAppVersionEnabled({
            backendStatus: store,
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 97..106

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 59.

    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

      it("should return (nativelogin) disabled --- min version undefined & local flag disabled", () => {
        const store = customConfigNativeLogin({});
        expect(
          isPropertyWithMinAppVersionEnabled({
            backendStatus: store,
    ts/store/reducers/__tests__/featureFlagWithMinAppVersionStatus.test.ts on lines 108..117

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

    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