Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Aug 15, 2024
1 parent 983346f commit c1405ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions internal/checks/rule_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"github.com/cloudflare/pint/internal/promapi"
)

func forMin(key, min string) string {
return fmt.Sprintf("This alert rule must have a `%s` field with a minimum duration of %s.", key, min)
func forMin(key, m string) string {
return fmt.Sprintf("This alert rule must have a `%s` field with a minimum duration of %s.", key, m)
}

func forMax(key, max string) string {
return fmt.Sprintf("This alert rule must have a `%s` field with a maximum duration of %s.", key, max)
func forMax(key, m string) string {
return fmt.Sprintf("This alert rule must have a `%s` field with a maximum duration of %s.", key, m)
}

func TestRuleForCheck(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/reporter/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func loggifyDiscussion(opt *gitlab.CreateMergeRequestDiscussionOptions) (attrs [
return attrs
}

func tooManyCommentsMsg(nr, max int) string {
func tooManyCommentsMsg(nr, m int) string {
return fmt.Sprintf(`This pint run would create %d comment(s), which is more than the limit configured for pint (%d).
%d comment(s) were skipped and won't be visibile on this PR.`, nr, max, nr-max)
%d comment(s) were skipped and won't be visibile on this PR.`, nr, m, nr-m)
}

0 comments on commit c1405ac

Please sign in to comment.