github.com/lastbackend/toolkit@v0.0.0-20241020043710-cafa37b95aad/.golangci.yml (about)

     1  run:
     2    timeout: 2m
     3    modules-download-mode: readonly
     4  
     5  linters:
     6    enable:
     7      - deadcode
     8      - errcheck
     9      - gosimple
    10      - gofmt
    11      - govet
    12      - staticcheck
    13      - unused
    14      - typecheck
    15      - unconvert
    16  
    17  issues:
    18    # Independently of option `exclude` we use default exclude patterns,
    19    # it can be disabled by this option.
    20    # To list all excluded by default patterns execute `golangci-lint run --help`.
    21    # Default: true.
    22    exclude-use-default: true
    23    # If set to true exclude and exclude-rules regular expressions become case-sensitive.
    24    # Default: false
    25    exclude-case-sensitive: false
    26    # The list of ids of default excludes to include or disable.
    27    # Default: []
    28    exclude:
    29      - EXC0002 # disable excluding of issues about comments from golint.
    30    # Maximum issues count per one linter.
    31    # Set to 0 to disable.
    32    # Default: 50
    33    max-issues-per-linter: 0
    34    # Maximum count of issues with the same text.
    35    # Set to 0 to disable.
    36    # Default: 3
    37    max-same-issues: 0
    38    # Fix found issues (if it's supported by the linter).
    39    fix: true
    40  
    41  skip-files:
    42    - ".*\\.pb\\.go$"
    43    - ".*\\.pb\\.*\\.go$"