diff options
author | Casey Lee <cplee@nektos.com> | 2019-01-16 02:41:02 +0100 |
---|---|---|
committer | Casey Lee <cplee@nektos.com> | 2019-01-16 02:41:02 +0100 |
commit | 6f07c10d8c0f84d38ba982e3d7e4032b8d630068 (patch) | |
tree | 4dec0c8454d7887c4b4ad0138003743996624dee /.golangci.yml | |
parent | fix #2 - add support for an array of 'Runs' (diff) | |
download | forgejo-act-6f07c10d8c0f84d38ba982e3d7e4032b8d630068.tar.xz forgejo-act-6f07c10d8c0f84d38ba982e3d7e4032b8d630068.zip |
improve linting
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..085539b --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,22 @@ +linters-settings: + gocyclo: + # minimal code complexity to report, 30 by default (but we recommend 10-20) + min-complexity: 10 + gocritic: + disabled-checks: + - ifElseChain + +linters: + enable: + - megacheck + - govet + - golint + - gocyclo + - gosec + - unconvert + - dupl + - maligned + - nakedret + - prealloc + - scopelint + - gocritic
\ No newline at end of file |