Compare commits

...

6 commits

Author SHA1 Message Date
628ee422df
[#26] go.mod: Update version
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
2024-11-11 21:12:04 +03:00
007db8eff4 [#25] .golangci.yml: Replace exportloopref with copyloopvar
Fix the warning:
```
WARN The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-08-28 14:23:46 +03:00
7fbd18be41 [#25] Makefile: Use -trimpath while building
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-08-28 14:23:46 +03:00
a0d01aad6a [#1316] lint: Fix golangci-lint config
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2024-08-21 14:22:21 +03:00
73c7ec4274 [#1316] go.mod: Upgrade go version to 1.22
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2024-08-21 14:22:21 +03:00
9ea0089703 [#23] go.mod: Update version
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
2024-07-29 17:43:07 +03:00
5 changed files with 15 additions and 11 deletions

View file

@ -11,7 +11,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: '1.23'
cache: true
- name: Build lib
run: make lib
@ -25,7 +25,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: '1.23'
cache: true
- name: golangci-lint
@ -44,7 +44,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: '1.23'
cache: true
- name: Run tests
@ -59,7 +59,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: '1.23'
cache: true
- name: Install staticcheck

View file

@ -12,7 +12,8 @@ run:
# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: tab
formats:
- format: tab
# all available settings of specific linters
linters-settings:
@ -46,7 +47,7 @@ linters:
- bidichk
- durationcheck
- exhaustive
- exportloopref
- copyloopvar
- gofmt
- goimports
- misspell

View file

@ -6,7 +6,8 @@ test:
lib:
@mkdir -pv $(OUT_DIR)
@go build -buildmode=plugin -o $(OUT_DIR)/external_linters.so $(PLUGIN_SOURCE)
@go build -buildmode=plugin -trimpath \
-o $(OUT_DIR)/external_linters.so $(PLUGIN_SOURCE)
lint:
@golangci-lint run

4
go.mod
View file

@ -1,8 +1,8 @@
module git.frostfs.info/TrueCloudLab/linters
go 1.20
go 1.22.0
require (
github.com/mitchellh/mapstructure v1.5.0
golang.org/x/tools v0.17.0
golang.org/x/tools v0.27.0
)

6
go.sum
View file

@ -1,4 +1,6 @@
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc=
golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE=
golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg=
golang.org/x/tools v0.27.0 h1:qEKojBykQkQ4EynWy4S8Weg69NumxKdn40Fce3uc/8o=
golang.org/x/tools v0.27.0/go.mod h1:sUi0ZgbwW9ZPAq26Ekut+weQPR5eIM6GQLQ1Yjm1H0Q=