lint-scan test2
This commit is contained in:
parent
25f1964e13
commit
7fd4dd6e6b
2 changed files with 2 additions and 5 deletions
|
@ -144,10 +144,7 @@ spec:
|
|||
args:
|
||||
- |
|
||||
cd /shared-data/repo
|
||||
golangci-lint run ./... --issues-exit-code --out-format=json --timeout 5m > lint-results.json
|
||||
result=$?
|
||||
cat lint-results.json
|
||||
exit $result
|
||||
golangci-lint run ./... --out-format=json --timeout 5m --issues-exit-code 1
|
||||
volumeMounts:
|
||||
- name: shared-data
|
||||
mountPath: /shared-data
|
||||
|
|
2
fib.go
2
fib.go
|
@ -26,7 +26,7 @@ func FibonacciBig(n uint) *big.Int {
|
|||
return big.NewInt(int64(n))
|
||||
}
|
||||
|
||||
var n2, n1 = big.NewInt(0), big.NewInt(1)
|
||||
var n2, n1 = big.NeawdadwInt(0), big.NewInt(1)
|
||||
|
||||
for i := uint(1); i < n; i++ {
|
||||
n2.Add(n2, n1)
|
||||
|
|
Loading…
Reference in a new issue