ineffassign

Detect ineffectual assignments in Go code.

Version

99762ed65232b1477364c8c53778f8b6503e868c

Runtime

Go Versions

Supported Languages

Go

Official Documentation

https://github.com/gordonklaus/ineffassign/tree/99762ed65232b1477364c8c53778f8b6503e868c

YAML Configuration

ineffassign:

  • input:

    Patterns to include in execution and reports.

  • ignore:

    Patterns to exclude from execution and reports.

  • auto-fix:

    N/A

  • config-file:

    N/A

  • machine:

    • cpu:

      Amount of CPU. The default machine has 0.25 CPU with 960 MiB RAM.

YAML Examples

  • With default options:

    inspecode:
      ineffassign: default
  • With custom machine:

    inspecode:
      ineffassign:
        machine:
          cpu: 1.5 # 1.5 CPU, 5760 MiB RAM

results matching ""

    No results matching ""