github.com/go-kivik/kivik/v4@v4.3.2/.golangci.toml (about)

     1  [run]
     2  timeout = "300s"
     3  
     4  [[output.formats]]
     5  format = "colored-line-number"
     6  
     7  [linters]
     8  enable = [
     9      "gci",
    10      "unconvert",
    11      "goimports",
    12      "unused",
    13      "misspell",
    14      "nakedret",
    15      "errcheck",
    16      "revive",
    17      "ineffassign",
    18      "unparam",
    19      "gofumpt",
    20      "prealloc",
    21      "gocritic",
    22      "staticcheck",
    23      "goheader",
    24  
    25      # SQL-related linters
    26      "rowserrcheck",
    27      "sqlclosecheck",
    28  
    29      # Testing
    30      "thelper",
    31  ]
    32  
    33  [issues]
    34  exclude-use-default = false
    35  
    36  [[issues.exclude-rules]]
    37  source = "defer .*\\.(Close|Rollback)\\(\\)$"
    38  linters = ["errcheck"]
    39  
    40  [[issues.exclude-rules]]
    41  source = "tests\\.(Add|Run)\\("
    42  text = "test helper function should start"
    43  linters = ["thelper"]
    44  
    45  [linters-settings.gci]
    46  sections = ["standard", "default", "prefix(github.com/go-kivik/kivik)"]
    47  skip-generated = false
    48  custom-order = true
    49  
    50  [linters-settings.goheader]
    51  template = """
    52  Licensed under the Apache License, Version 2.0 (the "License"); you may not
    53  use this file except in compliance with the License. You may obtain a copy of
    54  the License at
    55  
    56   http://www.apache.org/licenses/LICENSE-2.0
    57  
    58  Unless required by applicable law or agreed to in writing, software
    59  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
    60  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
    61  License for the specific language governing permissions and limitations under
    62  the License."""
    63  
    64  # Prepared statements on transactions are closed by the transaction.
    65  [[issues.exclude-rules]]
    66  source = "tx.Prepare|stmts.prepare"
    67  linters = ["sqlclosecheck"]