Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewi committed Oct 9, 2024
1 parent ddd3b1f commit bea983a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/pkg/eval/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"context"
_ "embed"
"fmt"
"html/template"

"github.com/jlewi/foyle/app/api"
"github.com/jlewi/foyle/app/pkg/analyze"
"github.com/jlewi/foyle/app/pkg/docs"
Expand All @@ -15,7 +17,6 @@ import (
"github.com/pkg/errors"
parserv1 "github.com/stateful/runme/v3/pkg/api/gen/proto/go/runme/parser/v1"
"github.com/yuin/goldmark"
"html/template"
)

//go:embed report.html.tmpl
Expand Down
8 changes: 4 additions & 4 deletions app/pkg/eval/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package eval
import (
"context"
"encoding/json"
"fmt"
"os"
"testing"

logspb "github.com/jlewi/foyle/protos/go/foyle/logs"
"github.com/jlewi/foyle/protos/go/foyle/v1alpha1"
"github.com/pkg/browser"
"github.com/sashabaranov/go-openai"
parserv1 "github.com/stateful/runme/v3/pkg/api/gen/proto/go/runme/parser/v1"
"os"
"testing"
)

func Test_buildReport(t *testing.T) {
Expand Down Expand Up @@ -101,7 +101,7 @@ input
}

if os.Getenv("OPEN_IN_BROWSER") != "" {
name := fmt.Sprintf("/tmp/evalreport.html")
name := "/tmp/evalreport.html"
if err := os.WriteFile(name, []byte(reportHtml), 0644); err != nil {
t.Errorf("Failed to write file %s: %v", name, err)
} else {
Expand Down
3 changes: 2 additions & 1 deletion app/pkg/eval/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package eval

import (
"context"
"path/filepath"

"github.com/jlewi/foyle/app/pkg/config"
"github.com/jlewi/foyle/app/pkg/dbutil"
logspb "github.com/jlewi/foyle/protos/go/foyle/logs"
"path/filepath"

"github.com/jlewi/foyle/app/pkg/docs"
"github.com/jlewi/foyle/app/pkg/runme/converters"
Expand Down

0 comments on commit bea983a

Please sign in to comment.