github.com/rancher/elemental/tests@v0.0.0-20240517125144-ae048c615b3f/.golangci.yaml (about)

     1  run:
     2    timeout: 5m
     3    tests: false
     4  output:
     5    format: github-actions
     6  linters:
     7    enable:
     8      - revive # replacement for golint
     9      - dupl # check duplicated code
    10      - goconst # check strings that can turn into constants
    11      - gofmt # check fmt
    12      - goheader # Check license headers, only checks files in current year
    13      - goimports # check imports
    14      - gocyclo # check complexity
    15  linters-settings:
    16    gocyclo:
    17      min-complexity: 30
    18    goheader:
    19      template: |-
    20        Copyright © 2022 - {{year}} SUSE LLC
    21  
    22        Licensed under the Apache License, Version 2.0 (the "License");
    23        you may not use this file except in compliance with the License.
    24        You may obtain a copy of the License at
    25            http://www.apache.org/licenses/LICENSE-2.0
    26        Unless required by applicable law or agreed to in writing, software
    27        distributed under the License is distributed on an "AS IS" BASIS,
    28        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    29        See the License for the specific language governing permissions and
    30        limitations under the License.