Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: config qbox/kodo repo #218

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ customConfig: # custom config for specific orgs or repos
qbox/kodo:
golangci-lint:
enable: true
workDir: "src/qiniu.com/kodo"
command:
- "/bin/sh"
- "-c"
- "--"
args:
[
"run",
"--enable-all",
"--timeout=5m0s",
"--allow-parallel-runners=true",
]
- |
source env.sh
cd src/qiniu.com/kodo
golangci-lint run --timeout=10m0s --allow-parallel-runners=true --print-issued-lines=false --out-format=line-number >> $ARTIFACT/lint.log 2>&1

qbox/kodo-ops:
golangci-lint:
Expand Down
2 changes: 1 addition & 1 deletion internal/linters/linters.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func ExecRun(workDir string, command []string, args []string) ([]byte, error) {

// use the content of the files under Artifact dir as first priority
if len(fileContent) > 0 {
log.Debugf("artifact files used instead. legacy output:\n%v", string(output))
log.Debugf("artifact files used instead. legacy output:\n%v, now:\n%v", string(output), string(fileContent))
output = fileContent
}

Expand Down
Loading