mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Migrate golanglint-ci config to V2 (#21081)
This commit is contained in:
@@ -68,6 +68,7 @@ FLAGS:
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}
|
||||
`
|
||||
//nolint:staticcheck
|
||||
isPart := regexp.MustCompile("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/part\\.[0-9]+$")
|
||||
|
||||
app.HideHelpCommand = true
|
||||
@@ -1508,7 +1509,7 @@ func reconPartial(shards [][]byte, k int, parityOK []bool, splitData [][]byte, s
|
||||
}
|
||||
}
|
||||
}
|
||||
fmt.Println("Reconstructed", reconstructed, "bytes and verified", verified, "bytes of partial shard with config", shardConfig)
|
||||
fmt.Println("Reconstructed", reconstructed, "bytes and verified", verified, "bytes of partial shard with config", string(shardConfig))
|
||||
}
|
||||
|
||||
// bitrot returns a shard beginning at startOffset after doing bitrot checks.
|
||||
@@ -1555,6 +1556,7 @@ func shardSize(blockSize, dataBlocks int) (sz int) {
|
||||
return
|
||||
}
|
||||
|
||||
//nolint:staticcheck
|
||||
var rePartNum = regexp.MustCompile("/part\\.([0-9]+)/")
|
||||
|
||||
func getPartNum(s string) int {
|
||||
|
||||
Reference in New Issue
Block a user