-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit aa73fa2
Showing
16 changed files
with
1,595 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# OS | ||
.DS_Store | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
|
||
# Go workspace file | ||
go.work | ||
|
||
# ide | ||
.idea/ | ||
.idea/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,340 @@ | ||
# Options for analysis running. | ||
run: | ||
# The default concurrency value is the number of available CPU. | ||
concurrency: 4 | ||
# Timeout for analysis, e.g. 30s, 5m. | ||
# Default: 1m | ||
timeout: 5m | ||
# Exit code when at least one issue was found. | ||
# Default: 1 | ||
issues-exit-code: 2 | ||
# Include test files or not. | ||
# Default: true | ||
tests: false | ||
# List of build tags, all linters use it. | ||
# Default: []. | ||
build-tags: | ||
- mytag | ||
# Which dirs to skip: issues from them won't be reported. | ||
# Can use regexp here: `generated.*`, regexp is applied on full path, | ||
# including the path prefix if one is set. | ||
# Default value is empty list, | ||
# but default dirs are skipped independently of this option's value (see skip-dirs-use-default). | ||
# "/" will be replaced by current OS file path separator to properly work on Windows. | ||
skip-dirs: | ||
- src/external_libs | ||
- autogenerated_by_my_lib | ||
# Enables skipping of directories: | ||
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
# Default: true | ||
skip-dirs-use-default: false | ||
# Which files to skip: they will be analyzed, but issues from them won't be reported. | ||
# Default value is empty list, | ||
# but there is no need to include all autogenerated files, | ||
# we confidently recognize autogenerated files. | ||
# If it's not please let us know. | ||
# "/" will be replaced by current OS file path separator to properly work on Windows. | ||
skip-files: | ||
- ".*\\.my\\.go$" | ||
- lib/bad.go | ||
# If set we pass it to "go list -mod={option}". From "go help modules": | ||
# If invoked with -mod=readonly, the go command is disallowed from the implicit | ||
# automatic updating of go.mod described above. Instead, it fails when any changes | ||
# to go.mod are needed. This setting is most useful to check that go.mod does | ||
# not need updates, such as in a continuous integration and testing system. | ||
# If invoked with -mod=vendor, the go command assumes that the vendor | ||
# directory holds the correct copies of dependencies and ignores | ||
# the dependency descriptions in go.mod. | ||
# | ||
# Allowed values: readonly|vendor|mod | ||
# By default, it isn't set. | ||
modules-download-mode: readonly | ||
# Allow multiple parallel golangci-lint instances running. | ||
# If false (default) - golangci-lint acquires file lock on start. | ||
allow-parallel-runners: false | ||
# Define the Go version limit. | ||
# Mainly related to generics support since go1.18. | ||
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18 | ||
go: '1.19' | ||
|
||
# output configuration options | ||
output: | ||
# Format: colored-line-number|line-number|json|colored-tab|tab|checkstyle|code-climate|junit-xml|github-actions|teamcity | ||
# | ||
# Multiple can be specified by separating them by comma, output can be provided | ||
# for each of them by separating format name and path by colon symbol. | ||
# Output path can be either `stdout`, `stderr` or path to the file to write to. | ||
# Example: "checkstyle:report.xml,json:stdout,colored-line-number" | ||
# | ||
# Default: colored-line-number | ||
# format: json | ||
format: colored-line-number | ||
# Print lines of code with issue. | ||
# Default: true | ||
print-issued-lines: false | ||
# Print linter name in the end of issue text. | ||
# Default: true | ||
print-linter-name: false | ||
# Make issues output unique by line. | ||
# Default: true | ||
uniq-by-line: false | ||
# Add a prefix to the output file references. | ||
# Default is no prefix. | ||
path-prefix: "" | ||
# Sort results by: filepath, line and column. | ||
sort-results: false | ||
|
||
#linters: | ||
# Disable all linters. | ||
# Default: false | ||
# disable-all: true | ||
# enable-all: true | ||
# Enable specific linter | ||
# https://golangci-lint.run/usage/linters/#enabled-by-default | ||
# enable: | ||
# - asasalint | ||
# - asciicheck | ||
# - bidichk | ||
# - bodyclose | ||
# - containedctx | ||
# - contextcheck | ||
# - cyclop | ||
# - decorder | ||
# - depguard | ||
# - dogsled | ||
# - dupl | ||
# - dupword | ||
# - durationcheck | ||
# - errcheck | ||
# - errchkjson | ||
# - errname | ||
# - errorlint | ||
# - execinquery | ||
# - exhaustive | ||
# - exhaustruct | ||
# - exhaustruct | ||
# - exportloopref | ||
# - forbidigo | ||
# - forcetypeassert | ||
# - funlen | ||
# - gci | ||
# - ginkgolinter | ||
# - gocheckcompilerdirectives | ||
# - gochecknoglobals | ||
# - gochecknoinits | ||
## - gochecksumtype | ||
# - gocognit | ||
# - goconst | ||
# - gocritic | ||
# - gocyclo | ||
# - godot | ||
# - godox | ||
# - goerr113 | ||
# - gofmt | ||
# - gofumpt | ||
# - goheader | ||
# - goimports | ||
# - revive | ||
# - gomnd | ||
# - gomoddirectives | ||
# - gomodguard | ||
# - goprintffuncname | ||
# - gosec | ||
# - gosimple | ||
# - gosmopolitan | ||
# - govet | ||
# - grouper | ||
## - ifshort | ||
# - importas | ||
## - inamedparam | ||
# - ineffassign | ||
# - interfacebloat | ||
# - ireturn | ||
# - lll | ||
# - loggercheck | ||
# - maintidx | ||
# - makezero | ||
# - mirror | ||
# - misspell | ||
# - musttag | ||
# - nakedret | ||
# - nestif | ||
# - nilerr | ||
# - nilnil | ||
# - nlreturn | ||
# - noctx | ||
# - nolintlint | ||
# - nonamedreturns | ||
# - nosprintfhostport | ||
# - paralleltest | ||
## - perfsprint | ||
# - prealloc | ||
# - predeclared | ||
# - promlinter | ||
## - protogetter | ||
# - reassign | ||
# - revive | ||
# - rowserrcheck | ||
# - exportloopref | ||
## - sloglint | ||
# - sqlclosecheck | ||
# - staticcheck | ||
# - unused | ||
# - stylecheck | ||
# - tagalign | ||
# - tagliatelle | ||
# - tenv | ||
# - testableexamples | ||
## - testifylint | ||
# - testpackage | ||
# - thelper | ||
# - tparallel | ||
# - typecheck | ||
# - unconvert | ||
# - unparam | ||
# - unused | ||
# - usestdlibvars | ||
# - varnamelen | ||
# - wastedassign | ||
# - whitespace | ||
# - wrapcheck | ||
# - wsl | ||
# - zerologlint | ||
# Enable all available linters. | ||
# Default: false | ||
# enable-all: true | ||
# Disable specific linter | ||
# https://golangci-lint.run/usage/linters/#disabled-by-default | ||
# disable: | ||
# - asasalint | ||
# - asciicheck | ||
# - bidichk | ||
# - bodyclose | ||
# - containedctx | ||
# - contextcheck | ||
# - cyclop | ||
# - deadcode | ||
# - decorder | ||
# - depguard | ||
# - dogsled | ||
# - dupl | ||
# - dupword | ||
# - durationcheck | ||
# - errcheck | ||
# - errchkjson | ||
# - errname | ||
# - errorlint | ||
# - execinquery | ||
# - exhaustive | ||
# - exhaustivestruct | ||
# - exhaustruct | ||
# - exportloopref | ||
# - forbidigo | ||
# - forcetypeassert | ||
# - funlen | ||
# - gci | ||
# - ginkgolinter | ||
# - gocheckcompilerdirectives | ||
# - gochecknoglobals | ||
# - gochecknoinits | ||
## - gochecksumtype | ||
# - gocognit | ||
# - goconst | ||
# - gocritic | ||
# - gocyclo | ||
# - godot | ||
# - godox | ||
# - goerr113 | ||
# - gofmt | ||
# - gofumpt | ||
# - goheader | ||
# - goimports | ||
# - golint | ||
# - gomnd | ||
# - gomoddirectives | ||
# - gomodguard | ||
# - goprintffuncname | ||
# - gosec | ||
# - gosimple | ||
# - gosmopolitan | ||
# - govet | ||
# - grouper | ||
# - ifshort | ||
# - importas | ||
## - inamedparam | ||
# - ineffassign | ||
# - interfacebloat | ||
# - interfacer | ||
# - ireturn | ||
# - lll | ||
# - loggercheck | ||
# - maintidx | ||
# - makezero | ||
# - maligned | ||
# - mirror | ||
# - misspell | ||
# - musttag | ||
# - nakedret | ||
# - nestif | ||
# - nilerr | ||
# - nilnil | ||
# - nlreturn | ||
# - noctx | ||
# - nolintlint | ||
# - nonamedreturns | ||
# - nosnakecase | ||
# - nosprintfhostport | ||
# - paralleltest | ||
## - perfsprint | ||
# - prealloc | ||
# - predeclared | ||
# - promlinter | ||
## - protogetter | ||
# - reassign | ||
# - revive | ||
# - rowserrcheck | ||
# - scopelint | ||
## - sloglint | ||
# - sqlclosecheck | ||
# - staticcheck | ||
# - structcheck | ||
# - stylecheck | ||
# - tagalign | ||
# - tagliatelle | ||
# - tenv | ||
# - testableexamples | ||
## - testifylint | ||
# - testpackage | ||
# - thelper | ||
# - tparallel | ||
# - typecheck | ||
# - unconvert | ||
# - unparam | ||
# - unused | ||
# - usestdlibvars | ||
# - varcheck | ||
# - varnamelen | ||
# - wastedassign | ||
# - whitespace | ||
# - wrapcheck | ||
# - wsl | ||
# - zerologlint | ||
# # Enable presets. | ||
# # https://golangci-lint.run/usage/linters | ||
# presets: | ||
# - bugs | ||
# - comment | ||
# - complexity | ||
# - error | ||
# - format | ||
# - import | ||
# - metalinter | ||
# - module | ||
# - performance | ||
# - sql | ||
# - style | ||
# - test | ||
# - unused | ||
# Run only fast linters from enabled linters set (first run won't be fast) | ||
# Default: false | ||
fast: true |
Oops, something went wrong.