rezometz/django-paiji2-comic

View on GitHub

Showing 15 of 16 total issues

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

class OperaModule(ModuleApp):
    app_name = 'Opera',
    name = 'Opera',
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 1 other location - About 3 hrs to fix
paiji2_comic/modular.py on lines 328..337

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

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 ArsenalModule(ModuleApp):
    app_name = 'Arsenal',
    name = 'Arsenal',
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 1 other location - About 3 hrs to fix
paiji2_comic/modular.py on lines 310..319

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

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

class EAModule(ModuleApp):
    app_name = 'Earth Observatory Image of the Day'
    name = 'Earth Observatory Image of the Day'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class GarfieldComicModule(ModuleApp):
    app_name = 'garfield-comic'
    name = 'garfield-comic'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class APODModule(ModuleApp):
    app_name = 'Astronomical Picture Of the Day'
    name = 'Astronomical Picture Of the Day'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class NGModule(ModuleApp):
    app_name = 'National Geographic Photo of the Day'
    name = 'National Geographic Photo of the Day'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class CalvinAndHobbesComicModule(ModuleApp):
    app_name = 'calvin-and-hobbes-comic'
    name = 'calvin-and-hobbes-comic'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class USAcresComicModule(ModuleApp):
    app_name = 'us-acres-comic'
    name = 'us-acres-comic'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class NancyComicModule(ModuleApp):
    app_name = 'nancy-comic'
    name = 'nancy-comic'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class BijinTokeiModule(ModuleApp):
    app_name = 'bijin-tokei'
    name = 'bijin-tokei'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class ThatIsPricelessModule(ModuleApp):
    app_name = 'That is priceless'
    name = 'That is priceless'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class MetArtworkModule(ModuleApp):
    app_name = 'Artwork of the day'
    name = 'Artwork of the day'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 130..135
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

class MathImgModule(ModuleApp):
    app_name = 'Image des Maths'
    name = 'Image des Maths'
    urls = None
    templatetag_blocks = [
Severity: Major
Found in paiji2_comic/modular.py and 10 other locations - About 1 hr to fix
paiji2_comic/modular.py on lines 4..9
paiji2_comic/modular.py on lines 22..27
paiji2_comic/modular.py on lines 40..45
paiji2_comic/modular.py on lines 58..63
paiji2_comic/modular.py on lines 76..81
paiji2_comic/modular.py on lines 94..99
paiji2_comic/modular.py on lines 112..117
paiji2_comic/modular.py on lines 166..171
paiji2_comic/modular.py on lines 184..189
paiji2_comic/modular.py on lines 202..207

Duplicated Code

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

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

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

Tuning

This issue has a mass of 44.

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

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

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

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

Refactorings

Further Reading

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

    templatetag_blocks = [
        TemplateTagBlock(
            name='Supelec',
            library='fortune',
            tag='get_supelec',
Severity: Major
Found in paiji2_comic/modular.py and 1 other location - About 1 hr to fix
paiji2_comic/modular.py on lines 296..301

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

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

    templatetag_blocks = [
        TemplateTagBlock(
            name='Metz',
            library='fortune',
            tag='get_metz',
Severity: Major
Found in paiji2_comic/modular.py and 1 other location - About 1 hr to fix
paiji2_comic/modular.py on lines 278..283

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

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