prescottprue/react-google-button

View on GitHub
examples/basic/react-google-button.js

Summary

Maintainability
F
2 wks
Test Coverage

File react-google-button.js has 1067 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! react-google-button.js v0.3.0 | (c) prescottprue */
(function webpackUniversalModuleDefinition(root, factory) {
    if(typeof exports === 'object' && typeof module === 'object')
        module.exports = factory(require("react"));
    else if(typeof define === 'function' && define.amd)
Severity: Major
Found in examples/basic/react-google-button.js - About 2 days to fix

    Function exports has 352 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(isValidElement, throwOnDirectAccess) {
      /* global Symbol */
      var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
      var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
    
    
    Severity: Major
    Found in examples/basic/react-google-button.js - About 1 day to fix

      Function GoogleButton has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var GoogleButton = function (_Component) {
        _inherits(GoogleButton, _Component);
      
        function GoogleButton() {
          var _ref;
      Severity: Major
      Found in examples/basic/react-google-button.js - About 2 hrs to fix

        Function createChainableTypeChecker has 51 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function createChainableTypeChecker(validate) {
            if (process.env.NODE_ENV !== 'production') {
              var manualPropTypeCallCache = {};
              var manualPropTypeWarningCount = 0;
            }
        Severity: Major
        Found in examples/basic/react-google-button.js - About 2 hrs to fix

          Function checkType has 42 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
                componentName = componentName || ANONYMOUS;
                propFullName = propFullName || propName;
          
                if (secret !== ReactPropTypesSecret) {
          Severity: Minor
          Found in examples/basic/react-google-button.js - About 1 hr to fix

            Function isNode has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function isNode(propValue) {
                switch (typeof propValue) {
                  case 'number':
                  case 'string':
                  case 'undefined':
            Severity: Minor
            Found in examples/basic/react-google-button.js - About 1 hr to fix

              Function exports has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              module.exports = function() {
                function shim(props, propName, componentName, location, propFullName, secret) {
                  if (secret === ReactPropTypesSecret) {
                    // It is still safe when called from React.
                    return;
              Severity: Minor
              Found in examples/basic/react-google-button.js - About 1 hr to fix

                Function GoogleButton has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function GoogleButton() {
                    var _ref;
                
                    var _temp, _this, _ret;
                
                
                Severity: Minor
                Found in examples/basic/react-google-button.js - About 1 hr to fix

                  Function createUnionTypeChecker has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function createUnionTypeChecker(arrayOfTypeCheckers) {
                      if (!Array.isArray(arrayOfTypeCheckers)) {
                        process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
                        return emptyFunction.thatReturnsNull;
                      }
                  Severity: Minor
                  Found in examples/basic/react-google-button.js - About 1 hr to fix

                    Function invariant has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function invariant(condition, format, a, b, c, d, e, f) {
                    Severity: Major
                    Found in examples/basic/react-google-button.js - About 1 hr to fix

                      Function checkType has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
                      Severity: Major
                      Found in examples/basic/react-google-button.js - About 50 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                      if (!isNode(step.value)) {
                                        return false;
                                      }
                        Severity: Major
                        Found in examples/basic/react-google-button.js - About 45 mins to fix

                          Function validate has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              function validate(props, propName, componentName, location, propFullName, secret) {
                          Severity: Minor
                          Found in examples/basic/react-google-button.js - About 45 mins to fix

                            Function shim has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              function shim(props, propName, componentName, location, propFullName, secret) {
                            Severity: Minor
                            Found in examples/basic/react-google-button.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                            if (entry) {
                                              if (!isNode(entry[1])) {
                                                return false;
                                              }
                                            }
                              Severity: Major
                              Found in examples/basic/react-google-button.js - About 45 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                if (process.env.NODE_ENV !== 'production') {
                                  var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
                                    Symbol.for &&
                                    Symbol.for('react.element')) ||
                                    0xeac7;
                                Severity: Major
                                Found in examples/basic/react-google-button.js - About 40 mins to fix

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

                                      function validate(props, propName, componentName, location, propFullName) {
                                  Severity: Minor
                                  Found in examples/basic/react-google-button.js - About 35 mins to fix

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

                                        function validate(props, propName, componentName, location, propFullName) {
                                    Severity: Minor
                                    Found in examples/basic/react-google-button.js - About 35 mins to fix

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

                                          function validate(props, propName, componentName, location, propFullName) {
                                      Severity: Minor
                                      Found in examples/basic/react-google-button.js - About 35 mins to fix

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

                                            function validate(props, propName, componentName, location, propFullName) {
                                        Severity: Minor
                                        Found in examples/basic/react-google-button.js - About 35 mins to fix

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

                                              function validate(props, propName, componentName, location, propFullName) {
                                          Severity: Minor
                                          Found in examples/basic/react-google-button.js - About 35 mins to fix

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

                                                function validate(props, propName, componentName, location, propFullName) {
                                            Severity: Minor
                                            Found in examples/basic/react-google-button.js - About 35 mins to fix

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

                                              function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
                                              Severity: Minor
                                              Found in examples/basic/react-google-button.js - About 35 mins to fix

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

                                                    function validate(props, propName, componentName, location, propFullName) {
                                                Severity: Minor
                                                Found in examples/basic/react-google-button.js - About 35 mins to fix

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

                                                      function validate(props, propName, componentName, location, propFullName) {
                                                  Severity: Minor
                                                  Found in examples/basic/react-google-button.js - About 35 mins to fix

                                                    Avoid too many return statements within this function.
                                                    Open

                                                              return false;
                                                    Severity: Major
                                                    Found in examples/basic/react-google-button.js - About 30 mins to fix

                                                      Avoid too many return statements within this function.
                                                      Open

                                                                  return cachedClearTimeout.call(this, marker);
                                                      Severity: Major
                                                      Found in examples/basic/react-google-button.js - About 30 mins to fix

                                                        Avoid too many return statements within this function.
                                                        Open

                                                                    return cachedSetTimeout.call(this, fun, 0);
                                                        Severity: Major
                                                        Found in examples/basic/react-google-button.js - About 30 mins to fix

                                                          Avoid too many return statements within this function.
                                                          Open

                                                                  return true;
                                                          Severity: Major
                                                          Found in examples/basic/react-google-button.js - About 30 mins to fix

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

                                                                _react2.default.createElement(
                                                                  'filter',
                                                                  { x: '-50%', y: '-50%', width: '200%', height: '200%', filterUnits: 'objectBoundingBox', id: 'filter-1' },
                                                                  _react2.default.createElement('feOffset', { dx: '0', dy: '1', 'in': 'SourceAlpha', result: 'shadowOffsetOuter1' }),
                                                                  _react2.default.createElement('feGaussianBlur', { stdDeviation: '0.5', 'in': 'shadowOffsetOuter1', result: 'shadowBlurOuter1' }),
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 day to fix
                                                            examples/basic/react-google-button.js on lines 1485..1501

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

                                                            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

                                                                _react2.default.createElement(
                                                                  'filter',
                                                                  { x: '-50%', y: '-50%', width: '200%', height: '200%', filterUnits: 'objectBoundingBox', id: 'filter-1' },
                                                                  _react2.default.createElement('feOffset', { dx: '0', dy: '1', 'in': 'SourceAlpha', result: 'shadowOffsetOuter1' }),
                                                                  _react2.default.createElement('feGaussianBlur', { stdDeviation: '0.5', 'in': 'shadowOffsetOuter1', result: 'shadowBlurOuter1' }),
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 day to fix
                                                            examples/basic/react-google-button.js on lines 1418..1434

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

                                                            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

                                                                  _react2.default.createElement(
                                                                    'g',
                                                                    { id: 'logo_googleg_48dp', transform: 'translate(15.000000, 15.000000)' },
                                                                    _react2.default.createElement('path', { d: 'M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z', id: 'Shape', fill: '#4285F4' }),
                                                                    _react2.default.createElement('path', { d: 'M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z', id: 'Shape', fill: '#34A853' }),
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 6 hrs to fix
                                                            examples/basic/react-google-button.js on lines 1465..1473

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

                                                            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

                                                                  _react2.default.createElement(
                                                                    'g',
                                                                    { id: 'logo_googleg_48dp', transform: 'translate(15.000000, 15.000000)' },
                                                                    _react2.default.createElement('path', { d: 'M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z', id: 'Shape', fill: '#4285F4' }),
                                                                    _react2.default.createElement('path', { d: 'M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z', id: 'Shape', fill: '#34A853' }),
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 6 hrs to fix
                                                            examples/basic/react-google-button.js on lines 1523..1531

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

                                                            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

                                                                  _react2.default.createElement(
                                                                    'g',
                                                                    { id: 'button', transform: 'translate(4.000000, 4.000000)', filter: 'url(#filter-1)' },
                                                                    _react2.default.createElement(
                                                                      'g',
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 5 hrs to fix
                                                            examples/basic/react-google-button.js on lines 1445..1456

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

                                                            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

                                                                  _react2.default.createElement(
                                                                    'g',
                                                                    { id: 'button', transform: 'translate(4.000000, 4.000000)', filter: 'url(#filter-1)' },
                                                                    _react2.default.createElement(
                                                                      'g',
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 5 hrs to fix
                                                            examples/basic/react-google-button.js on lines 1511..1522

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

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

                                                            var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 2 other locations - About 3 hrs to fix
                                                            examples/basic/react-google-button.js on lines 521..521
                                                            examples/basic/react-google-button.js on lines 1398..1398

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

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

                                                            var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 2 other locations - About 3 hrs to fix
                                                            examples/basic/react-google-button.js on lines 626..626
                                                            examples/basic/react-google-button.js on lines 1398..1398

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

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

                                                            var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 2 other locations - About 3 hrs to fix
                                                            examples/basic/react-google-button.js on lines 521..521
                                                            examples/basic/react-google-button.js on lines 626..626

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

                                                            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

                                                                    for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
                                                                      args[_key2 - 2] = arguments[_key2];
                                                                    }
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 hr to fix
                                                            examples/basic/react-google-button.js on lines 468..470

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

                                                            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

                                                                  for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
                                                                    args[_key - 1] = arguments[_key];
                                                                  }
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 hr to fix
                                                            examples/basic/react-google-button.js on lines 497..499

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

                                                            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 (!isValidElement(propValue)) {
                                                                    var propType = getPropType(propValue);
                                                                    return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
                                                                  }
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 hr to fix
                                                            examples/basic/react-google-button.js on lines 970..973

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

                                                            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 (!Array.isArray(propValue)) {
                                                                    var propType = getPropType(propValue);
                                                                    return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
                                                                  }
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 hr to fix
                                                            examples/basic/react-google-button.js on lines 988..991

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

                                                            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

                                                            var iconStyle = exports.iconStyle = {
                                                              width: '48px',
                                                              height: '48px',
                                                              textAlign: 'center',
                                                              verticalAlign: 'center',
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 hr to fix
                                                            src/styles.js on lines 30..42

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

                                                            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 new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 hr to fix
                                                            examples/basic/react-google-button.js on lines 1002..1002

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

                                                            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 new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 1 hr to fix
                                                            examples/basic/react-google-button.js on lines 953..953

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

                                                            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

                                                                try {
                                                                    if (typeof clearTimeout === 'function') {
                                                                        cachedClearTimeout = clearTimeout;
                                                                    } else {
                                                                        cachedClearTimeout = defaultClearTimeout;
                                                            Severity: Minor
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 50 mins to fix
                                                            examples/basic/react-google-button.js on lines 99..107

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

                                                            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

                                                                try {
                                                                    if (typeof setTimeout === 'function') {
                                                                        cachedSetTimeout = setTimeout;
                                                                    } else {
                                                                        cachedSetTimeout = defaultSetTimout;
                                                            Severity: Minor
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 50 mins to fix
                                                            examples/basic/react-google-button.js on lines 108..116

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

                                                            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 (!Array.isArray(arrayOfTypeCheckers)) {
                                                                  process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
                                                                  return emptyFunction.thatReturnsNull;
                                                                }
                                                            Severity: Minor
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 50 mins to fix
                                                            examples/basic/react-google-button.js on lines 1010..1013

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

                                                            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 (!Array.isArray(expectedValues)) {
                                                                  process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
                                                                  return emptyFunction.thatReturnsNull;
                                                                }
                                                            Severity: Minor
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 50 mins to fix
                                                            examples/basic/react-google-button.js on lines 1053..1056

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

                                                            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

                                                                }, _this.mouseOut = function () {
                                                                  if (!_this.props.disabled) {
                                                                    _this.setState({ hovered: false });
                                                                  }
                                                                }, _this.click = function (e) {
                                                            Severity: Minor
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 40 mins to fix
                                                            examples/basic/react-google-button.js on lines 675..679

                                                            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

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

                                                                }, _this.mouseOver = function () {
                                                                  if (!_this.props.disabled) {
                                                                    _this.setState({ hovered: true });
                                                                  }
                                                                }, _this.mouseOut = function () {
                                                            Severity: Minor
                                                            Found in examples/basic/react-google-button.js and 1 other location - About 40 mins to fix
                                                            examples/basic/react-google-button.js on lines 679..683

                                                            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

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

                                                                _react2.default.createElement('rect', { id: 'path-2', x: '0', y: '0', width: '40', height: '40', rx: '2' })
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 3 other locations - About 30 mins to fix
                                                            examples/basic/react-google-button.js on lines 1435..1435
                                                            examples/basic/react-google-button.js on lines 1436..1436
                                                            examples/basic/react-google-button.js on lines 1543..1543

                                                            Duplicated Code

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

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

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

                                                            Tuning

                                                            This issue has a mass of 45.

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

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

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

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

                                                            Refactorings

                                                            Further Reading

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

                                                                _react2.default.createElement('rect', { id: 'path-1', x: '0', y: '0', width: '40', height: '40', rx: '2' })
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 3 other locations - About 30 mins to fix
                                                            examples/basic/react-google-button.js on lines 1435..1435
                                                            examples/basic/react-google-button.js on lines 1436..1436
                                                            examples/basic/react-google-button.js on lines 1502..1502

                                                            Duplicated Code

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

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

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

                                                            Tuning

                                                            This issue has a mass of 45.

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

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

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

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

                                                            Refactorings

                                                            Further Reading

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

                                                                _react2.default.createElement('rect', { id: 'path-2', x: '0', y: '0', width: '40', height: '40', rx: '2' }),
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 3 other locations - About 30 mins to fix
                                                            examples/basic/react-google-button.js on lines 1436..1436
                                                            examples/basic/react-google-button.js on lines 1502..1502
                                                            examples/basic/react-google-button.js on lines 1543..1543

                                                            Duplicated Code

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

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

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

                                                            Tuning

                                                            This issue has a mass of 45.

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

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

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

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

                                                            Refactorings

                                                            Further Reading

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

                                                                _react2.default.createElement('rect', { id: 'path-3', x: '5', y: '5', width: '38', height: '38', rx: '1' })
                                                            Severity: Major
                                                            Found in examples/basic/react-google-button.js and 3 other locations - About 30 mins to fix
                                                            examples/basic/react-google-button.js on lines 1435..1435
                                                            examples/basic/react-google-button.js on lines 1502..1502
                                                            examples/basic/react-google-button.js on lines 1543..1543

                                                            Duplicated Code

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

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

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

                                                            Tuning

                                                            This issue has a mass of 45.

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

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

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

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

                                                            Refactorings

                                                            Further Reading

                                                            There are no issues that match your filters.

                                                            Category
                                                            Status