ethanneff/example

View on GitHub

Showing 120 of 120 total issues

Function Day has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const Day = () => {
  const { goBack } = useNavigation();
  const colors = useColors();

  return (
Severity: Minor
Found in src/apps/DeepWork/Day.tsx - About 1 hr to fix

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

          {showModal.settings ? (
            <Modal
              duration={2000}
              onBackgroundPress={handleModalBackgroundPress}
              showOverlay
    Severity: Minor
    Found in src/apps/CantHurtMe/Home.tsx and 1 other location - About 55 mins to fix
    src/apps/CantHurtMe/Home.tsx on lines 35..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 54.

    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

          {showModal.profile ? (
            <Modal
              duration={2000}
              onBackgroundPress={handleModalBackgroundPress}
              showOverlay
    Severity: Minor
    Found in src/apps/CantHurtMe/Home.tsx and 1 other location - About 55 mins to fix
    src/apps/CantHurtMe/Home.tsx on lines 44..52

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

    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

    Function Crash has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

    export const Crash = () => {
      const colors = useColors();
      const { goBack } = useNavigation();
    
      const [playerGame, setPlayerGame] = useState<PlayerGame>({
    Severity: Minor
    Found in src/apps/Playground/Games/Crash/index.tsx - About 55 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function LapsTable has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

    export const LapsTable = ({ laps, timer }: LapTableProperties) => {
      const finishedLaps = laps.slice(1);
      let min = Number.MAX_SAFE_INTEGER;
      let max = Number.MIN_SAFE_INTEGER;
      if (finishedLaps.length >= 2)
    Severity: Minor
    Found in src/apps/Playground/Creations/AppleStopwatch/LapsTable.tsx - About 55 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

      it('logout', () => {
        expect.hasAssertions();
        expect(
          themeReducer(themeInitialState, {
            type: getType(logout),
    Severity: Major
    Found in src/redux/reducers/Theme/__tests__/index.tsx and 2 other locations - About 55 mins to fix
    src/redux/reducers/Device/__tests__/index.tsx on lines 102..109
    src/redux/reducers/Theme/__tests__/index.tsx on lines 50..57

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

    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

      it('loginRequest', () => {
        expect.hasAssertions();
        expect(
          themeReducer(undefined, {
            type: getType(loginRequest),
    Severity: Major
    Found in src/redux/reducers/Theme/__tests__/index.tsx and 2 other locations - About 55 mins to fix
    src/redux/reducers/Device/__tests__/index.tsx on lines 102..109
    src/redux/reducers/Theme/__tests__/index.tsx on lines 41..48

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 53.

    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

      it('logout', () => {
        expect.hasAssertions();
        expect(
          deviceReducer(deviceInitialState, {
            type: getType(logout),
    Severity: Major
    Found in src/redux/reducers/Device/__tests__/index.tsx and 2 other locations - About 55 mins to fix
    src/redux/reducers/Theme/__tests__/index.tsx on lines 41..48
    src/redux/reducers/Theme/__tests__/index.tsx on lines 50..57

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

    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

    export const AppleFit = () => {
      const { goBack } = useNavigation();
    
      return (
        <Screen
    Severity: Major
    Found in src/apps/Playground/Creations/AppleFit/index.web.tsx and 3 other locations - About 50 mins to fix
    src/apps/Playground/Games/Drift/index.web.tsx on lines 5..14
    src/apps/Playground/Games/SlotMachine/index.web.tsx on lines 5..14
    src/apps/Playground/Games/Snake/index.web.tsx on lines 5..14

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

    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

          <ScrollView
            contentContainerStyle={{ gap: spacing(4), padding: spacing(4) }}
            style={{ backgroundColor: colors.background.secondary }}
          >
            <Card>
    Severity: Major
    Found in src/apps/Playground/Creations/OKRs/index.tsx and 5 other locations - About 50 mins to fix
    src/apps/Journal/Home.tsx on lines 31..170
    src/apps/Playground/Components/Inputs/index.tsx on lines 49..165
    src/apps/Playground/Creations/Startup/index.tsx on lines 112..183
    src/apps/Playground/Creations/WeekendPlanner/index.tsx on lines 133..242
    src/apps/Playground/Games/Crash/index.tsx on lines 128..231

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

    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

            <ScrollView
              contentContainerStyle={{
                gap: spacing(4),
                padding: spacing(4),
              }}
    Severity: Major
    Found in src/apps/Playground/Creations/WeekendPlanner/index.tsx and 5 other locations - About 50 mins to fix
    src/apps/Journal/Home.tsx on lines 31..170
    src/apps/Playground/Components/Inputs/index.tsx on lines 49..165
    src/apps/Playground/Creations/OKRs/index.tsx on lines 16..136
    src/apps/Playground/Creations/Startup/index.tsx on lines 112..183
    src/apps/Playground/Games/Crash/index.tsx on lines 128..231

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

    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

    export const Drift = () => {
      const { goBack } = useNavigation();
    
      return (
        <Screen
    Severity: Major
    Found in src/apps/Playground/Games/Drift/index.web.tsx and 3 other locations - About 50 mins to fix
    src/apps/Playground/Creations/AppleFit/index.web.tsx on lines 5..14
    src/apps/Playground/Games/SlotMachine/index.web.tsx on lines 5..14
    src/apps/Playground/Games/Snake/index.web.tsx on lines 5..14

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

    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

          <ScrollView
            contentContainerStyle={{
              gap: spacing(4),
              padding: spacing(4),
            }}
    Severity: Major
    Found in src/apps/Playground/Games/Crash/index.tsx and 5 other locations - About 50 mins to fix
    src/apps/Journal/Home.tsx on lines 31..170
    src/apps/Playground/Components/Inputs/index.tsx on lines 49..165
    src/apps/Playground/Creations/OKRs/index.tsx on lines 16..136
    src/apps/Playground/Creations/Startup/index.tsx on lines 112..183
    src/apps/Playground/Creations/WeekendPlanner/index.tsx on lines 133..242

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

    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

          <ScrollView
            contentContainerStyle={{
              gap: spacing(4),
              padding: spacing(4),
            }}
    Severity: Major
    Found in src/apps/Journal/Home.tsx and 5 other locations - About 50 mins to fix
    src/apps/Playground/Components/Inputs/index.tsx on lines 49..165
    src/apps/Playground/Creations/OKRs/index.tsx on lines 16..136
    src/apps/Playground/Creations/Startup/index.tsx on lines 112..183
    src/apps/Playground/Creations/WeekendPlanner/index.tsx on lines 133..242
    src/apps/Playground/Games/Crash/index.tsx on lines 128..231

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

    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

    export const SlotMachine = () => {
      const { goBack } = useNavigation();
    
      return (
        <Screen
    Severity: Major
    Found in src/apps/Playground/Games/SlotMachine/index.web.tsx and 3 other locations - About 50 mins to fix
    src/apps/Playground/Creations/AppleFit/index.web.tsx on lines 5..14
    src/apps/Playground/Games/Drift/index.web.tsx on lines 5..14
    src/apps/Playground/Games/Snake/index.web.tsx on lines 5..14

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

    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

    export const Snake = () => {
      const { goBack } = useNavigation();
    
      return (
        <Screen
    Severity: Major
    Found in src/apps/Playground/Games/Snake/index.web.tsx and 3 other locations - About 50 mins to fix
    src/apps/Playground/Creations/AppleFit/index.web.tsx on lines 5..14
    src/apps/Playground/Games/Drift/index.web.tsx on lines 5..14
    src/apps/Playground/Games/SlotMachine/index.web.tsx on lines 5..14

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

    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

          <KeyboardAwareScrollView
            contentContainerStyle={{ gap: spacing(4), padding: spacing(4) }}
            style={{ backgroundColor: colors.background.secondary }}
          >
            <Text
    Severity: Major
    Found in src/apps/Playground/Creations/Startup/index.tsx and 5 other locations - About 50 mins to fix
    src/apps/Journal/Home.tsx on lines 31..170
    src/apps/Playground/Components/Inputs/index.tsx on lines 49..165
    src/apps/Playground/Creations/OKRs/index.tsx on lines 16..136
    src/apps/Playground/Creations/WeekendPlanner/index.tsx on lines 133..242
    src/apps/Playground/Games/Crash/index.tsx on lines 128..231

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

    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

          <KeyboardAwareScrollView
            contentContainerStyle={{
              gap: spacing(4),
              padding: spacing(4),
            }}
    Severity: Major
    Found in src/apps/Playground/Components/Inputs/index.tsx and 5 other locations - About 50 mins to fix
    src/apps/Journal/Home.tsx on lines 31..170
    src/apps/Playground/Creations/OKRs/index.tsx on lines 16..136
    src/apps/Playground/Creations/Startup/index.tsx on lines 112..183
    src/apps/Playground/Creations/WeekendPlanner/index.tsx on lines 133..242
    src/apps/Playground/Games/Crash/index.tsx on lines 128..231

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

    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

                <Button
                  color={playerGame.activeTab === 'auto' ? 'accent' : 'primaryA'}
                  emphasis="medium"
                  onPress={handleTabPress('auto')}
                  title="auto"
    Severity: Minor
    Found in src/apps/Playground/Games/Crash/index.tsx and 1 other location - About 40 mins to fix
    src/apps/Playground/Games/Crash/index.tsx on lines 149..154

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

    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

                <Button
                  color={playerGame.activeTab === 'manual' ? 'accent' : 'primaryA'}
                  emphasis="medium"
                  onPress={handleTabPress('manual')}
                  title="manual"
    Severity: Minor
    Found in src/apps/Playground/Games/Crash/index.tsx and 1 other location - About 40 mins to fix
    src/apps/Playground/Games/Crash/index.tsx 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 49.

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

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

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

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

    Refactorings

    Further Reading

    Severity
    Category
    Status
    Source
    Language