Compare commits

...

2 Commits

Author SHA1 Message Date
sudo pacman -Syu eb994a0c95 chore: sync golangci-lint 2023-06-29 10:46:34 +07:00
dependabot[bot] d829a4e79d chore(deps): bump github.com/urfave/cli/v2 from 2.25.6 to 2.25.7
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.25.6 to 2.25.7.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.25.6...v2.25.7)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 10:04:28 +07:00
4 changed files with 17 additions and 8 deletions

View File

@ -1,16 +1,14 @@
run: run:
timeout: 2m timeout: 5m
tests: false tests: false
skip-dirs: skip-dirs:
- ".*test.*" - ".*test.*"
- ".*mock.*" - ".*mock.*"
- ".*generated.*"
- ".*example.*" - ".*example.*"
- ".*utils.*" - ".*utils.*"
skip-files: skip-files:
- ".*Mock.*" - ".*Mock.*"
- ".*_mock.*" - ".*_mock.*"
- ".*_generated.*"
output: output:
sort-results: true sort-results: true
@ -35,11 +33,11 @@ linters:
- gocritic - gocritic
- goerr113 - goerr113
- gofumpt - gofumpt
- gomodguard
- gosec - gosec
- importas - importas
- makezero - makezero
- nilnil - nilnil
- noctx
- prealloc - prealloc
- reassign - reassign
# - rowserrcheck # - rowserrcheck
@ -69,16 +67,26 @@ linters-settings:
- unmarshal - unmarshal
- unreachable - unreachable
- unusedresult - unusedresult
staticcheck:
checks: ["all", "-SA1019"]
# Custom # Custom
gocritic: gocritic:
disabled-checks: disabled-checks:
- ifElseChain - ifElseChain
- singleCaseSwitch - singleCaseSwitch
- unnamedResult
- whyNoLint
enabled-tags: enabled-tags:
- diagnostic - diagnostic
- style - style
- performance
gosec: gosec:
excludes:
- G101
- G112
- G402
- G404
- G501
- G505
exclude-generated: true exclude-generated: true
reassign: reassign:
patterns: patterns:

2
go.mod
View File

@ -4,7 +4,7 @@ go 1.18
require ( require (
github.com/make-go-great/color-go v0.4.1 github.com/make-go-great/color-go v0.4.1
github.com/urfave/cli/v2 v2.25.6 github.com/urfave/cli/v2 v2.25.7
) )
require ( require (

4
go.sum
View File

@ -11,8 +11,8 @@ github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/urfave/cli/v2 v2.25.6 h1:yuSkgDSZfH3L1CjF2/5fNNg2KbM47pY2EvjBq4ESQnU= github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs=
github.com/urfave/cli/v2 v2.25.6/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=

View File

@ -144,6 +144,7 @@ func (a *action) runReadDepsFile(c *cli.Context) (depsStr string, useDepFile boo
return "", false, fmt.Errorf("failed to parse deps file url %s: %w", a.flags.depsURL, err) return "", false, fmt.Errorf("failed to parse deps file url %s: %w", a.flags.depsURL, err)
} }
// nolint:noctx
httpRsp, err := http.Get(depsURL.String()) httpRsp, err := http.Get(depsURL.String())
if err != nil { if err != nil {
return "", false, fmt.Errorf("failed to http get %s: %w", depsURL.String(), err) return "", false, fmt.Errorf("failed to http get %s: %w", depsURL.String(), err)