mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 08:52:26 -05:00
Enable stricter linting with golangci-lint (#316)
* update golangci-lint * add golangci config file w/ more linters * correct issues flagged by stricter linters * add more generous timeout for golangci-lint * add some style + formatting guidelines * move timeout to config file * go fmt
This commit is contained in:
parent
38d73f0316
commit
f8630348b4
47 changed files with 227 additions and 163 deletions
|
|
@ -13,7 +13,7 @@ steps:
|
|||
# We use golangci-lint for linting.
|
||||
# See: https://golangci-lint.run/
|
||||
- name: lint
|
||||
image: golangci/golangci-lint:v1.42.1
|
||||
image: golangci/golangci-lint:v1.43.0
|
||||
volumes:
|
||||
- name: go-build-cache
|
||||
path: /root/.cache/go-build
|
||||
|
|
@ -22,7 +22,7 @@ steps:
|
|||
- name: go-src
|
||||
path: /go
|
||||
commands:
|
||||
- golangci-lint run --timeout 5m0s --tests=false --verbose
|
||||
- golangci-lint run
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
|
|
@ -115,6 +115,6 @@ trigger:
|
|||
|
||||
---
|
||||
kind: signature
|
||||
hmac: aa44c4655421fb0ed3141b8d7255a9a240dd4312244081d9e95929c4a196fd92
|
||||
hmac: 07d6ed18510f9591c6b347d6768cbe8e613561b3759f1a8dda8721d1d231a522
|
||||
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue