seerline/clchart

View on GitHub

Showing 392 of 392 total issues

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

    this.rectMess = {
      left: this.rectMain.left,
      top: this.rectMain.top,
      width: 0,
      height: 0
Severity: Minor
Found in src/chart/cl.chart.line.js and 1 other location - About 40 mins to fix
src/chart/cl.chart.line.js on lines 152..157

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

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

Function _clearRect has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

export function _clearRect (context, xx, yy, ww, hh) {
Severity: Minor
Found in src/util/cl.draw.js - About 35 mins to fix

    Function transExrightDay has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export function transExrightDay (days, rights, mode, start, end) {
    Severity: Minor
    Found in src/data/cl.data.tools.js - About 35 mins to fix

      Function _transExright has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function _transExright (days, rightdata, mode, start, end) {
      Severity: Minor
      Found in src/data/cl.data.tools.js - About 35 mins to fix

        Function _drawSignPlot has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        export function _drawSignPlot (context, x, y, Arc1, Arc2) {
        Severity: Minor
        Found in src/util/cl.draw.js - About 35 mins to fix

          Function formatInfo has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          export function formatInfo (value, format, coindot, volzoom, middle) {
          Severity: Minor
          Found in src/util/cl.tool.js - About 35 mins to fix

            Function transExrightMin has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            export function transExrightMin (days, rights, mode, start, end) {
            Severity: Minor
            Found in src/data/cl.data.tools.js - About 35 mins to fix

              Function _drawline has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              export function _drawline (context, xx1, yy1, xx2, yy2) {
              Severity: Minor
              Found in src/util/cl.draw.js - About 35 mins to fix

                Function _drawTxtRect has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                export function _drawTxtRect (context, xx, yy, txt, config) {
                Severity: Minor
                Found in src/util/cl.draw.js - About 35 mins to fix

                  Function _getImageData has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  export function _getImageData (context, xx, yy, ww, hh) {
                  Severity: Minor
                  Found in src/util/cl.draw.js - About 35 mins to fix

                    Function _drawRect has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    export function _drawRect (context, xx, yy, ww, hh) {
                    Severity: Minor
                    Found in src/util/cl.draw.js - About 35 mins to fix

                      Function _drawCircleAndFilled has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function _drawCircleAndFilled (context, x, y, r, clr) {
                      Severity: Minor
                      Found in src/util/cl.draw.js - About 35 mins to fix

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

                              _drawRect(this.context, this.rectMid.left, this.rectMid.top,
                                this.rectMid.width, this.rectMid.height)
                        Severity: Major
                        Found in src/chart/cl.chart.scroll.js and 5 other locations - About 35 mins to fix
                        src/chart/cl.chart.board.js on lines 228..228
                        src/chart/cl.chart.board.js on lines 425..425
                        src/chart/cl.chart.button.js on lines 155..155
                        src/chart/cl.chart.line.js on lines 544..544
                        src/plugins/cl.super.js on lines 280..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 47.

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

                            _drawRect(this.context, this.rectMain.left, this.rectMain.top, this.rectMain.width, this.rectMain.height)
                        Severity: Major
                        Found in src/chart/cl.chart.line.js and 5 other locations - About 35 mins to fix
                        src/chart/cl.chart.board.js on lines 228..228
                        src/chart/cl.chart.board.js on lines 425..425
                        src/chart/cl.chart.button.js on lines 155..155
                        src/chart/cl.chart.scroll.js on lines 317..318
                        src/plugins/cl.super.js on lines 280..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 47.

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

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

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

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

                        Refactorings

                        Further Reading

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

                            for (const key in chart.childDraws) {
                              chart.childDraws[key].color = this.color
                              this.setColor(sysColor, chart.childDraws[key])
                            }
                        Severity: Minor
                        Found in src/chart/cl.chart.js and 2 other locations - About 35 mins to fix
                        src/chart/cl.chart.js on lines 317..320
                        src/chart/cl.chart.js on lines 326..329

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

                        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

                                _drawTxt(this.context, xx, yy, value,
                                  this.text.font, this.text.pixel, this.color.axis, {
                                    y: 'middle'
                                  })
                        Severity: Minor
                        Found in src/chart/cl.draw.axisX.js and 1 other location - About 35 mins to fix
                        src/chart/cl.draw.axisX.js on lines 98..101

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

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

                            _drawRect(this.context, this.rectMain.left, this.rectMain.top, this.rectMain.width, this.rectMain.height)
                        Severity: Major
                        Found in src/chart/cl.chart.board.js and 5 other locations - About 35 mins to fix
                        src/chart/cl.chart.board.js on lines 425..425
                        src/chart/cl.chart.button.js on lines 155..155
                        src/chart/cl.chart.line.js on lines 544..544
                        src/chart/cl.chart.scroll.js on lines 317..318
                        src/plugins/cl.super.js on lines 280..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 47.

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

                                _drawRect(this.context, this.rectMain.left, this.rectMain.top, this.rectMain.width, this.rectMain.height)
                        Severity: Major
                        Found in src/chart/cl.chart.button.js and 5 other locations - About 35 mins to fix
                        src/chart/cl.chart.board.js on lines 228..228
                        src/chart/cl.chart.board.js on lines 425..425
                        src/chart/cl.chart.line.js on lines 544..544
                        src/chart/cl.chart.scroll.js on lines 317..318
                        src/plugins/cl.super.js on lines 280..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 47.

                        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.config.axisY.left.display !== 'none') axisInfo.left += this.layout.axisX.width
                        Severity: Minor
                        Found in src/chart/cl.chart.line.js and 1 other location - About 35 mins to fix
                        src/chart/cl.chart.line.js on lines 187..187

                        Duplicated Code

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

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

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

                        Tuning

                        This issue has a mass of 47.

                        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 ((yy + item[i].maxR) > config.bottom) yy = config.bottom - item[i].maxR
                        Severity: Minor
                        Found in src/util/cl.draw.js and 1 other location - About 35 mins to fix
                        src/util/cl.draw.js on lines 566..566

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

                        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