github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/.codeclimate.yml (about)

     1  version: "2"
     2  checks:
     3    argument-count:
     4      config:
     5        threshold: 10
     6    complex-logic:
     7      config:
     8        threshold: 8
     9    file-lines:
    10      config:
    11        threshold: 1024
    12    method-complexity:
    13      config:
    14        threshold: 100
    15    method-count:
    16      config:
    17        # CRI runtime implementation has >20 methods
    18        # Also, VirtualizationTool has plenty
    19        threshold: 30
    20    method-lines:
    21      config:
    22        threshold: 200
    23    nested-control-flow:
    24      config:
    25        threshold: 4
    26    return-statements:
    27      config:
    28        threshold: 16
    29    similar-code:
    30      enabled: false
    31    identical-code:
    32      enabled: false
    33  plugins:
    34    gofmt:
    35      enabled: true
    36    golint:
    37      enabled: true
    38    govet:
    39      enabled: true
    40  ratings:
    41    paths:
    42      - "**.go"
    43  exclude_patterns:
    44    - "vendor/"
    45    - "pkg/diskimage/guestfs/guestfs.go"
    46    - "tests/"
    47    - "**/*_test.go"
    48    - "*_test.go"
    49    - "pkg/tools/bindata.go"
    50    # the fields and consts there are named after corresponding
    51    # CRI fields / consts, but make CodeClimate unhappy due to
    52    # underscores and "Id" instead of "ID"
    53    - "pkg/metadata/types/types.go"
    54    # gofmt issue in the generated code
    55    - "pkg/client/clientset/versioned/clientset.go"