1# SPDX-License-Identifier: MPL-2.0
2
3# Copyright (C) 2025 Aleksa Sarai <cyphar@cyphar.com>
4# Copyright (C) 2025 SUSE LLC
5#
6# This Source Code Form is subject to the terms of the Mozilla Public
7# License, v. 2.0. If a copy of the MPL was not distributed with this
8# file, You can obtain one at https://mozilla.org/MPL/2.0/.
9
10version: "2"
11
12run:
13 build-tags:
14 - libpathrs
15
16linters:
17 enable:
18 - asasalint
19 - asciicheck
20 - containedctx
21 - contextcheck
22 - errcheck
23 - errorlint
24 - exhaustive
25 - forcetypeassert
26 - godot
27 - goprintffuncname
28 - govet
29 - importas
30 - ineffassign
31 - makezero
32 - misspell
33 - musttag
34 - nilerr
35 - nilnesserr
36 - nilnil
37 - noctx
38 - prealloc
39 - revive
40 - staticcheck
41 - testifylint
42 - unconvert
43 - unparam
44 - unused
45 - usetesting
46 settings:
47 govet:
48 enable:
49 - nilness
50 testifylint:
51 enable-all: true
52
53formatters:
54 enable:
55 - gofumpt
56 - goimports
57 settings:
58 goimports:
59 local-prefixes:
60 - github.com/cyphar/filepath-securejoin