src/go/plugin/go.d/modules/litespeed/collect.go
Method Litespeed.collectReport
has 58 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (l *Litespeed) collectReport(mx map[string]int64, filename string) error {
bs, err := os.ReadFile(filename)
if err != nil {
return err
}
Method Litespeed.collect
has 5 return statements (exceeds 4 allowed). Open
Open
func (l *Litespeed) collect() (map[string]int64, error) {
if l.checkDir {
_, err := os.Stat(l.ReportsDir)
if err != nil {
return nil, err