saltstack/salt

View on GitHub

Showing 7,542 of 17,590 total issues

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

      this.$element
        .on('focus',    $.proxy(this.focus, this))
        .on('blur',     $.proxy(this.blur, this))
Severity: Minor
Found in doc/_themes/saltstack/static/js/vendor/bootstrap.js and 1 other location - About 55 mins to fix
doc/_themes/saltstack/static/js/vendor/bootstrap.js on lines 294..296

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

                cur = elem.nodeType === 1 && ( elem.className ?
                    ( " " + elem.className + " " ).replace( rclass, " " ) :
                    " "
                );
Severity: Minor
Found in doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js and 1 other location - About 55 mins to fix
doc/_themes/saltstack/static/js/vendor/jquery-1.9.1.js on lines 2127..2130

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

def sync_auth(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync execution modules from ``salt://_auth`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_returners(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync returner modules from ``salt://_returners`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_serializers(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2019.2.0

    Sync serializer modules from ``salt://_serializers`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 638..660

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

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

def sync_cache(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2017.7.0

    Sync cache modules from ``salt://_cache`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_modules(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync execution modules from ``salt://_modules`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_engines(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync engines from ``salt://_engines`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_fileserver(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2018.3.0

    Sync fileserver modules from ``salt://_fileserver`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_renderers(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync renderer modules from from ``salt://_renderers`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_sdb(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2017.7.0

    Sync sdb modules from ``salt://_sdb`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_clouds(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2017.7.0

    Sync cloud modules from ``salt://_clouds`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_roster(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2017.7.0

    Sync roster modules from ``salt://_roster`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_proxymodules(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync proxy modules from ``salt://_proxy`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_thorium(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2018.3.0

    Sync Thorium from ``salt://_thorium`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_wheel(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync wheel modules from ``salt://_wheel`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_queues(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync queue modules from ``salt://_queues`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_eauth_tokens(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2018.3.0

    Sync eauth token modules from ``salt://_tokens`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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

def sync_executors(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    .. versionadded:: 2019.2.1

    Sync executor modules from ``salt://_executors`` to the master
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 264..284
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634

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

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

def sync_runners(saltenv='base', extmod_whitelist=None, extmod_blacklist=None):
    '''
    Sync runners from ``salt://_runners`` to the master

    saltenv : base
Severity: Major
Found in salt/runners/saltutil.py and 23 other locations - About 55 mins to fix
salt/runners/saltutil.py on lines 72..92
salt/runners/saltutil.py on lines 96..116
salt/runners/saltutil.py on lines 120..140
salt/runners/saltutil.py on lines 144..164
salt/runners/saltutil.py on lines 168..188
salt/runners/saltutil.py on lines 192..212
salt/runners/saltutil.py on lines 216..236
salt/runners/saltutil.py on lines 240..260
salt/runners/saltutil.py on lines 288..308
salt/runners/saltutil.py on lines 312..332
salt/runners/saltutil.py on lines 336..358
salt/runners/saltutil.py on lines 362..382
salt/runners/saltutil.py on lines 386..406
salt/runners/saltutil.py on lines 410..432
salt/runners/saltutil.py on lines 436..458
salt/runners/saltutil.py on lines 462..478
salt/runners/saltutil.py on lines 482..504
salt/runners/saltutil.py on lines 508..530
salt/runners/saltutil.py on lines 534..556
salt/runners/saltutil.py on lines 560..582
salt/runners/saltutil.py on lines 586..608
salt/runners/saltutil.py on lines 612..634
salt/runners/saltutil.py on lines 638..660

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

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