trufflesuite/truffle

View on GitHub

Showing 1,401 of 1,401 total issues

Function withMulticallInterpretations has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private async withMulticallInterpretations(
    decoding: FunctionDecoding,
    transaction: DecoderTypes.Transaction,
    additionalContexts: Contexts.Contexts = {},
    additionalAllocations?: {
Severity: Minor
Found in packages/decoder/lib/decoders.ts - About 1 hr to fix

    Function connectPromise has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            (resolve, reject) => {
              return {
                open: () => {
                  debug(
                    "connect: %s connection succeeded to url %s",
    Severity: Minor
    Found in packages/dashboard-message-bus-client/lib/connection/index.ts - About 1 hr to fix

      Function codex has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

      function codex(state = DEFAULT_CODEX, action) {
        let newState, topCodex, topCodexNoZero;
      
        const updateFrameStorage = (frame, address, slot, value) => ({
          ...frame,
      Severity: Minor
      Found in packages/debugger/lib/evm/reducers.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 setUserConfigViaPrompt has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

        setUserConfigViaPrompt: async function () {
          if (
            !this.getUserConfig().get("analyticsSet") &&
            process.stdin.isTTY === true
          ) {
      Severity: Minor
      Found in packages/core/lib/commands/config/utils.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 deployed has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

        deployed: async function(options) {
          let files;
          try {
            // Only read JSON files in directory
            files = fs
      Severity: Minor
      Found in packages/core/lib/networks.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 getCommand has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

      const getCommand = ({ inputStrings, options, noAliases }) => {
        if (inputStrings.length === 0) {
          return null;
        }
      
      
      Severity: Minor
      Found in packages/core/lib/command-utils.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 compile has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

      async function compile(config) {
        // determine compiler(s) to use
        const compilers = config.compiler
          ? config.compiler === "none"
            ? []
      Severity: Minor
      Found in packages/workflow-compile/src/index.ts - 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 decodeLiteral has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

      export function* decodeLiteral(
        dataType: Format.Types.Type,
        pointer: Pointer.StackLiteralPointer,
        info: Evm.EvmInfo
      ): Generator<DecoderRequest, Format.Values.Result, Uint8Array | null> {
      Severity: Minor
      Found in packages/codec/lib/stack/decode/index.ts - 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

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

      export const { UintPaddingError } = createCodecComponent(
        "UintPaddingError",
        ({ kind, raw }: Format.Errors.UintPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11

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

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

      export const { EnumPaddingError } = createCodecComponent(
        "EnumPaddingError",
        ({ kind, raw }: Format.Errors.EnumPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { IntPaddingError } = createCodecComponent(
        "IntPaddingError",
        ({ kind, raw }: Format.Errors.IntPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { AddressPaddingError } = createCodecComponent(
        "AddressPaddingError",
        ({ kind, raw }: Format.Errors.AddressPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { BytesPaddingError } = createCodecComponent(
        "BytesPaddingError",
        ({ kind, raw }: Format.Errors.BytesPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { FunctionExternalStackPaddingError } = createCodecComponent(
        "FunctionExternalStackPaddingError",
        ({ kind, rawAddress }: Format.Errors.FunctionExternalStackPaddingError) => (
          <CodecError kind={kind}>{rawAddress}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { FunctionExternalNonStackPaddingError } = createCodecComponent(
        "FunctionExternalNonStackPaddingError",
        ({ kind, raw }: Format.Errors.FunctionExternalNonStackPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { ContractPaddingError } = createCodecComponent(
        "ContractPaddingError",
        ({ kind, raw }: Format.Errors.ContractPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { FixedPaddingError } = createCodecComponent(
        "FixedPaddingError",
        ({ kind, raw }: Format.Errors.FixedPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { IndexedReferenceTypeError } = createCodecComponent(
        "IndexedReferenceTypeError",
        ({ kind, raw }: Format.Errors.IndexedReferenceTypeError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { BoolPaddingError } = createCodecComponent(
        "BoolPaddingError",
        ({ kind, raw }: Format.Errors.BoolPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-internal-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

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

      export const { FunctionInternalPaddingError } = createCodecComponent(
        "FunctionInternalPaddingError",
        ({ kind, raw }: Format.Errors.FunctionInternalPaddingError) => (
          <CodecError kind={kind}>{raw}</CodecError>
        )
      packages/codec-components/src/react/components/codec/format.errors.address-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bool-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.bytes-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.contract-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.enum-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.fixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-non-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.function-external-stack-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.indexed-reference-type-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.int-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.ufixed-padding-error.tsx on lines 6..11
      packages/codec-components/src/react/components/codec/format.errors.uint-padding-error.tsx on lines 6..11

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

      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