File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,10 +142,6 @@ func main() {
142142 fmt .Println ("No rules" )
143143 os .Exit (- 1 )
144144 }
145- if len (configFilenames ) == 0 {
146- fmt .Println ("No files to lint" )
147- os .Exit (- 1 )
148- }
149145 os .Exit (applyRules (ruleSets , configFilenames , linterOptions , DefaultReportWriter {Writer : os .Stdout }))
150146}
151147
@@ -326,7 +322,11 @@ func loadFilenames(commandLineFilenames []string, profileFilenames []string) []s
326322 if len (commandLineFilenames ) > 0 {
327323 return commandLineFilenames
328324 }
329- return profileFilenames
325+ if len (profileFilenames ) > 0 {
326+ return profileFilenames
327+ }
328+ // default to current directory if no filesnames given
329+ return []string {"." }
330330}
331331
332332func excludeFilenames (filenames []string , excludePatterns []string ) []string {
You can’t perform that action at this time.
0 commit comments