From 92fedf585ceeda90cfd22cb966c002364d4eb7e8 Mon Sep 17 00:00:00 2001 From: Kyoichiro Yamada Date: Sun, 1 Nov 2020 18:32:41 +0900 Subject: [PATCH] add badge, change linter, update CI go version --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 8 ++++---- .golangci.yml | 2 +- README.md | 1 + go.mod | 2 +- go.sum | 6 +++--- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b74c638..8300d27 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: 1.15.x - name: get dependencies run: go get -v -t -d ./... - name: test race diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5faeda5..eb20161 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: 1.15.x - name: get dependencies run: go get -v -t -d ./... - name: vendoring @@ -39,7 +39,7 @@ jobs: steps: - uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: 1.15.x - uses: actions/download-artifact@v2 with: name: repository @@ -53,7 +53,7 @@ jobs: steps: - uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: 1.15.x - uses: actions/download-artifact@v2 with: name: repository @@ -69,7 +69,7 @@ jobs: steps: - uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: 1.15.x - uses: actions/download-artifact@v2 with: name: repository diff --git a/.golangci.yml b/.golangci.yml index 58667b2..e876057 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,4 @@ linters: enable: - unparam - - scopelint + - exportloopref diff --git a/README.md b/README.md index b4493d4..5c019c7 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ An analyzer that finds exporting pointers for loop variables. +[![PkgGoDev](https://pkg.go.dev/badge/kyoh86/exportloopref)](https://pkg.go.dev/kyoh86/exportloopref) [![Go Report Card](https://goreportcard.com/badge/github.com/kyoh86/exportloopref)](https://goreportcard.com/report/github.com/kyoh86/exportloopref) [![Coverage Status](https://img.shields.io/codecov/c/github/kyoh86/exportloopref.svg)](https://codecov.io/gh/kyoh86/exportloopref) [![Release](https://github.com/kyoh86/exportloopref/workflows/Release/badge.svg)](https://github.com/kyoh86/exportloopref/releases) diff --git a/go.mod b/go.mod index 2b61b22..34a5398 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/kyoh86/exportloopref go 1.14 -require golang.org/x/tools v0.0.0-20200321224714-0d839f3cf2ed +require golang.org/x/tools v0.0.0-20200622203043-20e05c1c8ffa diff --git a/go.sum b/go.sum index eb0e5ab..3b199f0 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/mod v0.2.0 h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ= @@ -12,8 +12,8 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200321224714-0d839f3cf2ed h1:OCZDlBlLYiUK6T33/8+3BnojrS2W+Dg1rKYJhR89xGE= -golang.org/x/tools v0.0.0-20200321224714-0d839f3cf2ed/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200622203043-20e05c1c8ffa h1:mMXQKlWCw9mIWgVLLfiycDZjMHMMYqiuakI4E/l2xcA= +golang.org/x/tools v0.0.0-20200622203043-20e05c1c8ffa/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=