github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/.golangci.yml (about)

     1  run:
     2    timeout: 10m
     3  
     4  linters-settings:
     5    goimports:
     6      # put imports beginning with prefix after 3rd-party packages;
     7      # it's a comma-separated list of prefixes
     8      local-prefixes: github.com/onflow/flow-go
     9  
    10    gosec:
    11      # To select a subset of rules to run.
    12      # Available rules: https://github.com/securego/gosec#available-rules
    13      includes:
    14        - G401
    15        - G402
    16        - G501
    17        - G502
    18        - G503
    19        - G505
    20  
    21    staticcheck:
    22      # Disable SA1019 to allow use of deprecated label
    23      checks: ["all", "-SA1019"]
    24  
    25  linters:
    26    enable:
    27      - goimports
    28      - gosec
    29  
    30  issues:
    31    exclude-rules:
    32      - path: _test\.go # disable some linters on test files
    33        linters:
    34          - unused
    35      # typecheck currently not handling the way we do function inheritance well
    36      # disabling for now
    37      - path: 'cmd/access/node_build/*' 
    38        linters:
    39          - typecheck
    40      - path: 'cmd/observer/node_builder/*'
    41        linters:
    42          - typecheck
    43      - path: 'follower/*'
    44        linters:
    45          - typecheck