Created
October 15, 2021 03:38
-
-
Save suncle1993/e5ebad93a8d8641ec716863d8188017d to your computer and use it in GitHub Desktop.
golang ci config example
This file contains hidden or 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
# options for analysis running | |
run: | |
# timeout for analysis, e.g. 30s, 5m, default is 1m | |
timeout: 5m | |
# which dirs to skip: issues from them won't be reported; | |
# can use regexp here: generated.*, regexp is applied on full path; | |
# default value is empty list, but default dirs are skipped independently | |
# from 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 | |
# 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: | |
- ".*/*_test.go$" | |
# - lib/bad.go | |
linters: | |
disable-all: true | |
enable: | |
- deadcode | |
- errcheck | |
- gosimple | |
- govet | |
- ineffassign | |
- staticcheck | |
- structcheck | |
- typecheck | |
- unused | |
- varcheck | |
- goimports | |
- gofmt | |
- revive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment