Skip to content
代码片段 群组 项目

比较版本

更改显示为版本正在合并到目标版本。了解更多关于比较版本的信息。

来源

选择目标项目
No results found

目标

选择目标项目
  • jihulab/jh-infra/platform/runway/runwayctl
1 个结果
显示更改
源代码提交(5)
...@@ -3,7 +3,7 @@ variables: ...@@ -3,7 +3,7 @@ variables:
GL_ASDF_CHECKOV_VERSION: "3.2.43" GL_ASDF_CHECKOV_VERSION: "3.2.43"
GL_ASDF_GLAB_VERSION: "1.30.0" GL_ASDF_GLAB_VERSION: "1.30.0"
GL_ASDF_GOLANG_VERSION: "1.22.1" GL_ASDF_GOLANG_VERSION: "1.22.1"
GL_ASDF_GOLANGCI_LINT_VERSION: "1.56.2" GL_ASDF_GOLANGCI_LINT_VERSION: "1.57.1"
GL_ASDF_GORELEASER_VERSION: "1.24.0" GL_ASDF_GORELEASER_VERSION: "1.24.0"
GL_ASDF_PRE_COMMIT_VERSION: "3.6.2" GL_ASDF_PRE_COMMIT_VERSION: "3.6.2"
GL_ASDF_SHELLCHECK_VERSION: "0.10.0" GL_ASDF_SHELLCHECK_VERSION: "0.10.0"
......
...@@ -18,7 +18,7 @@ run: ...@@ -18,7 +18,7 @@ run:
# from this option's value (see skip-dirs-use-default). # from this option's value (see skip-dirs-use-default).
# "/" will be replaced by current OS file path separator to properly work # "/" will be replaced by current OS file path separator to properly work
# on Windows. # on Windows.
skip-dirs: exclude-dirs:
- node_modules - node_modules
# default is true. Enables skipping of directories: # default is true. Enables skipping of directories:
...@@ -268,9 +268,6 @@ linters-settings: ...@@ -268,9 +268,6 @@ linters-settings:
checks: ["all"] checks: ["all"]
govet: govet:
# report about shadowed variables
check-shadowing: true
# settings per analyzer # settings per analyzer
settings: settings:
printf: # analyzer name, run `go tool vet help` to see all analyzers printf: # analyzer name, run `go tool vet help` to see all analyzers
...@@ -373,6 +370,7 @@ linters-settings: ...@@ -373,6 +370,7 @@ linters-settings:
linters: linters:
enable-all: true enable-all: true
disable: # List of disabled linters is sorted in an alphabetical order. disable: # List of disabled linters is sorted in an alphabetical order.
- deadcode
- depguard - depguard
- execinquery - execinquery
- exhaustivestruct # This linter has been deprecated. - exhaustivestruct # This linter has been deprecated.
...@@ -390,10 +388,13 @@ linters: ...@@ -390,10 +388,13 @@ linters:
- nilnil - nilnil
- nolintlint - nolintlint
- nonamedreturns - nonamedreturns
- nosnakecase
- scopelint - scopelint
- structcheck
- tagliatelle - tagliatelle
- testpackage - testpackage
- unparam - unparam
- varcheck
- varnamelen - varnamelen
issues: issues:
......
...@@ -37,7 +37,7 @@ repos: ...@@ -37,7 +37,7 @@ repos:
- id: shfmt - id: shfmt
args: [-w, -s, -i, "2"] args: [-w, -s, -i, "2"]
- repo: https://github.com/golangci/golangci-lint - repo: https://github.com/golangci/golangci-lint
rev: v1.56.2 # renovate:managed rev: v1.57.1 # renovate:managed
hooks: hooks:
- id: golangci-lint - id: golangci-lint
- repo: https://github.com/adrienverge/yamllint.git - repo: https://github.com/adrienverge/yamllint.git
......
# Note: Install plugins by running scripts/install-asdf-plugins.sh # Note: Install plugins by running scripts/install-asdf-plugins.sh
golang 1.22.1 # datasource=golang-version depName=golang/go golang 1.22.1 # datasource=golang-version depName=golang/go
golangci-lint 1.56.2 # datasource=github-releases depName=golangci/golangci-lint golangci-lint 1.57.1 # datasource=github-releases depName=golangci/golangci-lint
goreleaser 1.24.0 # datasource=github-releases depName=goreleaser/goreleaser goreleaser 1.24.0 # datasource=github-releases depName=goreleaser/goreleaser
pre-commit 3.6.2 # datasource=github-releases depName=pre-commit/pre-commit pre-commit 3.6.2 # datasource=github-releases depName=pre-commit/pre-commit
python system python system
......
...@@ -80,8 +80,8 @@ type Result struct { ...@@ -80,8 +80,8 @@ type Result struct {
// DataPoint reprents the a single datapoint tuple in the PromQL response. // DataPoint reprents the a single datapoint tuple in the PromQL response.
type DataPoint struct { type DataPoint struct {
Time time.Time Time time.Time `json:"time"`
Value float64 Value float64 `json:"value"`
} }
// UnmarshalJSON helps unmarshal Prometheus-formatted data point tuples. // UnmarshalJSON helps unmarshal Prometheus-formatted data point tuples.
......
...@@ -60,7 +60,6 @@ func TestUnmarshalPayload(t *testing.T) { ...@@ -60,7 +60,6 @@ func TestUnmarshalPayload(t *testing.T) {
} }
for _, tc := range testCases { for _, tc := range testCases {
tc := tc
t.Run(tc.desc, func(t *testing.T) { t.Run(tc.desc, func(t *testing.T) {
t.Parallel() t.Parallel()
......
...@@ -63,7 +63,6 @@ func TestFormat(t *testing.T) { ...@@ -63,7 +63,6 @@ func TestFormat(t *testing.T) {
} }
for _, tc := range cases { for _, tc := range cases {
tc := tc
t.Run(tc.name, func(t *testing.T) { t.Run(tc.name, func(t *testing.T) {
t.Parallel() t.Parallel()
......
...@@ -36,7 +36,6 @@ func TestValidate(t *testing.T) { ...@@ -36,7 +36,6 @@ func TestValidate(t *testing.T) {
} }
for _, tc := range testCases { for _, tc := range testCases {
tc := tc
t.Run(tc.desc, func(t *testing.T) { t.Run(tc.desc, func(t *testing.T) {
t.Parallel() t.Parallel()
......