goruby/goruby

View on GitHub
parser/interface.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func ParseExprFrom(fset *gotoken.FileSet, filename string, src interface{}, mode Mode) (ast.Expression, error) {
    if fset == nil {
        panic("parser.ParseExprFrom: no token.FileSet provided (fset == nil)")
    }

Severity: Major
Found in parser/interface.go - About 35 mins to fix

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

    func readSource(filename string, src interface{}) ([]byte, error) {
        if src != nil {
            switch s := src.(type) {
            case string:
                return []byte(s), nil
    Severity: Major
    Found in parser/interface.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status