-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goago.yml
More file actions
37 lines (21 loc) · 1.41 KB
/
Copy path.goago.yml
File metadata and controls
37 lines (21 loc) · 1.41 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
# goago rule policy. See https://github.com/agentstation/goago#rules
# Run "goago -list" for the rule set this binary supports.
enable:
- no-self-referential-constraints # A generic type may not name itself in its own type parameter list.
# no-f-bounded-constraints # A type parameter may not appear in its own constraint.
# no-redundant-short-decl # Use var except where := is syntactically required.
- no-naked-return # Return statements must be explicit even with named results.
# no-init-func # Func init() is forbidden. Initialize explicitly.
# no-embedded-field # Struct embedding is forbidden. Name your fields.
- no-goto # Goto is forbidden.
- no-generic-methods # Methods may not declare their own type parameters.
# no-generic-decls # No type parameters on any func or type declaration.
- no-invalid-ignore # Every //goago:ignore must name a known rule and give a reason.
- no-dot-import # Import . "pkg" is forbidden.
# no-blank-import-outside-main # Import _ "pkg" only allowed in package main.
- no-new-expr # New() takes a type, not an expression.
disable: []
# Check _test.go files as well as production files.
tests: false
# Path patterns to skip. The tool always skips vendor and testdata.
exclude: []