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
+25-20Lines changed: 25 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,11 @@
1
-
# Golang CI pipeline configuration
1
+
version: "2"
2
+
formatters:
3
+
enable:
4
+
- gci # Gci controls golang package import order and makes it always deterministic. [fast: true, auto-fix: false]
5
+
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]
- gci # Gci controls golang package import order and makes it always deterministic. [fast: true, auto-fix: false]
26
32
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid. [fast: true, auto-fix: false]
27
33
- gochecksumtype # Run exhaustiveness checks on Go "sum types" [fast: false, auto-fix: false]
28
34
- goconst # Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
29
35
- gocritic # Provides diagnostics that check for bugs, performance and style issues. [fast: false, auto-fix: false]
30
36
- gocyclo # Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix: false]
31
-
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]
- goheader # Checks is file header matches to pattern [fast: true, auto-fix: false]
34
-
- goimports # In addition to fixing imports, goimports also formats your code in the same style as gofmt. [fast: true, auto-fix: true]
35
38
- gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod. [fast: true, auto-fix: false]
36
39
- gomodguard # Allow and block list linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations. [fast: true, auto-fix: false]
37
40
- goprintffuncname # Checks that printf-like functions are named with `f` at the end [fast: true, auto-fix: false]
- gosimple #(megacheck): Linter for Go source code that specializes in simplifying a code [fast: false, auto-fix: false]
40
42
- gosmopolitan # Report certain i18n/l10n anti-patterns in your Go codebase [fast: false, auto-fix: false]
41
43
- govet #(vet, vetshadow): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false]
42
44
- grouper # An analyzer to analyze expression groups. [fast: true, auto-fix: false]
@@ -67,14 +69,12 @@ linters:
67
69
- sloglint # ensure consistent code style when using log/slog [fast: false, auto-fix: false]
68
70
- sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed. [fast: false, auto-fix: false]
69
71
- staticcheck #(megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false]
70
-
- stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false]
71
72
- tagalign # check that struct tags are well aligned [fast: true, auto-fix: true]
0 commit comments