Skip to content

Commit 94ec80a

Browse files
committed
chore: resolve lint issues
1 parent 3a55957 commit 94ec80a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

internal/filesearch/filesearch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func Find(cwd string, skipTests bool, args []string) []string {
5151
func expandGoWildcard(root string) []string {
5252
foundFiles := []string{}
5353

54-
_ = filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
54+
_ = filepath.Walk(root, func(path string, info os.FileInfo, _ error) error {
5555
// Only append go foundFiles.
5656
if !strings.HasSuffix(info.Name(), ".go") {
5757
return nil

processor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (p *Processor) addError(fileset *token.FileSet, pos token.Pos, reason strin
141141
//
142142
// It works by iterating over the dependant modules specified in the require
143143
// directive, checking if the module domain or full name is in the allowed list.
144-
func (p *Processor) SetBlockedModules() { //nolint:gocognit,funlen
144+
func (p *Processor) SetBlockedModules() { //nolint:funlen
145145
blockedModules := make(map[string][]string, len(p.Modfile.Require))
146146
currentModuleName := p.Modfile.Module.Mod.Path
147147
lintedModules := p.Modfile.Require

processor_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ func TestProcessorProcessFiles(t *testing.T) { //nolint:funlen
111111
t.Run(tt.testName, func(t *testing.T) {
112112
tt.processor.SetBlockedModules()
113113
results := tt.processor.ProcessFiles(filteredFiles)
114+
114115
if len(results) == 0 {
115116
t.Fatal("result should be greater than zero")
116117
}
117118

118119
foundWantReason := false
119120
allReasons := make([]string, 0, len(results))
121+
120122
for _, result := range results {
121123
allReasons = append(allReasons, result.String())
122124

0 commit comments

Comments
 (0)