Showing 398 of 398 total issues

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

    var ContinueStatement = (function () {
        function ContinueStatement(label) {
            this.type = syntax_1.Syntax.ContinueStatement;
            this.label = label;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ImportDefaultSpecifier = (function () {
        function ImportDefaultSpecifier(local) {
            this.type = syntax_1.Syntax.ImportDefaultSpecifier;
            this.local = local;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ObjectExpression = (function () {
        function ObjectExpression(properties) {
            this.type = syntax_1.Syntax.ObjectExpression;
            this.properties = properties;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ArrayExpression = (function () {
        function ArrayExpression(elements) {
            this.type = syntax_1.Syntax.ArrayExpression;
            this.elements = elements;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ThrowStatement = (function () {
        function ThrowStatement(argument) {
            this.type = syntax_1.Syntax.ThrowStatement;
            this.argument = argument;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ObjectPattern = (function () {
        function ObjectPattern(properties) {
            this.type = syntax_1.Syntax.ObjectPattern;
            this.properties = properties;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var RestElement = (function () {
        function RestElement(argument) {
            this.type = syntax_1.Syntax.RestElement;
            this.argument = argument;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ArrayPattern = (function () {
        function ArrayPattern(elements) {
            this.type = syntax_1.Syntax.ArrayPattern;
            this.elements = elements;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ClassBody = (function () {
        function ClassBody(body) {
            this.type = syntax_1.Syntax.ClassBody;
            this.body = body;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ExportDefaultDeclaration = (function () {
        function ExportDefaultDeclaration(declaration) {
            this.type = syntax_1.Syntax.ExportDefaultDeclaration;
            this.declaration = declaration;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var SpreadElement = (function () {
        function SpreadElement(argument) {
            this.type = syntax_1.Syntax.SpreadElement;
            this.argument = argument;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var JSXExpressionContainer = (function () {
        function JSXExpressionContainer(expression) {
            this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer;
            this.expression = expression;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var JSXSpreadAttribute = (function () {
        function JSXSpreadAttribute(argument) {
            this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute;
            this.argument = argument;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323

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

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

    var ImportNamespaceSpecifier = (function () {
        function ImportNamespaceSpecifier(local) {
            this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
            this.local = local;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var ReturnStatement = (function () {
        function ReturnStatement(argument) {
            this.type = syntax_1.Syntax.ReturnStatement;
            this.argument = argument;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var BreakStatement = (function () {
        function BreakStatement(label) {
            this.type = syntax_1.Syntax.BreakStatement;
            this.label = label;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5123..5129
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

    var Identifier = (function () {
        function Identifier(name) {
            this.type = syntax_1.Syntax.Identifier;
            this.name = name;
        }
Severity: Major
Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
dist/csp.tmpl.js on lines 4844..4850
dist/csp.tmpl.js on lines 4852..4858
dist/csp.tmpl.js on lines 4902..4908
dist/csp.tmpl.js on lines 4910..4916
dist/csp.tmpl.js on lines 4936..4942
dist/csp.tmpl.js on lines 4984..4990
dist/csp.tmpl.js on lines 5024..5030
dist/csp.tmpl.js on lines 5032..5038
dist/csp.tmpl.js on lines 5059..5065
dist/csp.tmpl.js on lines 5150..5156
dist/csp.tmpl.js on lines 5158..5164
dist/csp.tmpl.js on lines 5223..5229
dist/csp.tmpl.js on lines 5231..5237
dist/csp.tmpl.js on lines 5271..5277
dist/csp.tmpl.js on lines 5279..5285
dist/csp.tmpl.js on lines 5287..5293
dist/csp.tmpl.js on lines 5295..5301
dist/csp.tmpl.js on lines 5372..5378
dist/csp.tmpl.js on lines 6284..6290
dist/csp.tmpl.js on lines 6309..6315
dist/csp.tmpl.js on lines 6317..6323
dist/csp.tmpl.js on lines 6362..6368

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

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

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

InfiniteChecker.prototype.check = function () {
  this.count += 1
  if (this.count > this.maxIterations) {
    throw new Error('Infinite loop detected - reached max iterations')
  }
Severity: Major
Found in src/notevil/lib/infinite-checker.js and 1 other location - About 1 hr to fix
dist/csp.tmpl.js on lines 16..21

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

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

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

function unsupportedExpression(node){
  console.error(node);
  var err = new Error('Unsupported expression: ' + node.type);
  err.node = node;
  throw err
Severity: Major
Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
src/notevil/index.js on lines 420..425

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

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

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

function unsupportedExpression(node){
  console.error(node)
  var err = new Error('Unsupported expression: ' + node.type)
  err.node = node
  throw err
Severity: Major
Found in src/notevil/index.js and 1 other location - About 1 hr to fix
dist/csp.tmpl.js on lines 7067..7072

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

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