-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
Signed-off-by: warber <[email protected]>
pkg/commonutils/fileutils.go
Outdated
"strings" | ||
) | ||
|
||
func ReadFile(fileName string) ([]byte, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function ReadFile should have comment or be unexported
pkg/commonutils/fileutils.go
Outdated
return data, nil | ||
} | ||
|
||
func ReadFileAsStr(fileName string) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function ReadFileAsStr should have comment or be unexported
pkg/commonutils/fileutils.go
Outdated
return string(content), err | ||
} | ||
|
||
func FileExists(filename string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function FileExists should have comment or be unexported
pkg/commonutils/fileutils.go
Outdated
return !info.IsDir() | ||
} | ||
|
||
func ExpandTilde(fileName string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function ExpandTilde should have comment or be unexported
pkg/commonutils/fileutils.go
Outdated
return fileName | ||
} | ||
|
||
func UserHomeDir() string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function UserHomeDir should have comment or be unexported
pkg/commonutils/httputils.go
Outdated
"time" | ||
) | ||
|
||
func DownloadFromURL(url string) ([]byte, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function DownloadFromURL should have comment or be unexported
pkg/commonutils/strutils.go
Outdated
|
||
import "net/url" | ||
|
||
func IsValidURL(strURL string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function IsValidURL should have comment or be unexported
Signed-off-by: warber <[email protected]>
Signed-off-by: warber <[email protected]>
Signed-off-by: warber <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Signed-off-by: warber [email protected]