From d8f858755fb8d66ad2e5226ac75ad940efac2029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=83=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9=20=D0=9F=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=87?= Date: Fri, 9 Oct 2026 15:53:44 +0300 Subject: [PATCH] LAD-1276 bump deps --- .golangci.yml | 18 +++++++++++++++++- go.mod | 13 +++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index e046eb8..b23beb7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,11 +18,20 @@ linters: - varnamelen # очень индивидуально (db) - wsl # расставление пробелов очень индивидуально - wsl_v5 # расставление пробелов очень индивидуально + - godoclint # ругается на // nolint, не удобно + - prealloc # слишком аггресивный, в большинстве случаев не требуется + - gomodguard # deprecated + - goconst # слишком аггресивный settings: + exhaustruct_v5: + allow-empty: true + explicit-mode: true cyclop: max-complexity: 15 # по умолчанию 10 мало funlen: lines: 80 + goconst: + ignore-tests: true # тестовые фикстуры не выносим в константы lll: line-length: 150 revive: @@ -54,6 +63,13 @@ linters: - linters: - wrapcheck path: transaction # транзакции прозрачны + - linters: + - unqueryvet + - prealloc + path: ".*_test\\.go$" + - linters: + - goconst + path: "tests/" # компонентные тесты: фикстуры и моки не выносим в константы paths: - third_party$ - builtin$ @@ -66,4 +82,4 @@ formatters: paths: - third_party$ - builtin$ - - examples$ \ No newline at end of file + - examples$ diff --git a/go.mod b/go.mod index 3e7ca9d..39a05ed 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module isp-lock-service -go 1.26 +go 1.27 require ( github.com/go-redis/redis_rate/v10 v10.0.1 @@ -9,20 +9,16 @@ require ( github.com/redis/go-redis/v9 v9.21.0 github.com/txix-open/isp-kit v1.70.0 github.com/txix-open/jsonschema v1.3.0 + golang.org/x/exp v0.0.0-20260611194520-c48552f49976 golang.org/x/sync v0.21.0 golang.org/x/time v0.15.0 ) -require ( - github.com/cenkalti/backoff/v5 v5.0.3 // indirect - go.opentelemetry.io/auto/sdk v1.2.1 // indirect - go.uber.org/atomic v1.11.0 // indirect -) - require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/buger/jsonparser v1.2.0 // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/coder/websocket v1.8.15 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect @@ -57,6 +53,7 @@ require ( github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect go.opentelemetry.io/otel v1.44.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.44.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.44.0 // indirect @@ -64,10 +61,10 @@ require ( go.opentelemetry.io/otel/sdk v1.44.0 // indirect go.opentelemetry.io/otel/trace v1.44.0 // indirect go.opentelemetry.io/proto/otlp v1.10.0 // indirect + go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.28.0 // indirect golang.org/x/crypto v0.53.0 // indirect - golang.org/x/exp v0.0.0-20260611194520-c48552f49976 golang.org/x/net v0.56.0 // indirect golang.org/x/sys v0.46.0 // indirect golang.org/x/text v0.38.0 // indirect