Bnei-Baruch/mdb

View on GitHub

Showing 431 of 1,135 total issues

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

func (fileAssetL) LoadServername(e boil.Executor, singular bool, maybeFileAsset interface{}) error {
    var slice []*FileAsset
    var object *FileAsset

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/file_assets.go and 5 other locations - About 7 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 368..434
importer/kmedia/kmodels/catalogs.go on lines 438..504
importer/kmedia/kmodels/containers.go on lines 410..476
importer/kmedia/kmodels/containers.go on lines 550..616
importer/kmedia/kmodels/file_assets.go on lines 482..548

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

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

func (languageL) LoadLangCatalogDescriptions(e boil.Executor, singular bool, maybeLanguage interface{}) error {
    var slice []*Language
    var object *Language

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/languages.go and 3 other locations - About 7 hrs to fix
importer/kmedia/kmodels/languages.go on lines 364..425
importer/kmedia/kmodels/languages.go on lines 429..490
importer/kmedia/kmodels/languages.go on lines 494..555

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

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

func (languageL) LoadLangContainerDescriptions(e boil.Executor, singular bool, maybeLanguage interface{}) error {
    var slice []*Language
    var object *Language

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/languages.go and 3 other locations - About 7 hrs to fix
importer/kmedia/kmodels/languages.go on lines 299..360
importer/kmedia/kmodels/languages.go on lines 429..490
importer/kmedia/kmodels/languages.go on lines 494..555

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

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

func (languageL) LoadLangContainers(e boil.Executor, singular bool, maybeLanguage interface{}) error {
    var slice []*Language
    var object *Language

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/languages.go and 3 other locations - About 7 hrs to fix
importer/kmedia/kmodels/languages.go on lines 299..360
importer/kmedia/kmodels/languages.go on lines 364..425
importer/kmedia/kmodels/languages.go on lines 494..555

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

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

func (languageL) LoadLangFileAssets(e boil.Executor, singular bool, maybeLanguage interface{}) error {
    var slice []*Language
    var object *Language

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/languages.go and 3 other locations - About 7 hrs to fix
importer/kmedia/kmodels/languages.go on lines 299..360
importer/kmedia/kmodels/languages.go on lines 364..425
importer/kmedia/kmodels/languages.go on lines 429..490

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

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

func (rolesUserL) LoadUser(e boil.Executor, singular bool, maybeRolesUser interface{}) error {
    var slice []*RolesUser
    var object *RolesUser

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/roles_users.go and 3 other locations - About 7 hrs to fix
importer/kmedia/kmodels/catalog_descriptions.go on lines 235..301
importer/kmedia/kmodels/container_descriptions.go on lines 238..304
importer/kmedia/kmodels/file_asset_descriptions.go on lines 215..281

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

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

func (containerDescriptionL) LoadContainer(e boil.Executor, singular bool, maybeContainerDescription interface{}) error {
    var slice []*ContainerDescription
    var object *ContainerDescription

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/container_descriptions.go and 3 other locations - About 7 hrs to fix
importer/kmedia/kmodels/catalog_descriptions.go on lines 235..301
importer/kmedia/kmodels/file_asset_descriptions.go on lines 215..281
importer/kmedia/kmodels/roles_users.go on lines 202..268

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

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

func (fileAssetDescriptionL) LoadFile(e boil.Executor, singular bool, maybeFileAssetDescription interface{}) error {
    var slice []*FileAssetDescription
    var object *FileAssetDescription

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/file_asset_descriptions.go and 3 other locations - About 7 hrs to fix
importer/kmedia/kmodels/catalog_descriptions.go on lines 235..301
importer/kmedia/kmodels/container_descriptions.go on lines 238..304
importer/kmedia/kmodels/roles_users.go on lines 202..268

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

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

func (catalogDescriptionL) LoadCatalog(e boil.Executor, singular bool, maybeCatalogDescription interface{}) error {
    var slice []*CatalogDescription
    var object *CatalogDescription

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/catalog_descriptions.go and 3 other locations - About 7 hrs to fix
importer/kmedia/kmodels/container_descriptions.go on lines 238..304
importer/kmedia/kmodels/file_asset_descriptions.go on lines 215..281
importer/kmedia/kmodels/roles_users.go on lines 202..268

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

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

func (userL) LoadCatalogs(e boil.Executor, singular bool, maybeUser interface{}) error {
    var slice []*User
    var object *User

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/users.go and 5 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 573..634
importer/kmedia/kmodels/content_types.go on lines 218..279
importer/kmedia/kmodels/servers.go on lines 227..288
importer/kmedia/kmodels/users.go on lines 376..437
importer/kmedia/kmodels/virtual_lessons.go on lines 221..282

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

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

func (catalogL) LoadParentCatalogs(e boil.Executor, singular bool, maybeCatalog interface{}) error {
    var slice []*Catalog
    var object *Catalog

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/catalogs.go and 5 other locations - About 6 hrs to fix
importer/kmedia/kmodels/content_types.go on lines 218..279
importer/kmedia/kmodels/servers.go on lines 227..288
importer/kmedia/kmodels/users.go on lines 311..372
importer/kmedia/kmodels/users.go on lines 376..437
importer/kmedia/kmodels/virtual_lessons.go on lines 221..282

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

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

func (virtualLessonL) LoadContainers(e boil.Executor, singular bool, maybeVirtualLesson interface{}) error {
    var slice []*VirtualLesson
    var object *VirtualLesson

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/virtual_lessons.go and 5 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 573..634
importer/kmedia/kmodels/content_types.go on lines 218..279
importer/kmedia/kmodels/servers.go on lines 227..288
importer/kmedia/kmodels/users.go on lines 311..372
importer/kmedia/kmodels/users.go on lines 376..437

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

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

func (serverL) LoadServernameFileAssets(e boil.Executor, singular bool, maybeServer interface{}) error {
    var slice []*Server
    var object *Server

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/servers.go and 5 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 573..634
importer/kmedia/kmodels/content_types.go on lines 218..279
importer/kmedia/kmodels/users.go on lines 311..372
importer/kmedia/kmodels/users.go on lines 376..437
importer/kmedia/kmodels/virtual_lessons.go on lines 221..282

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

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

func (contentTypeL) LoadContainers(e boil.Executor, singular bool, maybeContentType interface{}) error {
    var slice []*ContentType
    var object *ContentType

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/content_types.go and 5 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 573..634
importer/kmedia/kmodels/servers.go on lines 227..288
importer/kmedia/kmodels/users.go on lines 311..372
importer/kmedia/kmodels/users.go on lines 376..437
importer/kmedia/kmodels/virtual_lessons.go on lines 221..282

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

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

func (userL) LoadFileAssets(e boil.Executor, singular bool, maybeUser interface{}) error {
    var slice []*User
    var object *User

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/users.go and 5 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 573..634
importer/kmedia/kmodels/content_types.go on lines 218..279
importer/kmedia/kmodels/servers.go on lines 227..288
importer/kmedia/kmodels/users.go on lines 311..372
importer/kmedia/kmodels/virtual_lessons.go on lines 221..282

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

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

func (fileAssetL) LoadFileFileAssetDescriptions(e boil.Executor, singular bool, maybeFileAsset interface{}) error {
    var slice []*FileAsset
    var object *FileAsset

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/file_assets.go and 3 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 508..569
importer/kmedia/kmodels/containers.go on lines 701..762
importer/kmedia/kmodels/users.go on lines 441..502

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

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

func (userL) LoadRolesUsers(e boil.Executor, singular bool, maybeUser interface{}) error {
    var slice []*User
    var object *User

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/users.go and 3 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 508..569
importer/kmedia/kmodels/containers.go on lines 701..762
importer/kmedia/kmodels/file_assets.go on lines 633..694

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

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

func (catalogL) LoadCatalogDescriptions(e boil.Executor, singular bool, maybeCatalog interface{}) error {
    var slice []*Catalog
    var object *Catalog

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/catalogs.go and 3 other locations - About 6 hrs to fix
importer/kmedia/kmodels/containers.go on lines 701..762
importer/kmedia/kmodels/file_assets.go on lines 633..694
importer/kmedia/kmodels/users.go on lines 441..502

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

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

func (containerL) LoadContainerDescriptions(e boil.Executor, singular bool, maybeContainer interface{}) error {
    var slice []*Container
    var object *Container

    count := 1
Severity: Major
Found in importer/kmedia/kmodels/containers.go and 3 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalogs.go on lines 508..569
importer/kmedia/kmodels/file_assets.go on lines 633..694
importer/kmedia/kmodels/users.go on lines 441..502

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

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

func (o *Container) Update(exec boil.Executor, whitelist ...string) error {
    currTime := time.Now().In(boil.GetLocation())

    o.UpdatedAt.Time = currTime
    o.UpdatedAt.Valid = true
Severity: Major
Found in importer/kmedia/kmodels/containers.go and 10 other locations - About 6 hrs to fix
importer/kmedia/kmodels/catalog_descriptions.go on lines 790..845
importer/kmedia/kmodels/catalogs.go on lines 2053..2108
importer/kmedia/kmodels/container_description_patterns.go on lines 747..802
importer/kmedia/kmodels/container_descriptions.go on lines 793..848
importer/kmedia/kmodels/file_asset_descriptions.go on lines 563..618
importer/kmedia/kmodels/file_assets.go on lines 1631..1686
importer/kmedia/kmodels/lecturer_descriptions.go on lines 399..454
importer/kmedia/kmodels/lecturers.go on lines 396..451
importer/kmedia/kmodels/roles.go on lines 396..451
importer/kmedia/kmodels/users.go on lines 1234..1289

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

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