559Labs/django-dtg-store-manager

View on GitHub

Showing 302 of 302 total issues

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

Severity: Major
Found in src/business/views/app_content.py and 1 other location - About 5 hrs to fix
src/business/views/app_dashboard.py on lines 0..27

Duplicated Code

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

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

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

Tuning

This issue has a mass of 93.

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 __str__(self):
        rv = []
        if self.code:
            rv.append(self.code)
        if self.label_clean:
Severity: Major
Found in src/business/models.py and 1 other location - About 4 hrs to fix
src/business/models.py on lines 1195..1205

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

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 __str__(self):
        rv = []
        if self.code:
            rv.append(self.code)
        if self.label_clean:
Severity: Major
Found in src/business/models.py and 1 other location - About 4 hrs to fix
src/business/models.py on lines 1238..1248

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

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

class pfCatalogType(commonBusinessModel):
    name = CharField(_("Name"), max_length=128,
                     null=True, blank=True, default="")

    def __str__(self):
Severity: Major
Found in src/business/models.py and 1 other location - About 4 hrs to fix
src/business/models.py on lines 1382..1394

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

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

class pfCatalogBrand(commonBusinessModel):
    name = CharField(_("Name"), max_length=128,
                     null=True, blank=True, default="")

    def __str__(self):
Severity: Major
Found in src/business/models.py and 1 other location - About 4 hrs to fix
src/business/models.py on lines 1397..1409

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

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 self.height and not self.height_in:
            self.height_in = int(self.height / 300)
        elif self.height_in and not self.height:
            self.height = self.height_in * 300
Severity: Major
Found in src/business/models.py and 1 other location - About 3 hrs to fix
src/business/models.py on lines 1300..1303

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

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 self.width and not self.width_in:
            self.width_in = int(self.width / 300)
        elif self.width_in and not self.width:
            self.width = self.width_in * 300
Severity: Major
Found in src/business/models.py and 1 other location - About 3 hrs to fix
src/business/models.py on lines 1305..1308

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

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

@shared_task
def task_api_update_products(userid):
    try:
        user = User.objects.get(pk=userid)
        pfCatalogProduct.api_pull()
Severity: Major
Found in src/business/tasks.py and 1 other location - About 3 hrs to fix
src/business/tasks.py on lines 21..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 67.

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

@shared_task
def task_api_update_geos(userid):
    try:
        user = User.objects.get(pk=userid)
        pfCountry.api_pull()
Severity: Major
Found in src/business/tasks.py and 1 other location - About 3 hrs to fix
src/business/tasks.py on lines 10..18

Duplicated Code

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

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

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

Tuning

This issue has a mass of 67.

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 len(context['creativecollections']) > 0:
            if 'collection' in self.kwargs:
                context['active_collection'] = bzCreativeCollection.objects.get(
                    pk=self.kwargs['collection'])
            else:
Severity: Major
Found in src/business/views/app_creative.py and 1 other location - About 3 hrs to fix
src/business/views/app_product.py on lines 47..52

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

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

            try:
                if 'product' in self.kwargs:
                    context['active_product'] = bzProduct.objects.get(
                        pk=self.kwargs['product'])
                else:
Severity: Major
Found in src/business/views/app_product.py and 1 other location - About 3 hrs to fix
src/business/views/app_creative.py on lines 34..39

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

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

