问Golangcilint工具出现 no go files to analyze 问题最近发现https://imgurl.org/ 自建CDN节点偶尔出现无法打开的情况,查看服务器负载不高,nginx连接数大概在1024后就无法处理,按理说nginx处理1024左右的并发还是绰绰有余的,但就是出现无法打开的情况,查看nginx错误日志,出现大量的“Too many open files”错误,大致意思就是说nginx无法打开...
1. 背景golangci-lint的 官方文档和golangci-lint help命令对命令行参数的说明都不完善,升级了golangci-lint之后,之前的--skip-files参数不可用了,通过官网和help命令查询新的应该怎么配,返回的不直观,可以通…
Running the following from the root of monorepo golangci-lint run ./foo ./bar will fail on ./bar w/ the error ERRO Running error: context loading failed: no go files to analyze. 👍4 aslafy-zmentioned this on Jan 3, 2020 feature: add directory argument reviewdog/action-golangci-li...
-uses:actions/checkout@v4-uses:actions/setup-go@v5with:#NOTE: Keep this in sync with the version from go.modgo-version:"1.23.x"cache:false-name:golangci-lintuses:golangci/golangci-lint-action@v6with:#NOTE: Keep this in sync with the version from .golangci.ymlversion:v1.62.2 Gola...
golangci-lint run ./... You can choose which directories and files to analyze: golangci-lint run dir1 dir2/... dir3/file1.go Directories are analyzed NOT recursively, to analyze them recursively append /... to their path. GolangCI-Lint can be used with zero configuration. By defaul...
golangci-lint run ./... You can choose which directories and files to analyze: golangci-lint run dir1 dir2/... dir3/file1.go Directories are analyzed NOT recursively, to analyze them recursively append/...to their path. GolangCI-Lint can be used with zero configuration. By default ...
Welcome Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported. Yes, I've searched similar issues on GitHub and didn't find any. Yes, I've read the typecheck section of the FAQ (https://gola...
# https://golangci-lint.run/usage/linters/#importas importas: no-unaliased: true # https://golangci-lint.run/usage/linters/#gomoddirectives gomoddirectives: replace-local: true # https://golangci-lint.run/usage/linters/#revive revive: ignore-generated-header: true enable-all-rules: ...
Exclude Swagger Codegen files by default Linters new features gci: from 0.13.4 to 0.13.5 (new optionno-lex-order) nolintlint: remove the empty line in the directive replacement Linters bug fixes dupword: from 0.0.14 to 0.1.1 fatcontext: from 0.4.0 to 0.5.2 ...
dirs cmd/pactgoconsumerexample_tester ERRO Running error: 1 error occurred: * can't run linter goanalysis_metalinter: inspect: failed to load package sugar: could not load export data: no export data for "github.com/pact-foundation/pact-go/v2/sugar" make: *** [Makefile:85: lint] Error...