WikiEducationFoundation/WikiEduDashboard

View on GitHub

Showing 1,672 of 1,672 total issues

Function course has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function course(state = initialState, action) {
  switch (action.type) {
    case TOGGLE_SCOPING_METHOD: {
      if (state.selected.includes(action.method)) {
        return {
Severity: Major
Found in app/assets/javascripts/reducers/scoping_methods.js - About 2 hrs to fix

    Function YesNoSelector has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const YesNoSelector = (props) => {
        const initialState = props.course[props.courseProperty] ? I18n.t('application.opt_yes') : I18n.t('application.opt_no');
        const [selectedOption, setSelectedOption] = useState({ value: initialState, label: initialState });
    
      const _handleChange = (e) => {
    Severity: Major
    Found in app/assets/javascripts/components/overview/yes_no_selector.jsx - About 2 hrs to fix

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

        render() {
          let description;
            if (this.props.source === 'pileid') {
              description = (
                <p>
      Severity: Major
      Found in app/assets/javascripts/components/categories/add_category_button.jsx - About 2 hrs to fix

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

        export const getCampaign = slug => (dispatch) => {
          return (
            getCampaignPromise(slug)
              .then((resp) => {
                dispatch({
        Severity: Major
        Found in app/assets/javascripts/actions/campaign_view_actions.js and 2 other locations - About 2 hrs to fix
        app/assets/javascripts/actions/campaign_actions.js on lines 17..28
        app/assets/javascripts/actions/tag_actions.js on lines 16..27

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

        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

                <div className= "stat-display__stat">
                  <div className="stat-display__value">
                    {stats.individual_article_views}
                  </div>
                  <small>
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 30..37
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 38..45
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 46..53
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 42..49
        app/assets/javascripts/components/user_profiles/student_stats.jsx 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 86.

        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

                <div className= "stat-display__stat">
                  <div className="stat-display__value">
                    {stats.article_count}
                  </div>
                  <small>
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 30..37
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 46..53
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 34..41
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 42..49
        app/assets/javascripts/components/user_profiles/student_stats.jsx 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 86.

        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

                <div className= "stat-display__stat">
                  <div className="stat-display__value">
                    {stats.individual_article_count}
                  </div>
                  <small>
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 30..37
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 38..45
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 46..53
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 34..41
        app/assets/javascripts/components/user_profiles/student_stats.jsx 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 86.

        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

                <div className= "stat-display__stat">
                  <div className="stat-display__value">
                    {stats.new_article_count}
                  </div>
                  <small>
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 30..37
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 38..45
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 34..41
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 42..49
        app/assets/javascripts/components/user_profiles/student_stats.jsx 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 86.

        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

          async supplement(args) {
            const response = await request('/onboarding/supplementary', {
              method: 'PUT',
              body: JSON.stringify(args)
            });
        Severity: Major
        Found in app/assets/javascripts/utils/onboarding_utils.js and 1 other location - About 2 hrs to fix
        app/assets/javascripts/utils/onboarding_utils.js on lines 7..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 86.

        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

        export const fetchTags = courseId => (dispatch) => {
          return (
            fetchTagsPromise(courseId)
              .then((data) => {
                dispatch({
        Severity: Major
        Found in app/assets/javascripts/actions/tag_actions.js and 2 other locations - About 2 hrs to fix
        app/assets/javascripts/actions/campaign_actions.js on lines 17..28
        app/assets/javascripts/actions/campaign_view_actions.js on lines 22..33

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

        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

        export const fetchCampaigns = courseId => (dispatch) => {
          return (
            fetchCampaignsPromise(courseId)
              .then((data) => {
                dispatch({
        Severity: Major
        Found in app/assets/javascripts/actions/campaign_actions.js and 2 other locations - About 2 hrs to fix
        app/assets/javascripts/actions/campaign_view_actions.js on lines 22..33
        app/assets/javascripts/actions/tag_actions.js on lines 16..27

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

        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

                <div className= "stat-display__stat">
                  <div className="stat-display__value">
                    {stats.view_sum}
                  </div>
                  <small>
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 38..45
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 46..53
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 34..41
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 42..49
        app/assets/javascripts/components/user_profiles/student_stats.jsx 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 86.

        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

          return grantSpecialUserPromise(username, false, position)
            .then(() => {
              dispatch(addNotification({
                type: 'success',
                message: `${username} was removed as ${position}.`,
        Severity: Major
        Found in app/assets/javascripts/actions/settings_actions.js and 1 other location - About 2 hrs to fix
        app/assets/javascripts/actions/settings_actions.js on lines 218..254

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

        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

          async onboard(args) {
            const response = await request('/onboarding/onboard', {
              method: 'PUT',
              body: JSON.stringify(args)
            });
        Severity: Major
        Found in app/assets/javascripts/utils/onboarding_utils.js and 1 other location - About 2 hrs to fix
        app/assets/javascripts/utils/onboarding_utils.js on lines 20..31

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 86.

        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

                <div className= "stat-display__stat">
                  <div className="stat-display__value">
                    {stats.individual_articles_created}
                  </div>
                  <small>
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 30..37
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 38..45
        app/assets/javascripts/components/user_profiles/by_students_stats.jsx on lines 46..53
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 34..41
        app/assets/javascripts/components/user_profiles/student_stats.jsx on lines 42..49

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

        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

          return grantAdminPromise(username, true)
            .then(() => {
              dispatch({
                type: SUBMITTING_NEW_ADMIN,
                data: {
        Severity: Major
        Found in app/assets/javascripts/actions/settings_actions.js and 1 other location - About 2 hrs to fix
        app/assets/javascripts/actions/settings_actions.js on lines 161..204

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

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

        const ArticlesHandler = (props) => {
          const [loading, setLoading] = useState(true);
        
          useEffect(() => {
            delayFetchAssignmentsAndArticles(props, () => setLoading(false));
        Severity: Major
        Found in app/assets/javascripts/components/articles/articles_handler.jsx - About 2 hrs to fix

          File course_form.jsx has 271 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          import React from 'react';
          import TextAreaInput from '../common/text_area_input.jsx';
          import CreatableInput from '../common/creatable_input.jsx';
          import TextInput from '../common/text_input.jsx';
          import CourseLevelSelector from './course_level_selector.jsx';
          Severity: Minor
          Found in app/assets/javascripts/components/course_creator/course_form.jsx - About 2 hrs to fix

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

            const fetchAllTagsPromise = async () => {
              const response = await request('/lookups/tag.json');
              if (!response.ok) {
                logErrorMessage(response);
                const data = await response.text();
            Severity: Major
            Found in app/assets/javascripts/actions/tag_actions.js and 7 other locations - About 2 hrs to fix
            app/assets/javascripts/actions/campaign_actions.js on lines 86..95
            app/assets/javascripts/actions/settings_actions.js on lines 15..24
            app/assets/javascripts/actions/settings_actions.js on lines 334..343
            app/assets/javascripts/actions/settings_actions.js on lines 385..395
            app/assets/javascripts/actions/settings_actions.js on lines 459..468
            app/assets/javascripts/actions/training_actions.js on lines 11..20
            app/assets/javascripts/actions/wizard_actions.js on lines 21..30

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

            const fetchCourseCreationSettingsPromise = async () => {
              const response = await request('/settings/course_creation');
              if (!response.ok) {
                logErrorMessage(response);
                const data = await response.text();
            Severity: Major
            Found in app/assets/javascripts/actions/settings_actions.js and 7 other locations - About 2 hrs to fix
            app/assets/javascripts/actions/campaign_actions.js on lines 86..95
            app/assets/javascripts/actions/settings_actions.js on lines 15..24
            app/assets/javascripts/actions/settings_actions.js on lines 385..395
            app/assets/javascripts/actions/settings_actions.js on lines 459..468
            app/assets/javascripts/actions/tag_actions.js on lines 29..38
            app/assets/javascripts/actions/training_actions.js on lines 11..20
            app/assets/javascripts/actions/wizard_actions.js on lines 21..30

            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

            Severity
            Category
            Status
            Source
            Language