netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/pkg/logs/lastline.go

Summary

Maintainability
A
40 mins
Test Coverage

Function ReadLastLine has 6 return statements (exceeds 4 allowed).
Open

func ReadLastLine(filename string, maxLineWidth int64) ([]byte, error) {
    if maxLineWidth <= 0 {
        maxLineWidth = DefaultMaxLineWidth
    }
    f, err := os.Open(filename)
Severity: Major
Found in src/go/collectors/go.d.plugin/pkg/logs/lastline.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status