erikvw/django-collect-offline

View on GitHub
django_collect_offline/migrations/0003_auto_20190305_0123.py

Summary

Maintainability
D
1 day
Test Coverage

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

        migrations.AlterField(
            model_name="server",
            name="user_modified",
            field=django_audit_fields.fields.userfield.UserField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 50 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 37..40
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 47..50
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 80..83
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 90..93
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 123..126
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 133..136
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 166..169

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="incomingtransaction",
            name="user_created",
            field=django_audit_fields.fields.userfield.UserField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 50 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 37..40
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 47..50
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 90..93
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 123..126
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 133..136
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 166..169
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 176..179

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="incomingtransaction",
            name="user_modified",
            field=django_audit_fields.fields.userfield.UserField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 50 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 37..40
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 47..50
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 80..83
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 123..126
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 133..136
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 166..169
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 176..179

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="outgoingtransaction",
            name="user_modified",
            field=django_audit_fields.fields.userfield.UserField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 50 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 37..40
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 47..50
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 80..83
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 90..93
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 123..126
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 166..169
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 176..179

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="client",
            name="user_modified",
            field=django_audit_fields.fields.userfield.UserField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 50 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 37..40
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 80..83
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 90..93
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 123..126
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 133..136
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 166..169
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 176..179

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="outgoingtransaction",
            name="user_created",
            field=django_audit_fields.fields.userfield.UserField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 50 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 37..40
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 47..50
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 80..83
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 90..93
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 133..136
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 166..169
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 176..179

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="client",
            name="user_created",
            field=django_audit_fields.fields.userfield.UserField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 50 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 47..50
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 80..83
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 90..93
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 123..126
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 133..136
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 166..169
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 176..179

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="server",
            name="user_created",
            field=django_audit_fields.fields.userfield.UserField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 50 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 37..40
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 47..50
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 80..83
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 90..93
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 123..126
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 133..136
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 176..179

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="outgoingtransaction",
            name="hostname_modified",
            field=django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 3 other locations - About 35 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 21..24
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 64..67
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 150..153

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

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

        migrations.AlterField(
            model_name="incomingtransaction",
            name="hostname_modified",
            field=django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 3 other locations - About 35 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 21..24
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 107..110
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 150..153

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

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

        migrations.AlterField(
            model_name="client",
            name="hostname_modified",
            field=django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 3 other locations - About 35 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 64..67
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 107..110
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 150..153

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

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

        migrations.AlterField(
            model_name="server",
            name="hostname_modified",
            field=django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 3 other locations - About 35 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 21..24
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 64..67
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 107..110

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="outgoingtransaction",
            name="created",
            field=models.DateTimeField(
                blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 30 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 14..18
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 30..34
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 57..61
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 73..77
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 116..120
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 143..147
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 159..163

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="outgoingtransaction",
            name="modified",
            field=models.DateTimeField(
                blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 30 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 14..18
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 30..34
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 57..61
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 73..77
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 100..104
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 143..147
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 159..163

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="client",
            name="modified",
            field=models.DateTimeField(
                blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 30 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 14..18
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 57..61
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 73..77
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 100..104
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 116..120
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 143..147
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 159..163

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="server",
            name="created",
            field=models.DateTimeField(
                blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 30 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 14..18
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 30..34
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 57..61
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 73..77
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 100..104
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 116..120
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 159..163

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="incomingtransaction",
            name="modified",
            field=models.DateTimeField(
                blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 30 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 14..18
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 30..34
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 57..61
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 100..104
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 116..120
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 143..147
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 159..163

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="server",
            name="modified",
            field=models.DateTimeField(
                blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 30 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 14..18
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 30..34
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 57..61
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 73..77
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 100..104
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 116..120
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 143..147

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="client",
            name="created",
            field=models.DateTimeField(
                blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 30 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 30..34
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 57..61
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 73..77
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 100..104
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 116..120
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 143..147
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 159..163

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

        migrations.AlterField(
            model_name="incomingtransaction",
            name="created",
            field=models.DateTimeField(
                blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
Severity: Major
Found in django_collect_offline/migrations/0003_auto_20190305_0123.py and 7 other locations - About 30 mins to fix
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 14..18
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 30..34
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 73..77
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 100..104
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 116..120
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 143..147
django_collect_offline/migrations/0003_auto_20190305_0123.py on lines 159..163

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

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

There are no issues that match your filters.

Category
Status