File tables.py has 302 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import django_tables2 as tables
from .models import *
from django_tables2.utils import A
from django.utils.translation import ugettext_lazy as _
from django.contrib.humanize.templatetags.humanize import naturaltime
Severity: Minor
Found in src/business/tables.py - About 3 hrs to fix

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

    urlpatterns += (
        # urls for bzCreativeDesign
        url(r'^bzcreativedesign/$', bzCreativeDesignListView.as_view(),
            name='business_bzcreativedesign_list'),
        url(r'^bzcreativedesign/create/$', bzCreativeDesignCreateView.as_view(),
    Severity: Major
    Found in src/business/urls.py and 33 other locations - About 3 hrs to fix
    src/business/urls.py on lines 83..90
    src/business/urls.py on lines 118..124
    src/business/urls.py on lines 204..212
    src/business/urls.py on lines 215..224
    src/business/urls.py on lines 239..248
    src/business/urls.py on lines 251..260
    src/business/urls.py on lines 263..272
    src/business/urls.py on lines 275..284
    src/business/urls.py on lines 287..296
    src/business/urls.py on lines 299..308
    src/business/urls.py on lines 311..319
    src/business/urls.py on lines 322..331
    src/business/urls.py on lines 334..343
    src/business/urls.py on lines 346..354
    src/business/urls.py on lines 357..365
    src/business/urls.py on lines 368..376
    src/business/urls.py on lines 379..388
    src/business/urls.py on lines 391..399
    src/business/urls.py on lines 402..411
    src/business/urls.py on lines 414..423
    src/business/urls.py on lines 426..434
    src/business/urls.py on lines 437..446
    src/business/urls.py on lines 449..458
    src/business/urls.py on lines 461..470
    src/business/urls.py on lines 473..482
    src/business/urls.py on lines 485..494
    src/business/urls.py on lines 497..506
    src/business/urls.py on lines 509..518
    src/business/urls.py on lines 521..530
    src/business/urls.py on lines 533..542
    src/business/urls.py on lines 545..554
    src/business/urls.py on lines 557..565
    src/business/urls.py on lines 568..577

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

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

    urlpatterns += (
        # urls for wooShippingClass
        url(r'^wooshippingclass/$', wooShippingClassListView.as_view(),
            name='business_wooshippingclass_list'),
        url(r'^wooshippingclass/create/$', wooShippingClassCreateView.as_view(),
    Severity: Major
    Found in src/business/urls.py and 33 other locations - About 3 hrs to fix
    src/business/urls.py on lines 83..90
    src/business/urls.py on lines 118..124
    src/business/urls.py on lines 204..212
    src/business/urls.py on lines 215..224
    src/business/urls.py on lines 227..236
    src/business/urls.py on lines 239..248
    src/business/urls.py on lines 251..260
    src/business/urls.py on lines 263..272
    src/business/urls.py on lines 275..284
    src/business/urls.py on lines 287..296
    src/business/urls.py on lines 299..308
    src/business/urls.py on lines 311..319
    src/business/urls.py on lines 322..331
    src/business/urls.py on lines 346..354
    src/business/urls.py on lines 357..365
    src/business/urls.py on lines 368..376
    src/business/urls.py on lines 379..388
    src/business/urls.py on lines 391..399
    src/business/urls.py on lines 402..411
    src/business/urls.py on lines 414..423
    src/business/urls.py on lines 426..434
    src/business/urls.py on lines 437..446
    src/business/urls.py on lines 449..458
    src/business/urls.py on lines 461..470
    src/business/urls.py on lines 473..482
    src/business/urls.py on lines 485..494
    src/business/urls.py on lines 497..506
    src/business/urls.py on lines 509..518
    src/business/urls.py on lines 521..530
    src/business/urls.py on lines 533..542
    src/business/urls.py on lines 545..554
    src/business/urls.py on lines 557..565
    src/business/urls.py on lines 568..577

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

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

    urlpatterns += (
        # urls for pfCountry
        url(r'^pfcountry/$', pfCountryListView.as_view(),
            name='business_pfcountry_list'),
        url(r'^pfcountry/create/$', pfCountryCreateView.as_view(),
    Severity: Major
    Found in src/business/urls.py and 33 other locations - About 3 hrs to fix
    src/business/urls.py on lines 83..90
    src/business/urls.py on lines 118..124
    src/business/urls.py on lines 204..212
    src/business/urls.py on lines 215..224
    src/business/urls.py on lines 227..236
    src/business/urls.py on lines 239..248
    src/business/urls.py on lines 251..260
    src/business/urls.py on lines 263..272
    src/business/urls.py on lines 275..284
    src/business/urls.py on lines 287..296
    src/business/urls.py on lines 299..308
    src/business/urls.py on lines 311..319
    src/business/urls.py on lines 322..331
    src/business/urls.py on lines 334..343
    src/business/urls.py on lines 346..354
    src/business/urls.py on lines 357..365
    src/business/urls.py on lines 368..376
    src/business/urls.py on lines 379..388
    src/business/urls.py on lines 391..399
    src/business/urls.py on lines 402..411
    src/business/urls.py on lines 426..434
    src/business/urls.py on lines 437..446
    src/business/urls.py on lines 449..458
    src/business/urls.py on lines 461..470
    src/business/urls.py on lines 473..482
    src/business/urls.py on lines 485..494
    src/business/urls.py on lines 497..506
    src/business/urls.py on lines 509..518
    src/business/urls.py on lines 521..530
    src/business/urls.py on lines 533..542
    src/business/urls.py on lines 545..554
    src/business/urls.py on lines 557..565
    src/business/urls.py on lines 568..577

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

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

    urlpatterns += (
        # urls for pfSyncProduct
        url(r'^pfsyncproduct/$', pfSyncProductListView.as_view(),
            name='business_pfsyncproduct_list'),
        url(r'^pfsyncproduct/create/$', pfSyncProductCreateView.as_view(),
    Severity: Major
    Found in src/business/urls.py and 33 other locations - About 3 hrs to fix
    src/business/urls.py on lines 83..90
    src/business/urls.py on lines 118..124
    src/business/urls.py on lines 204..212
    src/business/urls.py on lines 215..224
    src/business/urls.py on lines 227..236
    src/business/urls.py on lines 239..248
    src/business/urls.py on lines 251..260
    src/business/urls.py on lines 263..272
    src/business/urls.py on lines 275..284
    src/business/urls.py on lines 287..296
    src/business/urls.py on lines 299..308
    src/business/urls.py on lines 311..319
    src/business/urls.py on lines 322..331
    src/business/urls.py on lines 334..343
    src/business/urls.py on lines 346..354
    src/business/urls.py on lines 357..365
    src/business/urls.py on lines 368..376
    src/business/urls.py on lines 379..388
    src/business/urls.py on lines 391..399
    src/business/urls.py on lines 402..411
    src/business/urls.py on lines 414..423
    src/business/urls.py on lines 426..434
    src/business/urls.py on lines 449..458
    src/business/urls.py on lines 461..470
    src/business/urls.py on lines 473..482
    src/business/urls.py on lines 485..494
    src/business/urls.py on lines 497..506
    src/business/urls.py on lines 509..518
    src/business/urls.py on lines 521..530
    src/business/urls.py on lines 533..542
    src/business/urls.py on lines 545..554
    src/business/urls.py on lines 557..565
    src/business/urls.py on lines 568..577

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

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

    urlpatterns += (
        # urls for pfCatalogFileType
        url(r'^pfcatalogfiletype/$', pfCatalogFileTypeListView.as_view(),
            name='business_pfcatalogfiletype_list'),
        url(r'^pfcatalogfiletype/create/$', pfCatalogFileTypeCreateView.as_view(),
    Severity: Major
    Found in src/business/urls.py and 33 other locations - About 3 hrs to fix
    src/business/urls.py on lines 83..90
    src/business/urls.py on lines 118..124
    src/business/urls.py on lines 204..212
    src/business/urls.py on lines 215..224
    src/business/urls.py on lines 227..236
    src/business/urls.py on lines 239..248
    src/business/urls.py on lines 251..260
    src/business/urls.py on lines 263..272
    src/business/urls.py on lines 275..284
    src/business/urls.py on lines 287..296
    src/business/urls.py on lines 299..308
    src/business/urls.py on lines 311..319
    src/business/urls.py on lines 322..331
    src/business/urls.py on lines 334..343
    src/business/urls.py on lines 346..354
    src/business/urls.py on lines 357..365
    src/business/urls.py on lines 368..376
    src/business/urls.py on lines 379..388
    src/business/urls.py on lines 391..399
    src/business/urls.py on lines 402..411
    src/business/urls.py on lines 414..423
    src/business/urls.py on lines 426..434
    src/business/urls.py on lines 437..446
    src/business/urls.py on lines 449..458
    src/business/urls.py on lines 461..470
    src/business/urls.py on lines 473..482
    src/business/urls.py on lines 485..494
    src/business/urls.py on lines 497..506
    src/business/urls.py on lines 521..530
    src/business/urls.py on lines 533..542
    src/business/urls.py on lines 545..554
    src/business/urls.py on lines 557..565
    src/business/urls.py on lines 568..577

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

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

    urlpatterns += (
        # urls for wooVariant
        url(r'^woovariant/$', wooVariantListView.as_view(),
            name='business_woovariant_list'),
        url(r'^woovariant/create/$', wooVariantCreateView.as_view(),
    Severity: Major
    Found in src/business/urls.py and 33 other locations - About 3 hrs to fix
    src/business/urls.py on lines 83..90
    src/business/urls.py on lines 118..124
    src/business/urls.py on lines 204..212
    src/business/urls.py on lines 215..224
    src/business/urls.py on lines 227..236
    src/business/urls.py on lines 239..248
    src/business/urls.py on lines 251..260
    src/business/urls.py on lines 263..272
    src/business/urls.py on lines 275..284
    src/business/urls.py on lines 287..296
    src/business/urls.py on lines 299..308
    src/business/urls.py on lines 311..319
    src/business/urls.py on lines 322..331
    src/business/urls.py on lines 334..343
    src/business/urls.py on lines 346..354
    src/business/urls.py on lines 357..365
    src/business/urls.py on lines 368..376
    src/business/urls.py on lines 391..399
    src/business/urls.py on lines 402..411
    src/business/urls.py on lines 414..423
    src/business/urls.py on lines 426..434
    src/business/urls.py on lines 437..446
    src/business/urls.py on lines 449..458
    src/business/urls.py on lines 461..470
    src/business/urls.py on lines 473..482
    src/business/urls.py on lines 485..494
    src/business/urls.py on lines 497..506
    src/business/urls.py on lines 509..518
    src/business/urls.py on lines 521..530
    src/business/urls.py on lines 533..542
    src/business/urls.py on lines 545..554
    src/business/urls.py on lines 557..565
    src/business/urls.py on lines 568..577

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

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

    urlpatterns += (
        url(r'^dams/$', appDAMSHome.as_view(), name='app_dams_home'),
        url(r'^dams/printful/$', appDAMSPFList.as_view(), name='app_dams_pf_list'),
        url(r'^dams/printful/pull/$', appDAMSPFApiPull.as_view(),
            name='app_dams_pf_apipull'),
    Severity: Major
    Found in src/business/urls.py and 33 other locations - About 3 hrs to fix
    src/business/urls.py on lines 83..90
    src/business/urls.py on lines 204..212
    src/business/urls.py on lines 215..224
    src/business/urls.py on lines 227..236
    src/business/urls.py on lines 239..248
    src/business/urls.py on lines 251..260
    src/business/urls.py on lines 263..272
    src/business/urls.py on lines 275..284
    src/business/urls.py on lines 287..296
    src/business/urls.py on lines 299..308
    src/business/urls.py on lines 311..319
    src/business/urls.py on lines 322..331
    src/business/urls.py on lines 334..343
    src/business/urls.py on lines 346..354
    src/business/urls.py on lines 357..365
    src/business/urls.py on lines 368..376
    src/business/urls.py on lines 379..388
    src/business/urls.py on lines 391..399
    src/business/urls.py on lines 402..411
    src/business/urls.py on lines 414..423
    src/business/urls.py on lines 426..434
    src/business/urls.py on lines 437..446
    src/business/urls.py on lines 449..458
    src/business/urls.py on lines 461..470
    src/business/urls.py on lines 473..482
    src/business/urls.py on lines 485..494
    src/business/urls.py on lines 497..506
    src/business/urls.py on lines 509..518
    src/business/urls.py on lines 521..530
    src/business/urls.py on lines 533..542
    src/business/urls.py on lines 545..554
    src/business/urls.py on lines 557..565
    src/business/urls.py on lines 568..577

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

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

    urlpatterns += (
        # urls for pfSyncItemOption
        url(r'^pfsyncitemoption/$', pfSyncItemOptionListView.as_view(),
            name='business_pfsyncitemoption_list'),
        url(r'^pfsyncitemoption/create/$', pfSyncItemOptionCreateView.as_view(),
    Severity: Major
    Found in src/business/urls.py and 33 other locations - About 3 hrs to fix
    src/business/urls.py on lines 83..90
    src/business/urls.py on lines 118..124
    src/business/urls.py on lines 204..212
    src/business/urls.py on lines 215..224
    src/business/urls.py on lines 227..236
    src/business/urls.py on lines 239..248
    src/business/urls.py on lines 251..260
    src/business/urls.py on lines 263..272
    src/business/urls.py on lines 275..284
    src/business/urls.py on lines 287..296
    src/business/urls.py on lines 299..308
    src/business/urls.py on lines 311..319
    src/business/urls.py on lines 322..331
    src/business/urls.py on lines 334..343
    src/business/urls.py on lines 346..354
    src/business/urls.py on lines 357..365
    src/business/urls.py on lines 368..376
    src/business/urls.py on lines 379..388
    src/business/urls.py on lines 391..399
    src/business/urls.py on lines 402..411
    src/business/urls.py on lines 414..423
    src/business/urls.py on lines 426..434
    src/business/urls.py on lines 437..446
    src/business/urls.py on lines 449..458
    src/business/urls.py on lines 473..482
    src/business/urls.py on lines 485..494
    src/business/urls.py on lines 497..506
    src/business/urls.py on lines 509..518
    src/business/urls.py on lines 521..530
    src/business/urls.py on lines 533..542
    src/business/urls.py on lines 545..554
    src/business/urls.py on lines 557..565
    src/business/urls.py on lines 568..577

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

    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