appbaseio/mirage

View on GitHub

Showing 7,143 of 7,143 total issues

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

    _adjustOffsetFromHelper: function(obj) {
        if (typeof obj == 'string') {
            obj = obj.split(' ');
        }
        if ($.isArray(obj)) {
Severity: Major
Found in assets/vendor/jquery.layout/jquery-ui.js and 1 other location - About 1 day to fix
assets/vendor/jquery.layout/jquery-ui.js on lines 6180..6199

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

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

File app.component.ts has 689 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Component, OnInit, OnChanges, SimpleChange } from "@angular/core";
import { Subscription } from "rxjs/Subscription";
import { NgForm } from "@angular/forms";
import { AppbaseService } from "./shared/appbase.service";
import { StorageService } from "./shared/storage.service";
Severity: Major
Found in app/app.component.ts - About 1 day to fix

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

    describe('Gt query format', () => {
    
      // Set initial things
      // set expected query format
      var query: GtQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/gt.query.spec.ts and 1 other location - About 1 day to fix
    app/queryBlocks/singlequery/queries/lt.query.spec.ts on lines 3..50

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

    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

    describe('Lt query format', () => {
    
      // Set initial things
      // set expected query format
      var query: LtQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/lt.query.spec.ts and 1 other location - About 1 day to fix
    app/queryBlocks/singlequery/queries/gt.query.spec.ts on lines 3..50

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

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

    describe('Match_phrase query format', () => {
    
      // Set initial things
      // set expected query format
      var query: Match_phraseQuery;
    app/queryBlocks/singlequery/queries/fuzzy.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phase_prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/regexp.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/term.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/wildcard.query.spec.ts on lines 3..48

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

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

    describe('Prefix query format', () => {
    
      // Set initial things
      // set expected query format
      var query: FuzzyQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/fuzzy.query.spec.ts and 6 other locations - About 1 day to fix
    app/queryBlocks/singlequery/queries/match_phase_prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phrase.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/regexp.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/term.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/wildcard.query.spec.ts on lines 3..48

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

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

    describe('Term query format', () => {
    
      // Set initial things
      // set expected query format
      var query: TermQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/term.query.spec.ts and 6 other locations - About 1 day to fix
    app/queryBlocks/singlequery/queries/fuzzy.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phase_prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phrase.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/regexp.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/wildcard.query.spec.ts on lines 3..48

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

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

    describe('Prefix query format', () => {
    
      // Set initial things
      // set expected query format
      var query: WildcardQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/wildcard.query.spec.ts and 6 other locations - About 1 day to fix
    app/queryBlocks/singlequery/queries/fuzzy.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phase_prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phrase.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/regexp.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/term.query.spec.ts on lines 3..48

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

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

    describe('Prefix query format', () => {
    
      // Set initial things
      // set expected query format
      var query: RegexpQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/regexp.query.spec.ts and 6 other locations - About 1 day to fix
    app/queryBlocks/singlequery/queries/fuzzy.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phase_prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phrase.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/term.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/wildcard.query.spec.ts on lines 3..48

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

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

    describe('Match_phase_prefix query format', () => {
    
      // Set initial things
      // set expected query format
      var query: Match_phase_prefixQuery;
    app/queryBlocks/singlequery/queries/fuzzy.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phrase.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/regexp.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/term.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/wildcard.query.spec.ts on lines 3..48

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

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

    describe('Prefix query format', () => {
    
      // Set initial things
      // set expected query format
      var query: PrefixQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/prefix.query.spec.ts and 6 other locations - About 1 day to fix
    app/queryBlocks/singlequery/queries/fuzzy.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phase_prefix.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/match_phrase.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/regexp.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/term.query.spec.ts on lines 3..48
    app/queryBlocks/singlequery/queries/wildcard.query.spec.ts on lines 3..48

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

    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

                if ( data.collisionHeight > outerHeight ) {
                    // element is initially over the top of within
                    if ( overTop > 0 && overBottom <= 0 ) {
                        newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;
                        position.top += overTop - newOverBottom;
    Severity: Major
    Found in assets/vendor/jquery.layout/jquery-ui.js and 1 other location - About 1 day to fix
    assets/vendor/jquery.layout/jquery-ui.js on lines 1308..1333

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

    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

                if ( data.collisionWidth > outerWidth ) {
                    // element is initially over the left side of within
                    if ( overLeft > 0 && overRight <= 0 ) {
                        newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;
                        position.left += overLeft - newOverRight;
    Severity: Major
    Found in assets/vendor/jquery.layout/jquery-ui.js and 1 other location - About 1 day to fix
    assets/vendor/jquery.layout/jquery-ui.js on lines 1345..1370

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

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

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

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

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

    Refactorings

    Further Reading

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

                if (this.appliedQuery[this.current_query][this.selectedField]) {
                    if (this.appliedQuery[this.current_query][this.fieldName]
                        && typeof this.appliedQuery[this.current_query][this.fieldName] === 'object') {
                        this.inputs.input.value = this.appliedQuery[this.current_query][this.fieldName].query;
                        for (let option in this.appliedQuery[this.current_query][this.fieldName]) {
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/match_phrase.query.ts and 1 other location - About 1 day to fix
    app/queryBlocks/singlequery/queries/match_phase_prefix.query.ts on lines 94..110

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

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

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

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

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

    Refactorings

    Further Reading

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

                if(this.appliedQuery['match_phrase_prefix'][this.fieldName]) {
                    if (this.appliedQuery[this.current_query][this.fieldName]
                        && typeof this.appliedQuery[this.current_query][this.fieldName] === 'object') {
                        this.inputs.input.value = this.appliedQuery[this.current_query][this.fieldName].query;
                        for (let option in this.appliedQuery[this.current_query][this.fieldName]) {
    app/queryBlocks/singlequery/queries/match_phrase.query.ts on lines 90..106

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

    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

    describe('exists query format', () => {
    
      // Set initial things
      // set expected query format
      var query: ExistsQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/exists.query.spec.ts and 1 other location - About 1 day to fix
    app/queryBlocks/singlequery/queries/missing.query.spec.ts on lines 3..43

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

    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

    describe('missing query format', () => {
    
      // Set initial things
      // set expected query format
      var query: MissingQuery;
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/missing.query.spec.ts and 1 other location - About 1 day to fix
    app/queryBlocks/singlequery/queries/exists.query.spec.ts on lines 3..43

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

    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

            return {
                top: (
                    pageY                                                                // The absolute mouse position
                    - this.offset.click.top                                                    // Click offset (relative to the element)
                    - this.offset.relative.top                                                // Only for relative positioned nodes: Relative offset from element to offset parent
    Severity: Major
    Found in assets/vendor/jquery.layout/jquery-ui.js and 1 other location - About 1 day to fix
    assets/vendor/jquery.layout/jquery-ui.js on lines 6353..6368

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 230.

    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

            return {
                top: (
                    pageY                                                                // The absolute mouse position
                    - this.offset.click.top                                                    // Click offset (relative to the element)
                    - this.offset.relative.top                                                // Only for relative positioned nodes: Relative offset from element to offset parent
    Severity: Major
    Found in assets/vendor/jquery.layout/jquery-ui.js and 1 other location - About 1 day to fix
    assets/vendor/jquery.layout/jquery-ui.js on lines 12545..12560

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

    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

                if (this.appliedQuery[this.current_query][this.selectedField]) {
                    if (this.appliedQuery[this.current_query][this.fieldName].hasOwnProperty('query')) {
                        this.inputs.input.value = this.appliedQuery[this.current_query][this.fieldName].query;
                        for (let option in this.appliedQuery[this.current_query][this.fieldName]) {
                            if (option != 'query') {
    Severity: Major
    Found in app/queryBlocks/singlequery/queries/match.query.ts and 1 other location - About 1 day to fix
    app/queryBlocks/singlequery/queries/prefix.query.ts on lines 90..105

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

    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