Skip to content

HasLicense: fix import group ordering #1458

@bcrochet

Description

@bcrochet

Summary

CodeRabbit's review of #1455 identified that the import groups in has_license.go are misordered.

github.com/go-logr/logr should be grouped with third-party imports (above project-local imports), not after them, per goimports with the repo's local prefix (github.com/redhat-openshift-ecosystem/openshift-preflight).

 import (
 	"context"
 	"errors"
 	"fmt"
 	"io/fs"
 	"os"
 	"path/filepath"
 	"slices"
 	"strings"

+	"github.com/go-logr/logr"
+
 	"github.com/redhat-openshift-ecosystem/openshift-preflight/internal/check"
 	"github.com/redhat-openshift-ecosystem/openshift-preflight/internal/image"
 	"github.com/redhat-openshift-ecosystem/openshift-preflight/internal/log"
-
-	"github.com/go-logr/logr"
 )

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions