Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Mikusa <[email protected]>
  • Loading branch information
dmikusa committed Oct 6, 2024
1 parent c73238d commit 494f37c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ linters:
linters-settings:
goimports:
local-prefixes: github.com/buildpacks/libcnb
revive:
rules:
- name: dot-imports
arguments:
- allowedPackages:
- github.com/onsi/ginkgo/v2
- github.com/onsi/gomega
2 changes: 1 addition & 1 deletion internal/directory_contents.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type DirectoryContents struct {
func (d DirectoryContents) Get() ([]string, error) {
var contents []string

if err := filepath.Walk(d.Path, func(path string, info os.FileInfo, err error) error {
if err := filepath.Walk(d.Path, func(path string, _ os.FileInfo, err error) error {
if err != nil {
return err
}
Expand Down

0 comments on commit 494f37c

Please sign in to comment.