sonntagsgesicht/auxilium

View on GitHub

Showing 105 of 105 total issues

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

    parser.add_argument(
        '--header',
        action='store_const',
        const=not config.getboolean('deployment', 'header', fallback=True),
        default=config.getboolean('deployment', 'header', fallback=True),
Severity: Major
Found in auxilium/add_arguments/build.py and 15 other locations - About 2 hrs to fix
auxilium/add_arguments/build.py on lines 64..69
auxilium/add_arguments/build.py on lines 86..91
auxilium/add_arguments/doc.py on lines 33..38
auxilium/add_arguments/doc.py on lines 39..44
auxilium/add_arguments/doc.py on lines 45..50
auxilium/add_arguments/doc.py on lines 51..56
auxilium/add_arguments/doc.py on lines 57..62
auxilium/add_arguments/doc.py on lines 63..68
auxilium/add_arguments/test.py on lines 51..56
auxilium/add_arguments/test.py on lines 57..62
auxilium/add_arguments/test.py on lines 63..68
auxilium/add_arguments/update.py on lines 31..36
auxilium/add_arguments/update.py on lines 37..42
auxilium/add_arguments/update.py on lines 43..48
auxilium/add_arguments/update.py on lines 49..54

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

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

    parser.add_argument(
        '--show',
        action='store_const',
        const=not config.getboolean('doc', 'show', fallback=False),
        default=config.getboolean('doc', 'show', fallback=False),
Severity: Major
Found in auxilium/add_arguments/doc.py and 15 other locations - About 2 hrs to fix
auxilium/add_arguments/build.py on lines 26..31
auxilium/add_arguments/build.py on lines 64..69
auxilium/add_arguments/build.py on lines 86..91
auxilium/add_arguments/doc.py on lines 33..38
auxilium/add_arguments/doc.py on lines 39..44
auxilium/add_arguments/doc.py on lines 45..50
auxilium/add_arguments/doc.py on lines 51..56
auxilium/add_arguments/doc.py on lines 63..68
auxilium/add_arguments/test.py on lines 51..56
auxilium/add_arguments/test.py on lines 57..62
auxilium/add_arguments/test.py on lines 63..68
auxilium/add_arguments/update.py on lines 31..36
auxilium/add_arguments/update.py on lines 37..42
auxilium/add_arguments/update.py on lines 43..48
auxilium/add_arguments/update.py on lines 49..54

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

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

    parser.add_argument(
        '--security',
        action='store_const',
        const=not config.getboolean('test', 'security', fallback=True),
        default=config.getboolean('test', 'security', fallback=True),
Severity: Major
Found in auxilium/add_arguments/test.py and 15 other locations - About 2 hrs to fix
auxilium/add_arguments/build.py on lines 26..31
auxilium/add_arguments/build.py on lines 64..69
auxilium/add_arguments/build.py on lines 86..91
auxilium/add_arguments/doc.py on lines 33..38
auxilium/add_arguments/doc.py on lines 39..44
auxilium/add_arguments/doc.py on lines 45..50
auxilium/add_arguments/doc.py on lines 51..56
auxilium/add_arguments/doc.py on lines 57..62
auxilium/add_arguments/doc.py on lines 63..68
auxilium/add_arguments/test.py on lines 51..56
auxilium/add_arguments/test.py on lines 63..68
auxilium/add_arguments/update.py on lines 31..36
auxilium/add_arguments/update.py on lines 37..42
auxilium/add_arguments/update.py on lines 43..48
auxilium/add_arguments/update.py on lines 49..54

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

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

    parser.add_argument(
        '--pdf',
        action='store_const',
        const=not config.getboolean('doc', 'pdf', fallback=False),
        default=config.getboolean('doc', 'pdf', fallback=False),
Severity: Major
Found in auxilium/add_arguments/doc.py and 15 other locations - About 2 hrs to fix
auxilium/add_arguments/build.py on lines 26..31
auxilium/add_arguments/build.py on lines 64..69
auxilium/add_arguments/build.py on lines 86..91
auxilium/add_arguments/doc.py on lines 33..38
auxilium/add_arguments/doc.py on lines 39..44
auxilium/add_arguments/doc.py on lines 45..50
auxilium/add_arguments/doc.py on lines 57..62
auxilium/add_arguments/doc.py on lines 63..68
auxilium/add_arguments/test.py on lines 51..56
auxilium/add_arguments/test.py on lines 57..62
auxilium/add_arguments/test.py on lines 63..68
auxilium/add_arguments/update.py on lines 31..36
auxilium/add_arguments/update.py on lines 37..42
auxilium/add_arguments/update.py on lines 43..48
auxilium/add_arguments/update.py on lines 49..54

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

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

    parser.add_argument(
        '--status',
        action='store_const',
        const=not config.getboolean('update', 'status', fallback=False),
        default=config.getboolean('update', 'status', fallback=False),
Severity: Major
Found in auxilium/add_arguments/update.py and 15 other locations - About 2 hrs to fix
auxilium/add_arguments/build.py on lines 26..31
auxilium/add_arguments/build.py on lines 64..69
auxilium/add_arguments/build.py on lines 86..91
auxilium/add_arguments/doc.py on lines 33..38
auxilium/add_arguments/doc.py on lines 39..44
auxilium/add_arguments/doc.py on lines 45..50
auxilium/add_arguments/doc.py on lines 51..56
auxilium/add_arguments/doc.py on lines 57..62
auxilium/add_arguments/doc.py on lines 63..68
auxilium/add_arguments/test.py on lines 51..56
auxilium/add_arguments/test.py on lines 57..62
auxilium/add_arguments/test.py on lines 63..68
auxilium/add_arguments/update.py on lines 31..36
auxilium/add_arguments/update.py on lines 37..42
auxilium/add_arguments/update.py on lines 43..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 50.

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 do has 16 arguments (exceeds 4 allowed). Consider refactoring.
Open

def do(pkg=basename(getcwd()), commit=None, tag=None, header=None,
Severity: Major
Found in auxilium/methods/build.py - About 2 hrs to fix

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

        parser.add_argument(
            '--coverage',
            action='store_const',
            const=not config.getboolean('doc', 'coverage', fallback=True),
            default=config.getboolean('doc', 'coverage', fallback=True),
    Severity: Major
    Found in auxilium/add_arguments/doc.py and 15 other locations - About 2 hrs to fix
    auxilium/add_arguments/build.py on lines 26..31
    auxilium/add_arguments/build.py on lines 64..69
    auxilium/add_arguments/build.py on lines 86..91
    auxilium/add_arguments/doc.py on lines 33..38
    auxilium/add_arguments/doc.py on lines 39..44
    auxilium/add_arguments/doc.py on lines 51..56
    auxilium/add_arguments/doc.py on lines 57..62
    auxilium/add_arguments/doc.py on lines 63..68
    auxilium/add_arguments/test.py on lines 51..56
    auxilium/add_arguments/test.py on lines 57..62
    auxilium/add_arguments/test.py on lines 63..68
    auxilium/add_arguments/update.py on lines 31..36
    auxilium/add_arguments/update.py on lines 37..42
    auxilium/add_arguments/update.py on lines 43..48
    auxilium/add_arguments/update.py on lines 49..54

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

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

        parser.add_argument(
            '--cleanup',
            action='store_const',
            const=not config.getboolean('test', 'cleanup', fallback=False),
            default=config.getboolean('test', 'cleanup', fallback=False),
    Severity: Major
    Found in auxilium/add_arguments/test.py and 15 other locations - About 2 hrs to fix
    auxilium/add_arguments/build.py on lines 26..31
    auxilium/add_arguments/build.py on lines 64..69
    auxilium/add_arguments/build.py on lines 86..91
    auxilium/add_arguments/doc.py on lines 33..38
    auxilium/add_arguments/doc.py on lines 39..44
    auxilium/add_arguments/doc.py on lines 45..50
    auxilium/add_arguments/doc.py on lines 51..56
    auxilium/add_arguments/doc.py on lines 57..62
    auxilium/add_arguments/doc.py on lines 63..68
    auxilium/add_arguments/test.py on lines 51..56
    auxilium/add_arguments/test.py on lines 57..62
    auxilium/add_arguments/update.py on lines 31..36
    auxilium/add_arguments/update.py on lines 37..42
    auxilium/add_arguments/update.py on lines 43..48
    auxilium/add_arguments/update.py on lines 49..54

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

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

        parser.add_argument(
            '--archive',
            action='store_const',
            const=not config.getboolean('deployment', 'archive', fallback=False),
            default=config.getboolean('deployment', 'archive', fallback=False),
    Severity: Major
    Found in auxilium/add_arguments/build.py and 15 other locations - About 2 hrs to fix
    auxilium/add_arguments/build.py on lines 26..31
    auxilium/add_arguments/build.py on lines 86..91
    auxilium/add_arguments/doc.py on lines 33..38
    auxilium/add_arguments/doc.py on lines 39..44
    auxilium/add_arguments/doc.py on lines 45..50
    auxilium/add_arguments/doc.py on lines 51..56
    auxilium/add_arguments/doc.py on lines 57..62
    auxilium/add_arguments/doc.py on lines 63..68
    auxilium/add_arguments/test.py on lines 51..56
    auxilium/add_arguments/test.py on lines 57..62
    auxilium/add_arguments/test.py on lines 63..68
    auxilium/add_arguments/update.py on lines 31..36
    auxilium/add_arguments/update.py on lines 37..42
    auxilium/add_arguments/update.py on lines 43..48
    auxilium/add_arguments/update.py on lines 49..54

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

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

        parser.add_argument(
            '--cleanup',
            action='store_const',
            const=not config.getboolean('doc', 'cleanup', fallback=False),
            default=config.getboolean('doc', 'cleanup', fallback=False),
    Severity: Major
    Found in auxilium/add_arguments/doc.py and 15 other locations - About 2 hrs to fix
    auxilium/add_arguments/build.py on lines 26..31
    auxilium/add_arguments/build.py on lines 64..69
    auxilium/add_arguments/build.py on lines 86..91
    auxilium/add_arguments/doc.py on lines 33..38
    auxilium/add_arguments/doc.py on lines 39..44
    auxilium/add_arguments/doc.py on lines 45..50
    auxilium/add_arguments/doc.py on lines 51..56
    auxilium/add_arguments/doc.py on lines 57..62
    auxilium/add_arguments/test.py on lines 51..56
    auxilium/add_arguments/test.py on lines 57..62
    auxilium/add_arguments/test.py on lines 63..68
    auxilium/add_arguments/update.py on lines 31..36
    auxilium/add_arguments/update.py on lines 37..42
    auxilium/add_arguments/update.py on lines 43..48
    auxilium/add_arguments/update.py on lines 49..54

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

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

        parser.add_argument(
            '--api',
            action='store_const',
            const=not config.getboolean('doc', 'api', fallback=False),
            default=config.getboolean('doc', 'api', fallback=False),
    Severity: Major
    Found in auxilium/add_arguments/doc.py and 15 other locations - About 2 hrs to fix
    auxilium/add_arguments/build.py on lines 26..31
    auxilium/add_arguments/build.py on lines 64..69
    auxilium/add_arguments/build.py on lines 86..91
    auxilium/add_arguments/doc.py on lines 39..44
    auxilium/add_arguments/doc.py on lines 45..50
    auxilium/add_arguments/doc.py on lines 51..56
    auxilium/add_arguments/doc.py on lines 57..62
    auxilium/add_arguments/doc.py on lines 63..68
    auxilium/add_arguments/test.py on lines 51..56
    auxilium/add_arguments/test.py on lines 57..62
    auxilium/add_arguments/test.py on lines 63..68
    auxilium/add_arguments/update.py on lines 31..36
    auxilium/add_arguments/update.py on lines 37..42
    auxilium/add_arguments/update.py on lines 43..48
    auxilium/add_arguments/update.py on lines 49..54

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

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

        parser.add_argument(
            '--requirements',
            action='store_const',
            const=not config.getboolean('update', 'requirements', fallback=False),
            default=config.getboolean('update', 'requirements', fallback=False),
    Severity: Major
    Found in auxilium/add_arguments/update.py and 15 other locations - About 2 hrs to fix
    auxilium/add_arguments/build.py on lines 26..31
    auxilium/add_arguments/build.py on lines 64..69
    auxilium/add_arguments/build.py on lines 86..91
    auxilium/add_arguments/doc.py on lines 33..38
    auxilium/add_arguments/doc.py on lines 39..44
    auxilium/add_arguments/doc.py on lines 45..50
    auxilium/add_arguments/doc.py on lines 51..56
    auxilium/add_arguments/doc.py on lines 57..62
    auxilium/add_arguments/doc.py on lines 63..68
    auxilium/add_arguments/test.py on lines 51..56
    auxilium/add_arguments/test.py on lines 57..62
    auxilium/add_arguments/test.py on lines 63..68
    auxilium/add_arguments/update.py on lines 31..36
    auxilium/add_arguments/update.py on lines 43..48
    auxilium/add_arguments/update.py on lines 49..54

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

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

        parser.add_argument(
            '--doctest',
            action='store_const',
            const=not config.getboolean('doc', 'doctest', fallback=True),
            default=config.getboolean('doc', 'doctest', fallback=True),
    Severity: Major
    Found in auxilium/add_arguments/doc.py and 15 other locations - About 2 hrs to fix
    auxilium/add_arguments/build.py on lines 26..31
    auxilium/add_arguments/build.py on lines 64..69
    auxilium/add_arguments/build.py on lines 86..91
    auxilium/add_arguments/doc.py on lines 33..38
    auxilium/add_arguments/doc.py on lines 45..50
    auxilium/add_arguments/doc.py on lines 51..56
    auxilium/add_arguments/doc.py on lines 57..62
    auxilium/add_arguments/doc.py on lines 63..68
    auxilium/add_arguments/test.py on lines 51..56
    auxilium/add_arguments/test.py on lines 57..62
    auxilium/add_arguments/test.py on lines 63..68
    auxilium/add_arguments/update.py on lines 31..36
    auxilium/add_arguments/update.py on lines 37..42
    auxilium/add_arguments/update.py on lines 43..48
    auxilium/add_arguments/update.py on lines 49..54

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

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

        parser.add_argument(
            '--cleanup',
            action='store_const',
            const=not config.getboolean('build', 'cleanup', fallback=False),
            default=config.getboolean('build', 'cleanup', fallback=False),
    Severity: Major
    Found in auxilium/add_arguments/build.py and 15 other locations - About 2 hrs to fix
    auxilium/add_arguments/build.py on lines 26..31
    auxilium/add_arguments/build.py on lines 64..69
    auxilium/add_arguments/doc.py on lines 33..38
    auxilium/add_arguments/doc.py on lines 39..44
    auxilium/add_arguments/doc.py on lines 45..50
    auxilium/add_arguments/doc.py on lines 51..56
    auxilium/add_arguments/doc.py on lines 57..62
    auxilium/add_arguments/doc.py on lines 63..68
    auxilium/add_arguments/test.py on lines 51..56
    auxilium/add_arguments/test.py on lines 57..62
    auxilium/add_arguments/test.py on lines 63..68
    auxilium/add_arguments/update.py on lines 31..36
    auxilium/add_arguments/update.py on lines 37..42
    auxilium/add_arguments/update.py on lines 43..48
    auxilium/add_arguments/update.py on lines 49..54

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

    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

        parser.add_argument(
            '-ff', '--fail-fast',
            action='store_const',
            const=not config.getboolean('doc', 'fail-fast', fallback=False),
            default=config.getboolean('doc', 'fail-fast', fallback=False),
    Severity: Major
    Found in auxilium/add_arguments/doc.py and 1 other location - About 1 hr to fix
    auxilium/add_arguments/test.py on lines 32..36

    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

        parser.add_argument(
            '-ff', '--fail-fast',
            action='store_const',
            const=not config.getboolean('test', 'fail-fast', fallback=False),
            default=config.getboolean('test', 'fail-fast', fallback=False),
    Severity: Major
    Found in auxilium/add_arguments/test.py and 1 other location - About 1 hr to fix
    auxilium/add_arguments/doc.py on lines 21..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 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

    Function do has 15 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def do(pkg=basename(getcwd()), header=None, status=None, commit=None,
    Severity: Major
    Found in auxilium/methods/update.py - About 1 hr to fix

      Function do has 13 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def do(name=None, slogan=None, author=None, email=None, url=None,
      Severity: Major
      Found in auxilium/methods/create.py - About 1 hr to fix

        Function _run has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
        Open

        def _run(command, level=LEVEL, path=getcwd(), capture_output=False):  # nosec
            proc = run(command, cwd=path, shell=True,
                       capture_output=capture_output, text=True)
            log_level = ERROR if proc.returncode else level
            if proc.stdout:
        Severity: Minor
        Found in auxilium/tools/system_tools.py - About 1 hr 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

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

        if pkg.__theme__ and pkg.__theme__.replace('-', '_') not in extensions:
            extensions.append(pkg.__theme__.replace('-', '_'))
        Severity: Major
        Found in doc/sphinx/conf.py and 1 other location - About 1 hr to fix
        pkg/doc/sphinx/conf.py on lines 48..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 44.

        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