phodal/growth

View on GitHub

Showing 225 of 225 total issues

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

describe('test user center', () => {
  it('renders correctly', () => {
    const tree = renderer.create(
      <ForumUserCenter />,
    );
__tests__/containers/community/community.test.js on lines 6..15
__tests__/containers/discover/discover.test.js on lines 6..15
__tests__/containers/practise/practise.test.js on lines 7..16
__tests__/index.test.js on lines 13..22

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

describe('test user center', () => {
  it('renders correctly', () => {
    const tree = renderer.create(
      <Community />,
    );
Severity: Major
Found in __tests__/containers/community/community.test.js and 4 other locations - About 2 hrs to fix
__tests__/containers/community/forum/forumUserCenter.test.js on lines 6..15
__tests__/containers/discover/discover.test.js on lines 6..15
__tests__/containers/practise/practise.test.js on lines 7..16
__tests__/index.test.js on lines 13..22

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

Function render has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const bookHtml = `
    <p>
      本书是我在编程生涯初期的一些体会,它更像是一本关于Web开发的索引书籍,但其实这些索引正是我读了大量书籍后,自己对精髓之处进行的理解加工。在这本书里,你会看到我对很多知识点进行了概括,并以实战的方式将一个个知识点连接到一起。</p>
    <p>在最开始的时候,我曾经想将书名命名为实习记。后来又觉得虽然这是在我实习期间学到的知识,但其实很多内容在其他公司是学不到的。因此,在电子书里将其命名为Growth,它不仅是在让读者增长,也在让我自己增长。</p>
Severity: Minor
Found in src/containers/home/paper/PaperIntroView.js - About 1 hr to fix

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

    it('renders correctly', () => {
      const recommendSimpleItem = renderer.create(
        <RecommendSimpleItem content={RECOMMEND_ARTICLES_LIST[0]} />,
      );
      const recommendSimpleItemJson = recommendSimpleItem.toJSON();
    __tests__/containers/discover/project-list/projectList.test.js on lines 7..13
    __tests__/containers/discover/roadmap-list/roadmapList.test.js on lines 7..13
    __tests__/containers/discover/toolbox-detail/toolBoxDetail.test.js on lines 12..18
    __tests__/containers/discover/toolbox-list/toolBoxList.test.js on lines 7..13

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

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

    it('renders correctly', () => {
      const projectList = renderer.create(
        <ProjectList dialogContent={TIPS[0]} />,
      );
      const projectListJson = projectList.toJSON();
    __tests__/components/discover/recommend-articles/view/recommendArticlesItem.test.js on lines 7..13
    __tests__/containers/discover/roadmap-list/roadmapList.test.js on lines 7..13
    __tests__/containers/discover/toolbox-detail/toolBoxDetail.test.js on lines 12..18
    __tests__/containers/discover/toolbox-list/toolBoxList.test.js on lines 7..13

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

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

    it('renders correctly', () => {
      const toolBoxList = renderer.create(
        <ToolBoxList dialogContent={TIPS[0]} />,
      );
      const toolBoxListJson = toolBoxList.toJSON();
    __tests__/components/discover/recommend-articles/view/recommendArticlesItem.test.js on lines 7..13
    __tests__/containers/discover/project-list/projectList.test.js on lines 7..13
    __tests__/containers/discover/roadmap-list/roadmapList.test.js on lines 7..13
    __tests__/containers/discover/toolbox-detail/toolBoxDetail.test.js on lines 12..18

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

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

    it('renders correctly', () => {
      const toolBoxDetail = renderer.create(
        <ToolBoxDetail dialogContent={TIPS[0]} />,
      );
      const toolBoxDetailJson = toolBoxDetail.toJSON();
    __tests__/components/discover/recommend-articles/view/recommendArticlesItem.test.js on lines 7..13
    __tests__/containers/discover/project-list/projectList.test.js on lines 7..13
    __tests__/containers/discover/roadmap-list/roadmapList.test.js on lines 7..13
    __tests__/containers/discover/toolbox-list/toolBoxList.test.js on lines 7..13

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

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

    it('renders correctly', () => {
      const roadmapList = renderer.create(
        <RoadmapList dialogContent={TIPS[0]} />,
      );
      const roadmapListJson = roadmapList.toJSON();
    __tests__/components/discover/recommend-articles/view/recommendArticlesItem.test.js on lines 7..13
    __tests__/containers/discover/project-list/projectList.test.js on lines 7..13
    __tests__/containers/discover/toolbox-detail/toolBoxDetail.test.js on lines 12..18
    __tests__/containers/discover/toolbox-list/toolBoxList.test.js on lines 7..13

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

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

      render() {
        const { loading } = this.state;
    
        if (loading) {
          return (<View
    Severity: Minor
    Found in src/containers/community/forum/ForumDetail.js - About 1 hr to fix

      Function render has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        render() {
          const hasDownloaded = this.state.hasDownloaded;
          const questions = this.state.questions;
      
          if (!hasDownloaded || !questions) {
      Severity: Minor
      Found in src/containers/practises/leetcode/LeetCodeView.js - About 1 hr to fix

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

          it('test render', () => {
            // eslint-disable-next-line no-unused-vars
            const tree = renderer.create(
              <SkillTree skillId={1} />,
            );
        Severity: Major
        Found in __tests__/containers/skill-tree/skillTree.test.js and 2 other locations - About 1 hr to fix
        __tests__/containers/comingSoon.test.js on lines 8..16
        __tests__/containers/home/home.test.js on lines 7..15

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

        it('renders correctly', () => {
          // eslint-disable-next-line no-unused-vars
          const tree = renderer.create(
            <ComingSoonView skillId={1} />,
          );
        Severity: Major
        Found in __tests__/containers/comingSoon.test.js and 2 other locations - About 1 hr to fix
        __tests__/containers/home/home.test.js on lines 7..15
        __tests__/containers/skill-tree/skillTree.test.js on lines 10..18

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

        it('renders correctly', () => {
          // eslint-disable-next-line no-unused-vars
          const tree = renderer.create(
            <Home skillId={1} />,
          );
        Severity: Major
        Found in __tests__/containers/home/home.test.js and 2 other locations - About 1 hr to fix
        __tests__/containers/comingSoon.test.js on lines 8..16
        __tests__/containers/skill-tree/skillTree.test.js on lines 10..18

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

          container: {
            name: '应用容器',
            achievement: '建筑学徒',
            basic: [
              {
        Severity: Major
        Found in src/constants/TODO_LISTS.js and 2 other locations - About 1 hr to fix
        src/constants/TODO_LISTS.js on lines 92..113
        src/constants/TODO_LISTS.js on lines 114..135

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

        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

          test: {
            name: '测试',
            achievement: '专业防水',
            basic: [
              {
        Severity: Major
        Found in src/constants/TODO_LISTS.js and 2 other locations - About 1 hr to fix
        src/constants/TODO_LISTS.js on lines 92..113
        src/constants/TODO_LISTS.js on lines 182..203

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 70.

        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

            <View style={styles.item}>
              <GridItem title="学习路线" iconName="icon-social" position={'left'} onclick={() => { Launch.roadmapList(); }} />
            </View>
        Severity: Major
        Found in src/components/home/GrowthSlider.js and 5 other locations - About 1 hr to fix
        src/components/home/GrowthSlider.js on lines 28..30
        src/components/home/GrowthSlider.js on lines 34..36
        src/components/home/GrowthSlider.js on lines 37..39
        src/components/home/GrowthSlider.js on lines 40..42
        src/components/home/GrowthSlider.js on lines 43..45

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

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

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

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

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

        Refactorings

        Further Reading

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

          build: {
            title: '构建系统',
            intros: [
              {
                info: { slug: 'build', type: 'desc' },
        Severity: Major
        Found in src/constants/sections/section-1.js and 1 other location - About 1 hr to fix
        __tests__/containers/home/sectionArticleTab.test.js on lines 9..25

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

        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

            <View style={styles.item}>
              <GridItem title="读书路线" iconName="explore-2-3" position={'left'} onclick={() => { Launch.thoughtworksBooks(); }} />
            </View>
        Severity: Major
        Found in src/components/home/GrowthSlider.js and 5 other locations - About 1 hr to fix
        src/components/home/GrowthSlider.js on lines 28..30
        src/components/home/GrowthSlider.js on lines 31..33
        src/components/home/GrowthSlider.js on lines 34..36
        src/components/home/GrowthSlider.js on lines 37..39
        src/components/home/GrowthSlider.js on lines 43..45

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

        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

            <View style={styles.item}>
              <GridItem title="更多" iconName="explore-2-1" position={'left'} onclick={() => { Actions.discover(); }} />
            </View>
        Severity: Major
        Found in src/components/home/GrowthSlider.js and 5 other locations - About 1 hr to fix
        src/components/home/GrowthSlider.js on lines 28..30
        src/components/home/GrowthSlider.js on lines 31..33
        src/components/home/GrowthSlider.js on lines 34..36
        src/components/home/GrowthSlider.js on lines 37..39
        src/components/home/GrowthSlider.js on lines 40..42

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

        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

          env: {
            name: '环境搭建',
            achievement: '心旷神怡',
            basic: [
              {
        Severity: Major
        Found in src/constants/TODO_LISTS.js and 2 other locations - About 1 hr to fix
        src/constants/TODO_LISTS.js on lines 114..135
        src/constants/TODO_LISTS.js on lines 182..203

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 70.

        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