tomchentw/react-toastr

View on GitHub

Showing 289 of 289 total issues

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

      function extendSelection(e, t, n, r, o) {
Severity: Minor
Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

          function domTextBetween(e, t, n, r, o) {
    Severity: Minor
    Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

            function coordsCharInner(e, t, n, r, o) {
      Severity: Minor
      Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

              function PosWithInfo(e, t, n, r, o) {
        Severity: Minor
        Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                function endOfLine(e, t, n, r, o) {
          Severity: Minor
          Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                    function parseJS(e, t, n, r, o) {
            Severity: Minor
            Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                    function insertLineWidgetsFor(e, t, n, r, o) {
              Severity: Minor
              Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                      function measureCharPrepared(e, t, n, r, o) {
                Severity: Minor
                Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                        function charCoords(e, t, n, r, o) {
                  Severity: Minor
                  Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                          function markText(e, t, n, r, o) {
                    Severity: Minor
                    Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                            function handleMappedButton(e, t, n, r, o) {
                      Severity: Minor
                      Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                              function skipAtomic(e, t, n, r, o) {
                        Severity: Minor
                        Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                                function findPosH(e, t, n, r, o) {
                          Severity: Minor
                          Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                                  function countColumn(e, t, n, r, o) {
                            Severity: Minor
                            Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                                handleOnCloseClick = event => {
                                  event.stopPropagation()
                                  this.props.onCloseClick(event)
                                  this.handleHide(true)
                                }
                              Severity: Minor
                              Found in src/components/ToastMessage/ToastMessageAnimated.jsx and 1 other location - About 35 mins to fix
                              src/components/ToastMessage/ToastMessagejQuery.jsx on lines 145..149

                              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

                                        i.to == t && (i.from != i.to && "before" == n ? (r = o) : (R = o)),
                              Severity: Minor
                              Found in docs/build/0.320b8cca.js and 1 other location - About 35 mins to fix
                              docs/build/0.320b8cca.js on lines 699..699

                              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

                                            (null == s.to || (l.inclusiveRight ? s.to >= t.ch : s.to > t.ch))
                              Severity: Minor
                              Found in docs/build/0.320b8cca.js and 1 other location - About 35 mins to fix
                              docs/build/0.320b8cca.js on lines 4065..4066

                              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

                                          i.from == t && (i.from != i.to && "before" != n ? (r = o) : (R = o))
                              Severity: Minor
                              Found in docs/build/0.320b8cca.js and 1 other location - About 35 mins to fix
                              docs/build/0.320b8cca.js on lines 698..698

                              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

                                      var d =
                                          e.curOp && null != e.curOp.scrollLeft
                                            ? e.curOp.scrollLeft
                                            : n.scroller.scrollLeft,
                              Severity: Minor
                              Found in docs/build/0.320b8cca.js and 1 other location - About 35 mins to fix
                              docs/build/0.320b8cca.js on lines 2773..2776

                              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

                                handleOnCloseClick = event => {
                                  event.stopPropagation()
                                  this.props.onCloseClick(event)
                                  this.handleHide(true)
                                }
                              Severity: Minor
                              Found in src/components/ToastMessage/ToastMessagejQuery.jsx and 1 other location - About 35 mins to fix
                              src/components/ToastMessage/ToastMessageAnimated.jsx on lines 159..163

                              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