drdgvhbh/node-XMLHttpRequest

View on GitHub
src/DOMException.ts

Summary

Maintainability
F
5 days
Test Coverage

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

export class InUseAttributeDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class StringSizeDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class NamespaceErrDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class HierarchyRequestDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class IndexSizeDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class WrongDocumentDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class InvalidCharacterDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class NoDataModificationAllowedDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class SyntaxErrDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class SecurityErrDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class InvalidModificationDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class NoDataAllowedDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class ValidationErrDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class NetworkErrDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class TimeoutDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class UrlMismatchDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class QuotaExceededDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class NotSupportedDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class InvalidAccessDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class TypeMismatchDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class InvalidNodeTypeDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 282..290

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

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

export class InvalidStateDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class AbortErrDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class NotFoundDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280
src/DOMException.ts on lines 282..290

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

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

export class DataCloneNodeTypeDOMException extends DOMException {
  public code: number;

  constructor(message = '', name = 'Error') {
    super(message, name);
Severity: Major
Found in src/DOMException.ts and 24 other locations - About 1 hr to fix
src/DOMException.ts on lines 42..50
src/DOMException.ts on lines 52..60
src/DOMException.ts on lines 62..70
src/DOMException.ts on lines 72..80
src/DOMException.ts on lines 82..90
src/DOMException.ts on lines 92..100
src/DOMException.ts on lines 102..110
src/DOMException.ts on lines 112..120
src/DOMException.ts on lines 122..130
src/DOMException.ts on lines 132..140
src/DOMException.ts on lines 142..150
src/DOMException.ts on lines 152..160
src/DOMException.ts on lines 162..170
src/DOMException.ts on lines 172..180
src/DOMException.ts on lines 182..190
src/DOMException.ts on lines 192..200
src/DOMException.ts on lines 202..210
src/DOMException.ts on lines 212..220
src/DOMException.ts on lines 222..230
src/DOMException.ts on lines 232..240
src/DOMException.ts on lines 242..250
src/DOMException.ts on lines 252..260
src/DOMException.ts on lines 262..270
src/DOMException.ts on lines 272..280

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

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

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

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

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

Refactorings

Further Reading

There are no issues that match your filters.

Category
Status