You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .golangci.yml
+22-4Lines changed: 22 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ linters:
13
13
- forbidigo
14
14
- gocheckcompilerdirectives
15
15
- gocritic
16
+
- goheader
16
17
- govet
17
18
- ineffassign
18
19
- mirror
@@ -51,6 +52,14 @@ linters:
51
52
desc: do not use the go-chi cache package, use gitea's cache system
52
53
- pkg: github.com/pkg/errors
53
54
desc: use builtin errors package instead
55
+
migrations:
56
+
files:
57
+
- '**/models/migrations/**/*.go'
58
+
deny:
59
+
- pkg: code.gitea.io/gitea/models$
60
+
desc: migrations must not depend on the models package
61
+
- pkg: code.gitea.io/gitea/modules/structs
62
+
desc: migrations must not depend on modules/structs (API structures change over time)
54
63
nolintlint:
55
64
allow-unused: false
56
65
require-explanation: true
@@ -109,6 +118,11 @@ linters:
109
118
enable:
110
119
- nilness
111
120
- unusedwrite
121
+
goheader:
122
+
values:
123
+
regexp:
124
+
HEADER: '((Copyright [^\n]+|All rights reserved\.)\n)*Copyright \d{4} (The (Gogs|Gitea) Authors|Gitea Authors|Gitea)\.( All rights reserved\.)?(\n(Copyright [^\n]+|All rights reserved\.))*\nSPDX-License-Identifier: [\w.-]+'
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,5 +7,6 @@
7
7
- Never force-push, amend, or squash unless asked. Use new commits and normal push for pull request updates
8
8
- Preserve existing code comments, do not remove or rewrite comments that are still relevant
9
9
- In TypeScript, use `!` (non-null assertion) instead of `?.`/`??` when a value is known to always exist
10
+
- For CSS layout, prefer `flex-*` helpers over per-child `tw-ml-*` / `tw-mr-*` margins; fall back to `tw-*` utilities when specificity requires `!important`
10
11
- Include authorship attribution in issue and pull request comments
11
12
- Add `Co-Authored-By` lines to all commits, indicating name and model used
0 commit comments