AugurProject/augur-ui

View on GitHub

Showing 1,757 of 1,757 total issues

Function localStorageMiddleware has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

const localStorageMiddleware = store => next => action => {
  next(action);
  const state = store.getState();
  if (!state || !state.loginAccount || !state.loginAccount.address) {
    return;
Severity: Minor
Found in src/store.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function addReportingTransactions has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function addReportingTransactions(reports) {
  return (dispatch, getState) => {
    const { marketsData } = getState();
    const transactions = {};
    eachOf(reports, (reports, universe) => {
Severity: Minor
Found in src/modules/transactions/actions/add-transactions.js - About 1 hr to fix

    Function generateTradeOrders has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      (market, outcome, outcomeTradeInProgress) => {
        const tradeActions =
          outcomeTradeInProgress && outcomeTradeInProgress.tradeActions;
        if (
          !market ||
    Severity: Minor
    Found in src/modules/trades/helpers/generate-trade.js - About 1 hr to fix

      Function toggleMenuTween has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        toggleMenuTween(menuKey, forceOpen, cb) {
          if (getValue(this.state[menuKey], "currentTween.stop"))
            this.state[menuKey].currentTween.stop();
      
          let nowOpen = !this.state[menuKey].open;
      Severity: Minor
      Found in src/modules/app/components/app/app.jsx - About 1 hr to fix

        Function render has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          render() {
            const s = this.state;
            const { transaction } = this.props;
        
            return (

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

                {
                  id: "order3",
                  avgPrice: formatEther("10"),
                  type: "sell",
                  matchedShares: formatNone(),
          Severity: Major
          Found in src/modules/orders/selectors/user-open-orders.test.js and 5 other locations - About 1 hr to fix
          src/modules/orders/selectors/user-open-orders.test.js on lines 190..200
          src/modules/orders/selectors/user-open-orders.test.js on lines 201..211
          src/modules/orders/selectors/user-open-orders.test.js on lines 223..233
          src/modules/orders/selectors/user-open-orders.test.js on lines 234..244
          src/modules/orders/selectors/user-open-orders.test.js on lines 245..255

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

          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

              expect(orderBook.asks[0]).toEqual(
                {
                  price: formatEther(0.5),
                  shares: formatShares(14),
                  isOfCurrentUser: false,
          Severity: Major
          Found in src/modules/orders/selectors/select-order-book.test.js and 3 other locations - About 1 hr to fix
          src/modules/orders/selectors/select-order-book.test.js on lines 119..128
          src/modules/orders/selectors/select-order-book.test.js on lines 150..159
          src/modules/orders/selectors/select-order-book.test.js on lines 160..169

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

          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

              expect(orderBook.bids[1]).toEqual(
                {
                  price: formatEther(0.2),
                  shares: formatShares(10),
                  isOfCurrentUser: false,
          Severity: Major
          Found in src/modules/orders/selectors/select-order-book.test.js and 3 other locations - About 1 hr to fix
          src/modules/orders/selectors/select-order-book.test.js on lines 140..149
          src/modules/orders/selectors/select-order-book.test.js on lines 150..159
          src/modules/orders/selectors/select-order-book.test.js on lines 160..169

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

          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

              expect(orderBook.asks[2]).toEqual(
                {
                  price: formatEther(0.7),
                  shares: formatShares(10),
                  isOfCurrentUser: false,
          Severity: Major
          Found in src/modules/orders/selectors/select-order-book.test.js and 3 other locations - About 1 hr to fix
          src/modules/orders/selectors/select-order-book.test.js on lines 119..128
          src/modules/orders/selectors/select-order-book.test.js on lines 140..149
          src/modules/orders/selectors/select-order-book.test.js on lines 150..159

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

          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

                        <button
                          className={classNames(FormStyles.Form__prev, {
                            [`${FormStyles["hide-button"]}`]: s.currentStep === 0
                          })}
                          onClick={this.prevPage}
          src/modules/forking/components/migrate-rep/migrate-rep.jsx on lines 162..169
          src/modules/reporting/components/reporting-report/reporting-report.jsx on lines 239..246

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

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

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

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

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

          Refactorings

          Further Reading

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

          export default function(denominations = DEFAULT_STATE, action) {
            switch (action.type) {
              case UPDATE_SCALAR_MARKET_SHARE_DENOMINATION:
                return {
                  ...denominations,
          src/modules/markets/reducers/market-trading-history.js on lines 6..18
          src/modules/markets/reducers/price-history.js on lines 6..18

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

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

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

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

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

          Refactorings

          Further Reading

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

                  {nonForkingMarketsCount > 0 &&
                    !isForking &&
                    nonForkingMarkets.map(market => (
                      <DisputeMarketCard
                        key={market.id}
          src/modules/reporting/components/common/disputing-markets.jsx on lines 234..245
          src/modules/reporting/components/common/disputing-markets.jsx on lines 246..256

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

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

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

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

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

          Refactorings

          Further Reading

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

                {
                  id: "order1",
                  avgPrice: formatEther("100"),
                  type: "sell",
                  matchedShares: formatNone(),
          Severity: Major
          Found in src/modules/orders/selectors/user-open-orders.test.js and 5 other locations - About 1 hr to fix
          src/modules/orders/selectors/user-open-orders.test.js on lines 201..211
          src/modules/orders/selectors/user-open-orders.test.js on lines 212..222
          src/modules/orders/selectors/user-open-orders.test.js on lines 223..233
          src/modules/orders/selectors/user-open-orders.test.js on lines 234..244
          src/modules/orders/selectors/user-open-orders.test.js on lines 245..255

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

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

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

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

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

          Refactorings

          Further Reading

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

                {
                  id: "order2",
                  avgPrice: formatEther("70"),
                  type: "sell",
                  matchedShares: formatNone(),
          Severity: Major
          Found in src/modules/orders/selectors/user-open-orders.test.js and 5 other locations - About 1 hr to fix
          src/modules/orders/selectors/user-open-orders.test.js on lines 190..200
          src/modules/orders/selectors/user-open-orders.test.js on lines 212..222
          src/modules/orders/selectors/user-open-orders.test.js on lines 223..233
          src/modules/orders/selectors/user-open-orders.test.js on lines 234..244
          src/modules/orders/selectors/user-open-orders.test.js on lines 245..255

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

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

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

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

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

          Refactorings

          Further Reading

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

          export default function(priceHistory = DEFAULT_STATE, action) {
            switch (action.type) {
              case UPDATE_MARKET_PRICE_HISTORY:
                return {
                  ...priceHistory,
          Severity: Major
          Found in src/modules/markets/reducers/price-history.js and 2 other locations - About 1 hr to fix
          src/modules/markets/reducers/market-trading-history.js on lines 6..18
          src/modules/markets/reducers/scalar-markets-share-denomination.js on lines 6..18

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

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

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

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

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

          Refactorings

          Further Reading

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

                {
                  id: "order13",
                  avgPrice: formatEther("20"),
                  type: "buy",
                  matchedShares: formatNone(),
          Severity: Major
          Found in src/modules/orders/selectors/user-open-orders.test.js and 5 other locations - About 1 hr to fix
          src/modules/orders/selectors/user-open-orders.test.js on lines 190..200
          src/modules/orders/selectors/user-open-orders.test.js on lines 201..211
          src/modules/orders/selectors/user-open-orders.test.js on lines 212..222
          src/modules/orders/selectors/user-open-orders.test.js on lines 223..233
          src/modules/orders/selectors/user-open-orders.test.js on lines 245..255

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

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

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

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

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

          Refactorings

          Further Reading

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

          export default function(tradingHistory = DEFAULT_STATE, action) {
            switch (action.type) {
              case UPDATE_MARKET_TRADING_HISTORY:
                return {
                  ...tradingHistory,
          Severity: Major
          Found in src/modules/markets/reducers/market-trading-history.js and 2 other locations - About 1 hr to fix
          src/modules/markets/reducers/price-history.js on lines 6..18
          src/modules/markets/reducers/scalar-markets-share-denomination.js on lines 6..18

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

          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

                        <button
                          className={classNames(FormStyles.Form__prev, {
                            [`${FormStyles["hide-button"]}`]: s.currentStep === 0
                          })}
                          onClick={this.prevPage}
          Severity: Major
          Found in src/modules/forking/components/migrate-rep/migrate-rep.jsx and 2 other locations - About 1 hr to fix
          src/modules/reporting/components/reporting-dispute/reporting-dispute.jsx on lines 173..180
          src/modules/reporting/components/reporting-report/reporting-report.jsx on lines 239..246

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

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

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

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

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

          Refactorings

          Further Reading

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

                {
                  id: "order11",
                  avgPrice: formatEther("60"),
                  type: "buy",
                  matchedShares: formatNone(),
          Severity: Major
          Found in src/modules/orders/selectors/user-open-orders.test.js and 5 other locations - About 1 hr to fix
          src/modules/orders/selectors/user-open-orders.test.js on lines 190..200
          src/modules/orders/selectors/user-open-orders.test.js on lines 201..211
          src/modules/orders/selectors/user-open-orders.test.js on lines 212..222
          src/modules/orders/selectors/user-open-orders.test.js on lines 234..244
          src/modules/orders/selectors/user-open-orders.test.js on lines 245..255

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

          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

              expect(orderBook.asks[1]).toEqual(
                {
                  price: formatEther(0.6),
                  shares: formatShares(23),
                  isOfCurrentUser: false,
          Severity: Major
          Found in src/modules/orders/selectors/select-order-book.test.js and 3 other locations - About 1 hr to fix
          src/modules/orders/selectors/select-order-book.test.js on lines 119..128
          src/modules/orders/selectors/select-order-book.test.js on lines 140..149
          src/modules/orders/selectors/select-order-book.test.js on lines 160..169

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

          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