Files
zeekayandHanzo Dev 3d0cbf3711 fix: rip the upstream deprecated-env shim; it hijacked GIT_TRACE and GIT_DEBUG
The GITEA_->GIT_ rename landed on upstream's back-compat table, turning
GITEA_DEBUG/GITEA_TRACE into GIT_DEBUG/GIT_TRACE — git's OWN variables. Anyone
debugging git with GIT_TRACE=1 would silently reconfigure the runner's log
level. This fork was born on GIT_*, so it has no deprecated names to support
and the whole table goes.

Also: our release lane pushed a MUTABLE :0.6.1 beside the immutable
0.6.1-hanzo.<sha> — the pin law we hold everything else to. Dropped.
LDFLAGS -X named a module that does not exist, so the version string was never
set. Deleted three orphan release mechanisms (goreleaser, Makefile release
targets, half-renamed examples), the upstream renovate preset pointer, the s6
service dir name, the .gitea/workflows exec default, and the state-file banner.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 10:57:05 -07:00

126 lines
2.6 KiB
YAML

version: "2"
output:
sort-order:
- file
linters:
default: none
enable:
- bidichk
- bodyclose
- depguard
- dupl
- errcheck
- forbidigo
- gocheckcompilerdirectives
- gocritic
- goheader
- govet
- ineffassign
- mirror
- modernize
- nakedret
- nilnil
- nolintlint
- perfsprint
- revive
- staticcheck
- testifylint
- unconvert
- unparam
- unused
- usestdlibvars
- usetesting
- wastedassign
settings:
depguard:
rules:
main:
deny:
- pkg: io/ioutil
desc: use os or io instead
- pkg: golang.org/x/exp
desc: it's experimental and unreliable
- pkg: github.com/pkg/errors
desc: use builtin errors package instead
nolintlint:
allow-unused: false
require-explanation: true
require-specific: true
gocritic:
enabled-checks:
- equalFold
disabled-checks:
- ifElseChain
revive:
severity: error
rules:
- name: blank-imports
- name: constant-logical-expr
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: empty-lines
- name: error-return
- name: error-strings
- name: exported
- name: identical-branches
- name: if-return
- name: increment-decrement
- name: modifies-value-receiver
- name: package-comments
- name: redefines-builtin-id
- name: superfluous-else
- name: time-naming
- name: unexported-return
- name: var-declaration
- name: var-naming
staticcheck:
checks:
- all
- -ST1005
usetesting:
os-temp-dir: true
perfsprint:
concat-loop: false
govet:
enable:
- nilness
- unusedwrite
goheader:
values:
regexp:
HEADER: 'Copyright \d{4} The Gitea Authors\. All rights reserved\.(\nCopyright [^\n]+)*\nSPDX-License-Identifier: MIT'
template: '{{ HEADER }}'
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- forbidigo
path: cmd
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gci
- gofumpt
settings:
gci:
custom-order: true
sections:
- standard
- prefix(github.com/hanzoai/git-runner)
- blank
- default
gofumpt:
extra-rules: true
exclusions:
generated: lax
run:
timeout: 10m