Skip to content

Commit

Permalink
fix more linting error
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
  • Loading branch information
sebhoss committed Jul 22, 2024
1 parent 8a6dd84 commit 623ebae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/jstemmer/go-junit-report/v2/junit"
"io"
"log"
"os"
Expand All @@ -14,6 +13,7 @@ import (
"time"

"github.com/fatih/color"
"github.com/jstemmer/go-junit-report/v2/junit"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"

Expand Down Expand Up @@ -426,6 +426,7 @@ func formatError(format string, err error) error {
testSuites.AddSuite(testsuite)

buf := &bytes.Buffer{}

err := testSuites.WriteXML(buf)
if err != nil {
return fmt.Errorf("failed to format errors for output: %w", err)
Expand Down
1 change: 1 addition & 0 deletions pkg/reporter/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ func TestSarifReporterPublishNoViolations(t *testing.T) {
}
}

//nolint:lll the expected output is unfortunately longer than the allowed max line length
func TestJUnitReporterPublish(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit 623ebae

Please sign in to comment.