Skip to content

Commit

Permalink
disable linter for mock
Browse files Browse the repository at this point in the history
Signed-off-by: sczembor <[email protected]>
  • Loading branch information
sczembor committed Jan 8, 2025
1 parent 29dec6e commit b999a56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions native2ika/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ func mockJSONAPI(w http.ResponseWriter, r *http.Request) {
func generateMockSignRequests(from, limit int) []SignRequest {
var requests []SignRequest
for i := from; i < from+limit; i++ {
if i+1 < 0 {
panic(fmt.Sprintf("integer overflow: i+1 = %d", i+1))
}
req := SignRequest{
// nolint: gosec // This is a mock function, and overflow is unlikely.

Check failure on line 68 in native2ika/mock.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

directive `// nolint: gosec // This is a mock function, and overflow is unlikely.` should be written without leading space as `//nolint: gosec // This is a mock function, and overflow is unlikely.` (nolintlint)
ID: uint64(i + 1),
Payload: rawTxBytes,
DWalletID: fmt.Sprintf("dwallet%d", i+1),
Expand Down

0 comments on commit b999a56

Please sign in to comment.