| 1 | # Copyright 2025 The go-yaml Project Contributors |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | version: '2' |
| 5 | |
| 6 | linters: |
| 7 | enable: |
| 8 | - dupword |
| 9 | - godoclint |
| 10 | - govet |
| 11 | - mirror |
| 12 | - misspell |
| 13 | - modernize |
| 14 | - nilnesserr |
| 15 | - nolintlint |
| 16 | - staticcheck |
| 17 | - thelper |
| 18 | - unconvert |
| 19 | disable: |
| 20 | - errcheck |
| 21 | - ineffassign |
| 22 | - unused |
| 23 | settings: |
| 24 | dupword: |
| 25 | ignore: |
| 26 | - 'NULL' |
| 27 | - DOCUMENT-START |
| 28 | - BLOCK-END |
| 29 | godoclint: |
| 30 | default: none |
| 31 | enable: |
| 32 | - require-stdlib-doclink |
| 33 | govet: |
| 34 | enable-all: true |
| 35 | disable: |
| 36 | - fieldalignment |
| 37 | - shadow |
| 38 | misspell: |
| 39 | locale: US |
| 40 | nolintlint: |
| 41 | allow-unused: false |
| 42 | require-specific: true |
| 43 | require-explanation: true |
| 44 | staticcheck: |
| 45 | checks: |
| 46 | # enable all rules |
| 47 | - all |
| 48 | # disable some of them |
| 49 | - -QF1001 # De Morgan's laws is too opinionated. |
| 50 | - -ST1003 # The codebase has too many underscores in identifiers for now. |
| 51 | |
| 52 | formatters: |
| 53 | enable: |
| 54 | - gofumpt |
| 55 | |
| 56 | issues: |
| 57 | max-issues-per-linter: 0 |
| 58 | max-same-issues: 0 |
| 59 | uniq-by-line: false |