sonntagsgesicht/auxilium

View on GitHub

Showing 63 of 105 total issues

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 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(
        '--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(
        '--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(
        '--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

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

    parser.add_argument(
        '--quality',
        action='store_const',
        const=not config.getboolean('test', 'quality', fallback=True),
        default=config.getboolean('test', 'quality', 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 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(
        '--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(
        '--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(
        '--install',
        action='store_const',
        const=not config.getboolean('update', 'install', fallback=False),
        default=config.getboolean('update', 'install', 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 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

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 pkg/doc/sphinx/conf.py and 1 other location - About 1 hr to fix
doc/sphinx/conf.py on lines 49..50

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

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

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

    parser.add_argument(
        '--push',
        metavar='BRANCH',
        nargs='?',
        const=config.getboolean('build', 'tag', fallback='master'),
Severity: Major
Found in auxilium/add_arguments/build.py and 1 other location - About 1 hr to fix
auxilium/add_arguments/update.py on lines 61..66

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

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(
        '--pull',
        nargs='?',
        metavar='BRANCH',
        const=config.get('update', 'pull', fallback='master'),
Severity: Major
Found in auxilium/add_arguments/update.py and 1 other location - About 1 hr to fix
auxilium/add_arguments/build.py on lines 44..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 41.

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

def quality_pylint(pkg=basename(getcwd()), path=getcwd(), venv=None):
    """evaluate quality of source code with pylint"""
    return module('pylint', pkg, path=path, venv=venv)
Severity: Major
Found in auxilium/tools/quality_tools.py and 1 other location - About 1 hr to fix
auxilium/tools/quality_tools.py on lines 32..34

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

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

def quality_flake8(pkg=basename(getcwd()), path=getcwd(), venv=None):
    """evaluate quality of source code with flake8"""
    return module('flake8', pkg, path=path, venv=venv)
Severity: Major
Found in auxilium/tools/quality_tools.py and 1 other location - About 1 hr to fix
auxilium/tools/quality_tools.py on lines 27..29

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

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

    if pull:
        remote = build_url(remote, remote_usr, remote_pwd)
        code = code or pull_git(
Severity: Minor
Found in auxilium/methods/update.py and 1 other location - About 55 mins to fix
auxilium/methods/build.py on lines 45..47

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

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

    if push:
        remote = build_url(remote, remote_usr, remote_pwd)
        code = code or push_git(remote=remote, branch=push, path=path)
Severity: Minor
Found in auxilium/methods/build.py and 1 other location - About 55 mins to fix
auxilium/methods/update.py on lines 41..43

Duplicated Code

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

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

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

Tuning

This issue has a mass of 37.

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

        if not exists(join(project_path, GIT_PATH)):
            code = code or init_git(path=project_path, venv=env)
Severity: Minor
Found in auxilium/methods/create.py and 1 other location - About 50 mins to fix
auxilium/methods/update.py on lines 34..35

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

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