]> Sergey Matveev's repositories - btrtrc.git/commit
Add linter CI (#542)
authorBora M. Alper <bora@boramalper.org>
Mon, 16 Aug 2021 01:11:31 +0000 (04:11 +0300)
committerGitHub <noreply@github.com>
Mon, 16 Aug 2021 01:11:31 +0000 (11:11 +1000)
commit16176b762e4a840fc5dfe3b1dfd2d6fa853b68d7
tree1a4e2191733109a141370ae11dcc58551291abf2
parent22c5a94a6af96940754ded5c83dc7f4f493b0348
Add linter CI (#542)

* Add linter CI

Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Make gosec CI ignore SHA1 and upload sarif

Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Fix formatting of source files

Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Make go vet ignore unkeyed composite literals and fix other warnings

Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Make staticcheck ignore unused methods and fix other warnings

Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Use golangci-lint

Signed-off-by: Bora M. Alper <bora@boramalper.org>
12 files changed:
.github/workflows/linter.yml [new file with mode: 0644]
.golangci.yml [new file with mode: 0644]
bencode/decode.go
client.go
peer_protocol/messagetype_string.go
peer_protocol/protocol.go
pex_test.go
requesting.go
storage/sqlite/sqlite-storage.go
torrent.go
tracker/udp/conn-client.go
util/dirwatch/dirwatch.go