From 402880505af4d63d727afe78ae8e21775535ab46 Mon Sep 17 00:00:00 2001 From: Duco van Amstel Date: Sun, 31 Mar 2019 17:26:35 +0100 Subject: [PATCH] Update GolangCI-lint and lint config The `algo` parameter for the `unparam` linter has been removed and we should thus no longer specify it. Also, bumping the GolangCI-lint version to the latest available minor release. See: mvdan/unparam@e6a6d1c51b6f03ac1a9d120f1ea07bc3a3f0e0b9 --- .golangci.yaml | 4 ---- .travis.yml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index d6222775..f323f012 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -105,10 +105,6 @@ linters-settings: # with golangci-lint call it on a directory with the changed file. check-exported: false unparam: - # call graph construction algorithm (cha, rta). In general, use cha for libraries, - # and rta for programs with main packages. Default is cha. - algo: rta - # Inspect exported functions, default is false. Set to true if no external program/library imports your code. # XXX: if you enable this setting, unparam will report a lot of false-positives in text editors: # if it's called for subdir of a project it can't find external interfaces. All text editor integrations diff --git a/.travis.yml b/.travis.yml index bf85b4ee..30b4eac5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ env: global: - GOOS=linux GOARCH=amd64 - GO111MODULE=on - - GOLANGCI_VERSION="v1.14.0" + - GOLANGCI_VERSION="v1.15.0" matrix: # It's ok if our code fails on unstable development versions of Go.