# SPDX-License-Identifier: MPL-2.0
#
# libpathrs: safe path resolution on Linux
# Copyright (C) 2019-2025 SUSE LLC
# Copyright (C) 2026 Aleksa Sarai <cyphar@cyphar.com>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

version: "2"
linters:
  enable:
    - bidichk
    - cyclop
    - errname
    - errorlint
    - exhaustive
    - goconst
    - godot
    - gomoddirectives
    - gosec
    - mirror
    - misspell
    - mnd
    - nilerr
    - nilnil
    - perfsprint
    - prealloc
    - reassign
    - revive
    - unconvert
    - unparam
    - usestdlibvars
    - wastedassign
formatters:
  enable:
    - gofumpt
    - goimports
  settings:
    goimports:
      local-prefixes:
        - cyphar.com/go-pathrs
