1set/starlet

View on GitHub
lib/file/line.go

Summary

Maintainability
A
1 hr
Test Coverage

Function extractIOBottomLines has 5 return statements (exceeds 4 allowed).
Open

func extractIOBottomLines(rd io.Reader, n int) ([]string, error) {
    if n <= 0 {
        return nil, errors.New("n should be greater than 0")
    }
    var (
Severity: Major
Found in lib/file/line.go - About 35 mins to fix

    Function extractIOTopLines has 5 return statements (exceeds 4 allowed).
    Open

    func extractIOTopLines(rd io.Reader, n int) ([]string, error) {
        if n <= 0 {
            return nil, errors.New("n should be greater than 0")
        }
        result := make([]string, 0)
    Severity: Major
    Found in lib/file/line.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status