mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
Enable gocognit linter (#10867)
* Enable gocognit linter Currently the gocognit complexity threshold is set to 95 to make sure no existing files will fail the linter. In future we will reduce this threshold to a much lower one. The recommended threshold is usually 30. Our code base has maximum of 97 right now...But it's better late than never to pay attention to our code compexity. * Test to see github complains * Resume to 97 Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
1
.github/workflows/go.yml
vendored
1
.github/workflows/go.yml
vendored
@@ -64,7 +64,6 @@ jobs:
|
||||
- name: Golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
args: --print-issued-lines --sort-results --no-config --timeout=10m --disable-all -E deadcode -E errcheck -E gosimple --skip-files=validator/web/site_data.go --skip-dirs=proto --go=1.18
|
||||
version: v1.45.2
|
||||
skip-go-installation: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user