Move to newer version of golangci-lint

This commit is contained in:
Alessio 2024-09-15 15:09:55 -07:00
parent 526582d90c
commit b9c63cb35a
3 changed files with 4 additions and 8 deletions

View File

@ -4,7 +4,7 @@
# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
format: colored-line-number
formats: colored-line-number
# sorts results by: filepath, line and column
sort-results: true
@ -12,17 +12,14 @@ output:
linters:
disable-all: true
enable:
- deadcode
- depguard
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- whitespace
- wrapcheck
- lll
@ -321,7 +318,7 @@ linters-settings:
govet:
# report about shadowed variables
check-shadowing: true
# check-shadowing: true
# settings per analyzer
# settings:
@ -335,7 +332,6 @@ linters-settings:
enable-all: true
# disable-all: false
disable:
# - shadow
- fieldalignment
- composites
- shadow

View File

@ -5,7 +5,7 @@ from golang:1.21.4-alpine
run apk add --no-cache git sqlite-libs sqlite-dev build-base mingw-w64-gcc curl vim grep
# Install golangci-lint
run curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/go/bin v1.53.1
run curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/go/bin v1.59.1
# Install project dependencies (so they don't have to be reinstalled on every CI run)
run git clone https://gitlab.com/offline-twitter/twitter_offline_engine.git && cd twitter_offline_engine && go install ./... && cd .. && rm -r twitter_offline_engine

View File

@ -5,7 +5,7 @@ run apt update && apt install -y sudo curl wget build-essential sqlite3 jq git m
# Install go and golangci-lint
run wget https://go.dev/dl/go1.20.4.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.20.4.linux-amd64.tar.gz
env PATH="$PATH:/usr/local/go/bin"
run curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/go/bin v1.53.1
run curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/go/bin v1.59.1
# Install project dependencies (so they don't have to be reinstalled on every CI run)
run git clone https://gitlab.com/offline-twitter/twitter_offline_engine.git && cd twitter_offline_engine && go install ./... && cd .. && rm -r twitter_offline_engine