go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/.golangci.yml (about)

     1  # Copyright (c) Mondoo, Inc.
     2  # SPDX-License-Identifier: BUSL-1.1
     3  
     4  # See https://golangci-lint.run/usage/configuration/ for configuration options
     5  run:
     6    timeout: 5m
     7    skip-dirs:
     8    skip-files:
     9      - ".*\\.pb\\.go$"
    10      - ".*\\.lr\\.go$"
    11    modules-download-mode: readonly
    12  
    13  linters:
    14    disable-all: true
    15    enable:
    16      - gofmt
    17      - depguard
    18  # deactivated for now since its slow in github actions
    19  #    - govet
    20  
    21  linters-settings:
    22    gofmt:
    23      simplify: false
    24  
    25    govet:
    26      # enable or disable analyzers by name
    27      # run `go tool vet help` to see all analyzers
    28      enable:
    29        - structtag
    30        - lostcancel
    31      disable-all: true
    32  
    33    depguard:
    34      rules:
    35        denied-packages:
    36          deny:
    37            - pkg: "gotest.tools"
    38              desc: Should be replaced with "github.com/stretchr/testify/assert"