vorteil/vorteil

View on GitHub
pkg/vio/file.go

Summary

Maintainability
A
2 hrs
Test Coverage
F
37%

Function LazyOpen has 54 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func LazyOpen(path string) (File, error) {

    fi, err := os.Lstat(path)
    if err != nil {
        return nil, err
Severity: Minor
Found in pkg/vio/file.go - About 1 hr to fix

    Function LazyOpen has 9 return statements (exceeds 4 allowed).
    Open

    func LazyOpen(path string) (File, error) {
    
        fi, err := os.Lstat(path)
        if err != nil {
            return nil, err
    Severity: Major
    Found in pkg/vio/file.go - About 55 mins to fix

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

      func Open(path string) (File, error) {
          fi, err := os.Lstat(path)
          if err != nil {
              return nil, err
          }
      Severity: Major
      Found in pkg/vio/file.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status