Skip to content
代码片段 群组 项目

比较版本

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

来源

选择目标项目
No results found

目标

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