We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72caf3d + 1c99e45 commit 1c8e7ffCopy full SHA for 1c8e7ff
main.go
@@ -231,14 +231,14 @@ func main() {
231
func getFilesToAnalyze(paths []string, excluded *fileList) []string {
232
//log.Println("getFilesToAnalyze: start")
233
var toAnalyze []string
234
- for _, path := range paths {
+ for _, relativePath := range paths {
235
//log.Printf("getFilesToAnalyze: processing \"%s\"\n", path)
236
// get the absolute path before doing anything else
237
- path, err := filepath.Abs(path)
+ path, err := filepath.Abs(relativePath)
238
if err != nil {
239
log.Fatal(err)
240
}
241
- if filepath.Base(path) == "..." {
+ if filepath.Base(relativePath) == "..." {
242
toAnalyze = append(
243
toAnalyze,
244
listFiles(filepath.Dir(path), recurse, excluded)...,
0 commit comments