mohayonao/SCScript

View on GitHub

Showing 1,467 of 1,712 total issues

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

      expect(r.next() , 1).to.be.a("SCInteger").that.equals(-1);
Severity: Major
Found in src/sc/classlib/Streams/Stream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 1).to.be.a("SCInteger").that.equals(-1);
Severity: Major
Found in src/sc/classlib/Streams/BasicOpsStream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 5).to.be.a("SCInteger").that.equals(-5);
Severity: Major
Found in src/sc/classlib/Streams/Stream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 3).to.be.a("SCInteger").that.equals(-3);
Severity: Major
Found in src/sc/classlib/Streams/Stream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 6).to.be.a("SCInteger").that.equals(-1);
Severity: Major
Found in src/sc/classlib/Streams/BasicOpsStream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 8).to.be.a("SCInteger").that.equals(-3);
Severity: Major
Found in src/sc/classlib/Streams/BasicOpsStream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 8).to.be.a("SCInteger").that.equals(-1);
Severity: Major
Found in src/sc/classlib/Streams/Stream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() ,10).to.be.a("SCInteger").that.equals(-3);
Severity: Major
Found in src/sc/classlib/Streams/Stream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186

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

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

      expect(r.next() , 7).to.be.a("SCInteger").that.equals(-2);
Severity: Major
Found in src/sc/classlib/Streams/BasicOpsStream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 2).to.be.a("SCInteger").that.equals(-2);
Severity: Major
Found in src/sc/classlib/Streams/BasicOpsStream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 2).to.be.a("SCInteger").that.equals(-2);
Severity: Major
Found in src/sc/classlib/Streams/Stream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 4).to.be.a("SCInteger").that.equals(-4);
Severity: Major
Found in src/sc/classlib/Streams/Stream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 3).to.be.a("SCInteger").that.equals(-3);
Severity: Major
Found in src/sc/classlib/Streams/BasicOpsStream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 186..186
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(r.next() , 9).to.be.a("SCInteger").that.equals(-2);
Severity: Major
Found in src/sc/classlib/Streams/Stream_test.js and 13 other locations - About 30 mins to fix
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 32..32
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 33..33
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 34..34
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 37..37
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 38..38
src/sc/classlib/Streams/BasicOpsStream_test.js on lines 39..39
src/sc/classlib/Streams/Stream_test.js on lines 178..178
src/sc/classlib/Streams/Stream_test.js on lines 179..179
src/sc/classlib/Streams/Stream_test.js on lines 180..180
src/sc/classlib/Streams/Stream_test.js on lines 181..181
src/sc/classlib/Streams/Stream_test.js on lines 182..182
src/sc/classlib/Streams/Stream_test.js on lines 185..185
src/sc/classlib/Streams/Stream_test.js on lines 187..187

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

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

      expect(instance.put.args[0]).to.deep.equal($$([ 1 ])._);
Severity: Minor
Found in src/sc/classlib/Streams/Stream_test.js and 2 other locations - About 30 mins to fix
src/sc/classlib/Streams/Stream_test.js on lines 122..122
src/sc/classlib/Streams/Stream_test.js on lines 123..123

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

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

      var iter = sc.lang.iterator.function$while(
        $$(function() {
          return $$(x++ < 5);
        })
      );
Severity: Minor
Found in src/sc/lang/iterator_test.js and 1 other location - About 30 mins to fix
src/sc/lang/iterator_test.js on lines 656..660

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

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

        expected: "$.Function(function() {" +
                  "  var $a;" +
                  "  return [" +
                  "    function(_arg0) {" +
                  "      $a = _arg0;" +
Severity: Minor
Found in src/sc/lang/compiler/codegen/function-expr_test.js and 1 other location - About 30 mins to fix
src/sc/lang/compiler/codegen/function-expr_test.js on lines 390..401

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

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

    builder.addMethod("valueArrayEnvir", function($args) {
      return this._$a.valueArrayEnvir($args).perform(this._$selector);
    });
Severity: Minor
Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 30 mins to fix
src/sc/classlib/Core/AbstractFunction.js on lines 647..649

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

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

  mathlib.leftShift = function(a, b) {
    if (b < 0) {
      return a >> -b;
    }
    return a << b;
Severity: Minor
Found in src/sc/libs/mathlib.js and 1 other location - About 30 mins to fix
src/sc/libs/mathlib.js on lines 124..129

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

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

        expected: "$.Function(function() {" +
                  "  var $_0, $_1;" +
                  "  return [" +
                  "    function(_arg0, _arg1) {" +
                  "      $_0 = _arg0;" +
Severity: Minor
Found in src/sc/lang/compiler/codegen/function-expr_test.js and 1 other location - About 30 mins to fix
src/sc/lang/compiler/codegen/function-expr_test.js on lines 355..366

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

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