mirror of
https://code.forgejo.org/forgejo/act.git
synced 2025-04-19 08:22:16 +03:00
- upgrade to golangci-lint@v1.62.2 - make it renovate friendly - remove most frequent lint check that are not of consequence (unused args, etc.) - fix remaining lint errors - add renovate custom manager to update the Makefile variable
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
# Minimum golangci-lint version required: v1.46.0
|
|
run:
|
|
timeout: 3m
|
|
|
|
skip-dirs:
|
|
- report # megalinter results+fixes
|
|
|
|
linters-settings:
|
|
gocritic:
|
|
disabled-checks:
|
|
- ifElseChain
|
|
importas:
|
|
aliases:
|
|
- pkg: 'github.com/sirupsen/logrus'
|
|
alias: log
|
|
- pkg: 'github.com/stretchr/testify/assert'
|
|
alias: assert
|
|
revive:
|
|
rules:
|
|
- name: unused-parameter
|
|
disabled: true
|
|
depguard:
|
|
rules:
|
|
main:
|
|
deny:
|
|
- pkg: github.com/pkg/errors
|
|
desc: Please use "errors" package from standard library
|
|
- pkg: gotest.tools/v3
|
|
desc: Please keep tests unified using only github.com/stretchr/testify
|
|
- pkg: log
|
|
desc: Please keep logging unified using only github.com/sirupsen/logrus
|
|
linters:
|
|
disable:
|
|
- staticcheck
|
|
enable:
|
|
- govet
|
|
- gocyclo
|
|
- gosec
|
|
- unconvert
|
|
- dupl
|
|
- nakedret
|
|
- prealloc
|
|
- gocritic
|
|
- gosimple
|
|
- goimports
|
|
- whitespace
|
|
- misspell
|
|
- depguard
|
|
- importas
|
|
- nolintlint
|
|
- revive
|