Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
[epociask/issue-160-slack-fix] Pass lint and gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethen Pociask committed Oct 16, 2023
1 parent 996d7ca commit dc7457c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,8 @@ issues:
- noctx
- wrapcheck
- lll
- whitespace
- whitespace

- path: mock_servers.go
linters:
- gomnd
2 changes: 1 addition & 1 deletion e2e/mock_servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (svr *TestPagerDutyServer) Close() {

// RandBool ... Returns a random boolean based on the current time
func RandBool() bool {
return rand.Intn(2) == 1 //nolint:gosec,gomnd //This is not a security issue as this is only used for testing
return rand.Intn(2) == 1 //#nosec G404: This is not a cryptographic use case
}

// mockPagerDutyPost ... Mocks a pagerduty post request
Expand Down

0 comments on commit dc7457c

Please sign in to comment.