Move to newer version of golangci-lint
This commit is contained in:
parent
526582d90c
commit
b9c63cb35a
@ -4,7 +4,7 @@
|
|||||||
# output configuration options
|
# output configuration options
|
||||||
output:
|
output:
|
||||||
# colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
|
# 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
|
# sorts results by: filepath, line and column
|
||||||
sort-results: true
|
sort-results: true
|
||||||
@ -12,17 +12,14 @@ output:
|
|||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
- deadcode
|
|
||||||
- depguard
|
- depguard
|
||||||
- errcheck
|
- errcheck
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- structcheck
|
|
||||||
- typecheck
|
- typecheck
|
||||||
- unused
|
- unused
|
||||||
- varcheck
|
|
||||||
- whitespace
|
- whitespace
|
||||||
- wrapcheck
|
- wrapcheck
|
||||||
- lll
|
- lll
|
||||||
@ -321,7 +318,7 @@ linters-settings:
|
|||||||
|
|
||||||
govet:
|
govet:
|
||||||
# report about shadowed variables
|
# report about shadowed variables
|
||||||
check-shadowing: true
|
# check-shadowing: true
|
||||||
|
|
||||||
# settings per analyzer
|
# settings per analyzer
|
||||||
# settings:
|
# settings:
|
||||||
@ -335,7 +332,6 @@ linters-settings:
|
|||||||
enable-all: true
|
enable-all: true
|
||||||
# disable-all: false
|
# disable-all: false
|
||||||
disable:
|
disable:
|
||||||
# - shadow
|
|
||||||
- fieldalignment
|
- fieldalignment
|
||||||
- composites
|
- composites
|
||||||
- shadow
|
- shadow
|
||||||
|
@ -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
|
run apk add --no-cache git sqlite-libs sqlite-dev build-base mingw-w64-gcc curl vim grep
|
||||||
|
|
||||||
# Install golangci-lint
|
# 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)
|
# 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
|
run git clone https://gitlab.com/offline-twitter/twitter_offline_engine.git && cd twitter_offline_engine && go install ./... && cd .. && rm -r twitter_offline_engine
|
||||||
|
@ -5,7 +5,7 @@ run apt update && apt install -y sudo curl wget build-essential sqlite3 jq git m
|
|||||||
# Install go and golangci-lint
|
# 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
|
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"
|
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)
|
# 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
|
run git clone https://gitlab.com/offline-twitter/twitter_offline_engine.git && cd twitter_offline_engine && go install ./... && cd .. && rm -r twitter_offline_engine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user