-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
87 lines (74 loc) · 1.89 KB
/
.golangci.yml
File metadata and controls
87 lines (74 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
version: "2"
run:
timeout: 5m
formatters:
enable:
- gofmt
- goimports
settings:
goimports:
local-prefixes:
- github.com/nextcloud/go_live_transcription
linters:
enable:
# Bug detection
- govet
- staticcheck
- errcheck
- ineffassign
- bodyclose
- noctx
# Code simplification
- unused
- gocritic
- revive
- misspell
# Logging
- sloglint
# Security
- gosec
settings:
gocritic:
enabled-tags:
- diagnostic
- performance
- style
disabled-checks:
- hugeParam # CGO structs may be large by necessity
revive:
rules:
- name: blank-imports
- name: context-as-argument
- name: dot-imports
- name: error-naming
- name: error-return
- name: error-strings
- name: exported
disabled: true # internal app, not a public library
- name: increment-decrement
- name: indent-error-flow
- name: range
- name: receiver-naming
- name: redefines-builtin-id
- name: unexported-return
- name: unreachable-code
- name: var-declaration
- name: var-naming
gosec:
excludes:
- G107 # variable URLs are expected (API calls, model downloads)
- G301 # 0755 dir permissions are fine for model storage
- G304 # file paths from controlled internal logic
- G402 # TLS InsecureSkipVerify — needed for dev/self-signed certs
- G115 # integer overflow conversion — too noisy for audio sample math
misspell:
locale: US
errcheck:
exclude-functions:
- (io.Closer).Close
- (net/http.ResponseWriter).Write
issues:
max-issues-per-linter: 0
max-same-issues: 0