github.com/matrixorigin/matrixone@v1.2.0/.golangci.yml (about)

     1  run:
     2    concurrency: 8
     3    # Timeout for analysis, e.g. 30s, 5m.
     4    # Default: 1m
     5    timeout: 5m
     6    # Exit code when at least one issue was found.
     7    # Default: 1
     8    issues-exit-code: 2
     9    # Include test files or not.
    10    # Default: true
    11    tests: true
    12    skip-files:
    13      - pkg/sql/parsers/goyacc/goyacc.go
    14    
    15  linters:
    16    # Disable all linters.
    17    # Default: false
    18    disable-all: true
    19    # Enable specific linter
    20    # https://golangci-lint.run/usage/linters/#enabled-by-default-linters
    21    enable:
    22      - depguard
    23      - exportloopref
    24      - gocheckcompilerdirectives
    25      - gofmt
    26      - gosimple
    27      - govet
    28      - ineffassign
    29      - prealloc
    30      - reassign
    31      - rowserrcheck
    32      - sqlclosecheck
    33      - staticcheck
    34      - stylecheck
    35      - tenv
    36      - typecheck
    37      - unused
    38  
    39  linters-settings:
    40    # https://github.com/golangci/golangci-lint/issues/3877
    41    depguard:
    42      rules:
    43        main:
    44          files:
    45            - "$all"
    46            - "!$test"
    47          allow:
    48            - $gostd
    49            - github.com
    50          deny:
    51            - pkg: github.com/OpenPeeDeeP/depguard
    52              desc: "example to deny some package"
    53    stylecheck:
    54      checks:
    55        - ST1001
    56        - ST1005
    57        - ST1006
    58        - ST1008
    59        - ST1011
    60        - ST1012
    61        - ST1013
    62        - ST1015
    63        - ST1016
    64        - ST1017
    65        - ST1018
    66        - ST1019
    67        - ST1023
    68    gosimple:
    69      checks:
    70        - S1000
    71        - S1001
    72        - S1002
    73        - S1003
    74        - S1004
    75        - S1005
    76        - S1006
    77        - S1007
    78        - S1008
    79        - S1009
    80        - S1010
    81        - S1011
    82        - S1012
    83        - S1016
    84        - S1017
    85        - S1018
    86        - S1019
    87        - S1020
    88        - S1021
    89        - S1023
    90        - S1024
    91        - S1025
    92        - S1028
    93        - S1029
    94        - S1030
    95        - S1031
    96        - S1032
    97        - S1033
    98        - S1034
    99        - S1035
   100        - S1036
   101        - S1037
   102        - S1038
   103        - S1039
   104        - S1040
   105  
   106    staticcheck:
   107      checks:
   108        - SA1000
   109        - SA1001
   110        - SA1002
   111        - SA1003
   112        - SA1004
   113        - SA1005
   114        - SA1006
   115        - SA1007
   116        - SA1008
   117        - SA1010
   118        - SA1011
   119        - SA1012
   120        - SA1013
   121        - SA1014
   122        - SA1015
   123        - SA1016
   124        - SA1017
   125        - SA1018
   126        - SA1019
   127        - SA1020
   128        - SA1021
   129        - SA1023
   130        - SA1024
   131        - SA1025
   132        - SA1026
   133        - SA1027
   134        - SA1028
   135        - SA1029
   136        - SA1030
   137        - SA2000
   138        - SA2001
   139        - SA2002
   140        - SA2003
   141        - SA3000
   142        - SA3001
   143        - SA4000
   144        - SA4001
   145        - SA4003
   146        - SA4004
   147        - SA4005
   148        - SA4006
   149        - SA4008
   150        - SA4009
   151        - SA4010
   152        - SA4011
   153        - SA4012
   154        - SA4013
   155        - SA4014
   156        - SA4015
   157        - SA4016
   158        - SA4017
   159        - SA4018
   160        - SA4019
   161        - SA4020
   162        - SA4021
   163        - SA4022
   164        - SA4023
   165        - SA4024
   166        - SA4025
   167        - SA4026
   168        - SA4027
   169        - SA4028
   170        - SA4029
   171        - SA4030
   172        - SA4031
   173        - SA5000
   174        - SA5001
   175        - SA5002
   176        - SA5003
   177        - SA5004
   178        - SA5005
   179        - SA5007
   180        - SA5008
   181        - SA5009
   182        - SA5010
   183        - SA5011
   184        - SA5012
   185        - SA6000
   186        - SA6001
   187        - SA6002
   188        - SA6003
   189        - SA6005
   190        - SA9001
   191        - SA9002
   192        - SA9003
   193        - SA9004
   194        - SA9005
   195        - SA9006
   196        - SA9007
   197        - SA9008
   198  
   199  issues:
   200    exclude-use-default: false
   201    exclude-rules:
   202      # Exclude some linters from running on tests files.
   203      - path: _test\.go
   204        linters:
   205          - stylecheck